diff options
| author | Dzial Techniczny WMW Projekt s.c <techniczna@wmwprojekt.pl> | 2019-12-10 11:34:53 +0100 |
|---|---|---|
| committer | Dzial Techniczny WMW Projekt s.c <techniczna@wmwprojekt.pl> | 2019-12-10 11:34:53 +0100 |
| commit | b8fa0246803dab40cf57d40b45984c53046f2d55 (patch) | |
| tree | dc92b167c7542137c385614a1d558e57669a4339 /plugins/Boardcustomizer/Template/user/settings.php | |
| parent | 2a43146236fd8fb16f84398d85720ad84aa0a0b1 (diff) | |
Plugins directory and local modifications
Diffstat (limited to 'plugins/Boardcustomizer/Template/user/settings.php')
| -rw-r--r-- | plugins/Boardcustomizer/Template/user/settings.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/plugins/Boardcustomizer/Template/user/settings.php b/plugins/Boardcustomizer/Template/user/settings.php new file mode 100644 index 00000000..9a6e3124 --- /dev/null +++ b/plugins/Boardcustomizer/Template/user/settings.php @@ -0,0 +1,29 @@ +<div class="page-header">
+ <h2><?= t('My display settings') ?></h2>
+</div>
+
+
+<?php if (empty($options)) : ?>
+ <p class="alert"><?= t('No options') ?></p>
+<?php else : ?>
+ <table class="table-small table-fixed">
+ <tr>
+ <th class="column-40"><?= t('Option') ?></th>
+ <th class="column-20"><?= t('Status') ?></th>
+ </tr>
+ <?php foreach ($options as $option => $key) : ?>
+ <tr>
+ <td>
+ <?= $option ?>
+ </td>
+ <td>
+ <?php if ($this->user->userMetadataModel->exists($user['id'], $key)) : ?>
+ <?= $this->url->icon('toggle-off', t('Disable'), 'SettingsController', 'disable', array('plugin' => 'boardcustomizer', 'key' => $key), true) ?>
+ <?php else : ?>
+ <?= $this->url->icon('toggle-on', t('Enable'), 'SettingsController', 'enable', array('plugin' => 'boardcustomizer', 'key' => $key), true) ?>
+ <?php endif ?>
+ </td>
+ </tr>
+ <?php endforeach ?>
+ </table>
+<?php endif ?>
\ No newline at end of file |
