diff options
author | Aurélien <cadiou.aurelien@gmail.com> | 2018-04-02 23:07:04 +0200 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2018-04-02 14:07:04 -0700 |
commit | 5f7a3442d61b99e2fbad732bd0eaf9ad64398274 (patch) | |
tree | 78d2b159be9d2df92e28c90164430fdac2a4cac7 /app/Template | |
parent | bc4457c4cb096a448d88ca882d30bae15aff56c3 (diff) |
Add default filter per user
Diffstat (limited to 'app/Template')
-rw-r--r-- | app/Template/user_creation/show.php | 3 | ||||
-rw-r--r-- | app/Template/user_modification/show.php | 3 | ||||
-rw-r--r-- | app/Template/user_view/show.php | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/app/Template/user_creation/show.php b/app/Template/user_creation/show.php index 597dce55..007dd701 100644 --- a/app/Template/user_creation/show.php +++ b/app/Template/user_creation/show.php @@ -50,6 +50,9 @@ <?= $this->form->label(t('Language'), 'language') ?> <?= $this->form->select('language', $languages, $values, $errors) ?> + + <?= $this->form->label(t('Filter'), 'filter') ?> + <?= $this->form->text('filter', $values, $errors) ?> <?= $this->form->checkbox('notifications_enabled', t('Enable email notifications'), 1, isset($values['notifications_enabled']) && $values['notifications_enabled'] == 1 ? true : false) ?> </fieldset> diff --git a/app/Template/user_modification/show.php b/app/Template/user_modification/show.php index b296371f..6244e255 100644 --- a/app/Template/user_modification/show.php +++ b/app/Template/user_modification/show.php @@ -24,6 +24,9 @@ <?= $this->form->label(t('Language'), 'language') ?> <?= $this->form->select('language', $languages, $values, $errors, array($this->user->hasAccess('UserModificationController', 'show/edit_language') ? '' : 'disabled')) ?> + + <?= $this->form->label(t('Filter'), 'filter') ?> + <?= $this->form->text('filter', $values, $errors, array($this->user->hasAccess('UserModificationController', 'show/edit_filter') ? '' : 'readonly')) ?> </fieldset> <?php if ($this->user->isAdmin()): ?> diff --git a/app/Template/user_view/show.php b/app/Template/user_view/show.php index 7f847f65..39d10ab5 100644 --- a/app/Template/user_view/show.php +++ b/app/Template/user_view/show.php @@ -33,6 +33,7 @@ <ul class="panel"> <li><?= t('Timezone:') ?> <strong><?= $this->text->in($user['timezone'], $timezones) ?></strong></li> <li><?= t('Language:') ?> <strong><?= $this->text->in($user['language'], $languages) ?></strong></li> + <li><?= t('Filter:') ?> <strong><?= $this->text->e($user['filter']) ?></strong></li> <li><?= t('Notifications:') ?> <strong><?= $user['notifications_enabled'] == 1 ? t('Enabled') : t('Disabled') ?></strong></li> </ul> |