diff options
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 |