2014-02-19 19:53:29 +04:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Copyright (c) 2011, Robin Appelman <icewind1991@gmail.com>
|
|
|
|
* This file is licensed under the Affero General Public License version 3 or later.
|
|
|
|
* See the COPYING-README file.
|
|
|
|
*/
|
2014-12-12 11:22:15 +03:00
|
|
|
|
|
|
|
script('settings', [
|
|
|
|
'users/deleteHandler',
|
|
|
|
'users/filter',
|
|
|
|
'users/users',
|
|
|
|
'users/groups'
|
|
|
|
]);
|
|
|
|
script('core', [
|
|
|
|
'multiselect',
|
|
|
|
'singleselect'
|
|
|
|
]);
|
|
|
|
style('settings', 'settings');
|
|
|
|
|
2014-02-20 14:35:31 +04:00
|
|
|
$userlistParams = array();
|
2014-02-19 19:53:29 +04:00
|
|
|
$allGroups=array();
|
2016-08-24 11:06:46 +03:00
|
|
|
foreach($_["adminGroup"] as $group) {
|
2014-02-19 19:53:29 +04:00
|
|
|
$allGroups[] = $group['name'];
|
|
|
|
}
|
2016-08-24 11:06:46 +03:00
|
|
|
foreach($_["groups"] as $group) {
|
2014-05-06 17:01:37 +04:00
|
|
|
$allGroups[] = $group['name'];
|
|
|
|
}
|
2014-02-20 14:35:31 +04:00
|
|
|
$userlistParams['subadmingroups'] = $allGroups;
|
|
|
|
$userlistParams['allGroups'] = json_encode($allGroups);
|
|
|
|
$items = array_flip($userlistParams['subadmingroups']);
|
2014-02-19 19:53:29 +04:00
|
|
|
unset($items['admin']);
|
2014-02-20 14:35:31 +04:00
|
|
|
$userlistParams['subadmingroups'] = array_flip($items);
|
2014-10-29 12:57:46 +03:00
|
|
|
|
|
|
|
translation('settings');
|
2014-02-19 19:53:29 +04:00
|
|
|
?>
|
|
|
|
|
|
|
|
<div id="app-navigation">
|
|
|
|
<?php print_unescaped($this->inc('users/part.grouplist')); ?>
|
|
|
|
<div id="app-settings">
|
2014-08-29 02:08:01 +04:00
|
|
|
<div id="app-settings-header">
|
|
|
|
<button class="settings-button" tabindex="0" data-apps-slide-toggle="#app-settings-content"></button>
|
|
|
|
</div>
|
|
|
|
<div id="app-settings-content">
|
|
|
|
<?php print_unescaped($this->inc('users/part.setquota')); ?>
|
|
|
|
|
|
|
|
<div id="userlistoptions">
|
2014-12-12 12:21:50 +03:00
|
|
|
<p>
|
2015-09-25 07:24:08 +03:00
|
|
|
<input type="checkbox" name="StorageLocation" value="StorageLocation" id="CheckboxStorageLocation"
|
2015-10-29 13:36:20 +03:00
|
|
|
class="checkbox" <?php if ($_['show_storage_location'] === 'true') print_unescaped('checked="checked"'); ?> />
|
2014-12-12 12:21:50 +03:00
|
|
|
<label for="CheckboxStorageLocation">
|
2014-08-29 02:08:01 +04:00
|
|
|
<?php p($l->t('Show storage location')) ?>
|
2014-12-12 12:21:50 +03:00
|
|
|
</label>
|
|
|
|
</p>
|
|
|
|
<p>
|
2015-09-25 07:24:08 +03:00
|
|
|
<input type="checkbox" name="LastLogin" value="LastLogin" id="CheckboxLastLogin"
|
2015-10-29 13:36:20 +03:00
|
|
|
class="checkbox" <?php if ($_['show_last_login'] === 'true') print_unescaped('checked="checked"'); ?> />
|
2014-12-12 12:21:50 +03:00
|
|
|
<label for="CheckboxLastLogin">
|
|
|
|
<?php p($l->t('Show last log in')) ?>
|
|
|
|
</label>
|
|
|
|
</p>
|
|
|
|
<p>
|
2015-09-25 07:24:08 +03:00
|
|
|
<input type="checkbox" name="UserBackend" value="UserBackend" id="CheckboxUserBackend"
|
2015-10-29 13:36:20 +03:00
|
|
|
class="checkbox" <?php if ($_['show_backend'] === 'true') print_unescaped('checked="checked"'); ?> />
|
2014-12-12 12:21:50 +03:00
|
|
|
<label for="CheckboxUserBackend">
|
|
|
|
<?php p($l->t('Show user backend')) ?>
|
|
|
|
</label>
|
|
|
|
</p>
|
2014-12-16 11:08:38 +03:00
|
|
|
<p>
|
2015-09-25 07:24:08 +03:00
|
|
|
<input type="checkbox" name="MailOnUserCreate" value="MailOnUserCreate" id="CheckboxMailOnUserCreate"
|
2015-10-29 13:36:20 +03:00
|
|
|
class="checkbox" <?php if ($_['send_email'] === 'true') print_unescaped('checked="checked"'); ?> />
|
2014-12-16 11:08:38 +03:00
|
|
|
<label for="CheckboxMailOnUserCreate">
|
2014-12-15 14:43:42 +03:00
|
|
|
<?php p($l->t('Send email to new user')) ?>
|
|
|
|
</label>
|
|
|
|
</p>
|
2017-02-15 21:17:55 +03:00
|
|
|
<p class="info-text">
|
|
|
|
When the password of the new user is left empty an activation email with a link to set the password is send to the user.
|
2016-11-23 23:30:15 +03:00
|
|
|
</p>
|
2014-12-15 14:43:42 +03:00
|
|
|
<p>
|
2015-09-25 07:24:08 +03:00
|
|
|
<input type="checkbox" name="EmailAddress" value="EmailAddress" id="CheckboxEmailAddress"
|
2015-10-29 13:36:20 +03:00
|
|
|
class="checkbox" <?php if ($_['show_email'] === 'true') print_unescaped('checked="checked"'); ?> />
|
2014-12-15 14:43:42 +03:00
|
|
|
<label for="CheckboxEmailAddress">
|
|
|
|
<?php p($l->t('Show email address')) ?>
|
2014-12-16 11:08:38 +03:00
|
|
|
</label>
|
|
|
|
</p>
|
2014-08-29 02:08:01 +04:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-02-19 19:53:29 +04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="app-content">
|
|
|
|
<?php print_unescaped($this->inc('users/part.createuser')); ?>
|
2014-02-20 14:35:31 +04:00
|
|
|
<?php print_unescaped($this->inc('users/part.userlist', $userlistParams)); ?>
|
2014-10-29 12:57:46 +03:00
|
|
|
</div>
|