summaryrefslogtreecommitdiff
path: root/lib/client/file_ui_client_main.php
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2014-10-21 11:08:32 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2014-10-21 11:08:32 (GMT)
commit9174727006085404bdabdd1684cd669dc713c111 (patch)
treef96b83185073d1c89eb1a4a3dc097c2dda771eb3 /lib/client/file_ui_client_main.php
parentffd72032374661f2a43c835ce764dc083ed4febe (diff)
downloadkolab-chwala-9174727006085404bdabdd1684cd669dc713c111.tar.gz
Extend folder edit form with possibility to move folders (#3783)
Diffstat (limited to 'lib/client/file_ui_client_main.php')
-rw-r--r--lib/client/file_ui_client_main.php16
1 files changed, 12 insertions, 4 deletions
diff --git a/lib/client/file_ui_client_main.php b/lib/client/file_ui_client_main.php
index 3b882f7..ff91b13 100644
--- a/lib/client/file_ui_client_main.php
+++ b/lib/client/file_ui_client_main.php
@@ -112,7 +112,11 @@ class file_ui_client_main extends file_ui
$input_name = new html_inputfield(array(
'type' => 'text',
'name' => 'name',
- 'value' => '',
+ 'id' => 'folder-edit-name-input',
+ ));
+ $parent_select = new html_select(array(
+ 'name' => 'parent',
+ 'id' => 'folder-edit-parent-select',
));
$submit = new html_inputfield(array(
'type' => 'button',
@@ -125,14 +129,18 @@ class file_ui_client_main extends file_ui
'value' => $this->translate('form.cancel'),
));
+ $parent_select->add('---', '');
+
$table = new html_table;
- $table->add(null, $input_name->show());
+ $table->add(null, html::label('folder-edit-name-input', $this->translate('folder.name')) . $input_name->show());
$table->add('buttons', $submit->show() . $cancel->show());
$content = html::tag('fieldset', null,
- html::tag('legend', null,
- $this->translate('folder.edittitle')) . $table->show());
+ html::tag('legend', null, $this->translate('folder.edittitle'))
+ . $table->show()
+ . html::div('', html::label('folder-edit-parent-select', $this->translate('folder.parent')) . $parent_select->show())
+ );
$form = html::tag('form', array(
'id' => 'folder-edit-form',