Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/themes/CleanFS/templates/details.tabs.notifs.tpl
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-02-01 09:05:48 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2020-02-01 09:05:48 +0100
commit6854cb3f4d8219cf1829e32122eb2502a916eae9 (patch)
tree350feb504587d932e02837a1442b059759927646 /themes/CleanFS/templates/details.tabs.notifs.tpl
initial checkin
Diffstat (limited to 'themes/CleanFS/templates/details.tabs.notifs.tpl')
-rw-r--r--themes/CleanFS/templates/details.tabs.notifs.tpl30
1 files changed, 30 insertions, 0 deletions
diff --git a/themes/CleanFS/templates/details.tabs.notifs.tpl b/themes/CleanFS/templates/details.tabs.notifs.tpl
new file mode 100644
index 0000000..cebad39
--- /dev/null
+++ b/themes/CleanFS/templates/details.tabs.notifs.tpl
@@ -0,0 +1,30 @@
+<div id="notify" class="tab">
+ <p><em><?php echo Filters::noXSS(L('theseusersnotify')); ?></em></p>
+ <?php foreach ($notifications as $row): ?>
+ <div>
+ <?php echo tpl_form(Filters::noXSS(CreateUrl('details', $task_details['task_id'])).'#notify',null,null,null,'style="display:inline"'); ?>
+ <input type="hidden" name="action" value="remove_notification" />
+ <input type="hidden" name="ids" value="<?php echo Filters::noXSS($task_details['task_id']); ?>" />
+ <input type="hidden" name="user_id" value="<?php echo Filters::noXSS($row['user_id']); ?>" />
+ <button type="submit"><?php echo Filters::noXSS(L('remove')); ?></button>
+ <?php echo tpl_userlink($row['user_id']); ?>
+ </form>
+ <!--
+ <a href="<?php echo Filters::noXSS($_SERVER['SCRIPT_NAME']); ?>?do=details&amp;action=remove_notification&amp;task_id=<?php echo Filters::noXSS($task_details['task_id']); ?>&amp;ids=<?php echo Filters::noXSS($task_details['task_id']); ?>&amp;user_id=<?php echo Filters::noXSS($row['user_id']); ?>#notify"><?php echo Filters::noXSS(L('remove')); ?></a>
+ -->
+ </div>
+ <?php endforeach; ?>
+
+ <?php if ($user->perms('manage_project')): ?>
+ <?php echo tpl_form(Filters::noXSS(CreateUrl('details', $task_details['task_id'])).'#notify'); ?>
+ <div>
+ <label class="default multisel" for="notif_user_id"><?php echo Filters::noXSS(L('addusertolist')); ?>: </label>
+ <?php echo tpl_userselect('user_name', Req::val('user_name'), 'notif_user_id'); ?>
+ <button type="submit"><?php echo Filters::noXSS(L('add')); ?></button>
+ <input type="hidden" name="ids" value="<?php echo Filters::noXSS(Req::num('ids', $task_details['task_id'])); ?>" />
+ <input type="hidden" name="action" value="details.add_notification" />
+ </div>
+ </form>
+ <?php endif; ?>
+</div>
+