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/pm.pendingreq.tpl |
-rw-r--r-- | themes/CleanFS/templates/pm.pendingreq.tpl | 79 |
diff --git a/themes/CleanFS/templates/pm.pendingreq.tpl b/themes/CleanFS/templates/pm.pendingreq.tpl new file mode 100644 index 0000000..353dc3b --- /dev/null +++ b/themes/CleanFS/templates/pm.pendingreq.tpl @@ -0,0 +1,79 @@ +<div id="toolbox"> + <h3><?php echo Filters::noXSS(L('pendingrequests')); ?></h3> + + <?php if (!count($pendings)): ?> + <?php echo Filters::noXSS(L('nopendingreq')); ?> + + <?php else: ?> + <table class="requests"> + <tr> + <th><?php echo Filters::noXSS(L('eventdesc')); ?></th> + <th><?php echo Filters::noXSS(L('requestedby')); ?></th> + <th><?php echo Filters::noXSS(L('daterequested')); ?></th> + <th><?php echo Filters::noXSS(L('reasongiven')); ?></th> + <th class="pm-buttons"> </th> + </tr> + <?php foreach ($pendings as $req): ?> + <tr> + <td> + <?php if ($req['request_type'] == 1) : ?> + <?php echo Filters::noXSS(L('closetask')); ?> - + <a href="<?php echo Filters::noXSS(CreateURL('details', $req['task_id'])); ?>">FS#<?php echo Filters::noXSS($req['task_id']); ?> : + <?php echo Filters::noXSS($req['item_summary']); ?></a> + <?php elseif ($req['request_type'] == 2) : ?> + <?php echo Filters::noXSS(L('reopentask')); ?> - + <a href="<?php echo Filters::noXSS(CreateURL('details', $req['task_id'])); ?>">FS#<?php echo Filters::noXSS($req['task_id']); ?> : + <?php echo Filters::noXSS($req['item_summary']); ?></a> + <?php endif; ?> + </td> + <td><?php echo tpl_userlink($req['user_id']); ?></td> + <td><?php echo Filters::noXSS(formatDate($req['time_submitted'], true)); ?></td> + <td><?php echo Filters::noXSS($req['reason_given']); ?></td> + <td> + <?php if ($req['request_type'] == 1) : ?> + <a class="button" href="#" onclick="showhidestuff('closeform<?php echo Filters::noXSS($req['request_id']); ?>');"><?php echo Filters::noXSS(L('accept')); ?></a> + <div id="closeform<?php echo Filters::noXSS($req['request_id']); ?>" class="denyform"> + <?php echo tpl_form(Filters::noXSS(CreateURL('pm', 'pendingreq', $proj->id))); ?> + <div> + <input type="hidden" name="action" value="details.close"/> + <input type="hidden" name="task_id" value="<?php echo Filters::noXSS($req['task_id']); ?>"/> + <select class="adminlist" name="resolution_reason" onmouseup="event.stopPropagation();"> + <option value="0"><?php echo Filters::noXSS(L('selectareason')); ?></option> + <?php echo tpl_options($proj->listResolutions(), Req::val('resolution_reason')); ?> + </select> + <button type="submit"><?php echo Filters::noXSS(L('closetask')); ?></button> + <br/> + <label class="default text" for="closure_comment"><?php echo Filters::noXSS(L('closurecomment')); ?></label> + <textarea class="text" id="closure_comment" name="closure_comment" rows="3" + cols="25"><?php echo Filters::noXSS(Req::val('closure_comment')); ?></textarea> + <label><?php echo tpl_checkbox('mark100', Req::val('mark100', !(Req::val('action') == 'details.close'))); ?> <?php echo Filters::noXSS(L('mark100')); ?></label> + </div> + </form> + </div> + <?php elseif ($req['request_type'] == 2) : ?> + <?php echo tpl_form(Filters::noXSS(CreateUrl('pm', 'pendingreq', $proj->id)), null, null, null, 'style="display:inline"'); ?> + <input type="hidden" name="action" value="reopen" /> + <input type="hidden" name="task_id" value="<?php echo Filters::noXSS($req['task_id']); ?>"> + <input type="submit" class="button" value="<?php echo Filters::noXSS(L('accept')); ?>"> + </form> + + <?php endif; ?> + <a href="#" class="button" onclick="showhidestuff('denyform<?php echo Filters::noXSS($req['request_id']); ?>');"><?php echo Filters::noXSS(L('deny')); ?></a> + <div id="denyform<?php echo Filters::noXSS($req['request_id']); ?>" class="denyform"> + <?php echo tpl_form(Filters::noXSS(CreateUrl('pm', 'pendingreq', $proj->id))); ?> + <div> + <input type="hidden" name="action" value="denypmreq" /> + <input type="hidden" name="req_id" value="<?php echo Filters::noXSS($req['request_id']); ?>" /> + <label for="deny_reason<?php echo Filters::noXSS($req['request_id']); ?>" class="inline"><?php echo Filters::noXSS(L('reasonfordeinal')); ?></label><br /> + <textarea cols="40" rows="5" name="deny_reason" id="deny_reason<?php echo Filters::noXSS($req['request_id']); ?>"></textarea> + <br /> + <button type="submit"><?php echo Filters::noXSS(L('deny')); ?></button> + </div> + </form> + </div> + </td> + </tr> + <?php endforeach; ?> + </table> + <?php endif; ?> +</div> |