summaryrefslogtreecommitdiffstats
path: root/lib/kolab_client_task.php
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2014-03-21 16:05:35 +0100
committerAleksander Machniak <machniak@kolabsys.com>2014-03-21 16:06:58 +0100
commit5a62c7e3594c60b7f37c417d5a004010ffb8c767 (patch)
tree020dc86e360f66ba977983a938387b5dbbd82efb /lib/kolab_client_task.php
parent26afc433416d6fcec4ca35f48d516f7c9330e949 (diff)
downloadwebadmin-5a62c7e3594c60b7f37c417d5a004010ffb8c767.tar.gz
Add ACI form widget (Request #1782)
Diffstat (limited to 'lib/kolab_client_task.php')
-rw-r--r--lib/kolab_client_task.php23
1 files changed, 21 insertions, 2 deletions
diff --git a/lib/kolab_client_task.php b/lib/kolab_client_task.php
index 35eec94..2c016e6 100644
--- a/lib/kolab_client_task.php
+++ b/lib/kolab_client_task.php
@@ -849,7 +849,7 @@ class kolab_client_task
case 'list':
$result['type'] = kolab_form::INPUT_TEXTAREA;
- $result['data-type'] = kolab_form::TYPE_LIST;
+ $result['data-type'] = 'list';
if (!empty($field['maxlength'])) {
$result['data-maxlength'] = $field['maxlength'];
@@ -879,6 +879,24 @@ class kolab_client_task
$result['default'] = $field['default'];
break;
+ case 'aci':
+ $result['type'] = kolab_form::INPUT_TEXTAREA;
+ $result['data-type'] = 'aci';
+
+ $this->output->add_translation('aci.new', 'aci.edit', 'aci.remove',
+ 'aci.users', 'aci.rights', 'aci.targets', 'aci.aciname',
+ 'aci.read', 'aci.compare', 'aci.search', 'aci.write', 'aci.selfwrite',
+ 'aci.delete', 'aci.add', 'aci.proxy', 'aci.all', 'aci.allow', 'aci.deny',
+ 'aci.typeusers', 'aci.typegroups', 'aci.typeroles', 'aci.typeadmins', 'aci.typespecials',
+ 'aci.ldap-all', 'aci.ldap-anyone', 'aci.ldap-self', 'aci.ldap-parent',
+ 'aci.usersearch', 'aci.usersearchresult', 'aci.selected', 'aci.other',
+ 'aci.userselected', 'aci.useradd', 'aci.userremove', 'aci.thisentry',
+ 'aci.rights.target', 'aci.rights.filter', 'aci.rights.attrs', 'aci.checkall', 'aci.checknone',
+ 'aci.error.noname', 'aci.error.exists', 'aci.error.nousers',
+ 'button.cancel', 'button.ok'
+ );
+ break;
+
default:
$result['type'] = kolab_form::INPUT_TEXT;
@@ -1260,7 +1278,7 @@ class kolab_client_task
$value = $data[$idx];
// Convert data for the list field with autocompletion
- if ($field['data-type'] == kolab_form::TYPE_LIST) {
+ if ($field['data-type'] == 'list') {
if (!is_array($value)) {
if (!empty($field['data-autocomplete'])) {
$value = array($value => $value);
@@ -1363,6 +1381,7 @@ class kolab_client_task
$this->output->set_env('assoc_fields', $assoc_fields);
$this->output->set_env('required_fields', $req_fields);
$this->output->set_env('autocomplete_min_length', $ac_min_len);
+ $this->output->set_env('entrydn', $data['entrydn']);
$this->output->add_translation('form.required.empty', 'form.maxcount.exceeded',
$name . '.add.success', $name . '.edit.success', $name . '.delete.success',
$name . '.delete.confirm', $name . '.delete.force',