index : flyspray | |
Archlinux32 customized Flyspray installation | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2020-02-01 09:05:48 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2020-02-01 09:05:48 +0100 |
commit | 6854cb3f4d8219cf1829e32122eb2502a916eae9 (patch) | |
tree | 350feb504587d932e02837a1442b059759927646 /themes/CleanFS/templates/details.tabs.notifs.tpl |
-rw-r--r-- | themes/CleanFS/templates/details.tabs.notifs.tpl | 30 |
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&action=remove_notification&task_id=<?php echo Filters::noXSS($task_details['task_id']); ?>&ids=<?php echo Filters::noXSS($task_details['task_id']); ?>&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> + |