summaryrefslogtreecommitdiff
path: root/app/Templates/user_notifications.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-09-02 23:41:12 -0800
committerFrédéric Guillot <fred@kanboard.net>2014-09-02 23:41:12 -0800
commitd68ff648b1995c14506d4c61c9d97dc7f599496f (patch)
tree82a2879ee26a4edd30adf8b9fd7b777e17068c23 /app/Templates/user_notifications.php
parent7bb09c3f9b3440cf297104f32e80050601d61533 (diff)
Refactoring of user management (ui)
Diffstat (limited to 'app/Templates/user_notifications.php')
-rw-r--r--app/Templates/user_notifications.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/app/Templates/user_notifications.php b/app/Templates/user_notifications.php
new file mode 100644
index 00000000..13dd9809
--- /dev/null
+++ b/app/Templates/user_notifications.php
@@ -0,0 +1,22 @@
+<div class="page-header">
+ <h2><?= t('Email notifications') ?></h2>
+</div>
+
+<form method="post" action="?controller=user&amp;action=notifications&amp;user_id=<?= $user['id'] ?>" autocomplete="off">
+
+ <?= Helper\form_csrf() ?>
+
+ <?= Helper\form_checkbox('notifications_enabled', t('Enable email notifications'), '1', $notifications['notifications_enabled'] == 1) ?><br/>
+
+ <p><?= t('I want to receive notifications only for those projects:') ?><br/><br/></p>
+
+ <div class="form-checkbox-group">
+ <?php foreach ($projects as $project_id => $project_name): ?>
+ <?= Helper\form_checkbox('projects['.$project_id.']', $project_name, '1', isset($notifications['project_'.$project_id])) ?>
+ <?php endforeach ?>
+ </div>
+ <div class="form-actions">
+ <input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/>
+ <?= t('or') ?> <a href="?controller=user&amp;action=show&amp;user_id=<?= $user['id'] ?>"><?= t('cancel') ?></a>
+ </div>
+</form> \ No newline at end of file