Contents of /trunk/flyspray/themes/Magellan/templates/admin.userrequest.tpl
Parent Directory | Revision Log
Revision 6 -
(show annotations)
(download)
Thu Mar 24 13:33:23 2016 UTC (8 years, 2 months ago) by niro
File size: 2377 byte(s)
Thu Mar 24 13:33:23 2016 UTC (8 years, 2 months ago) by niro
File size: 2377 byte(s)
-import flyspray-1.0-beta Magellan theme
1 | <div id="toolbox"> |
2 | <h3><?php echo Filters::noXSS(L('pendingrequests')); ?></h3> |
3 | |
4 | <?php if (!count($pendings)): ?> |
5 | <?php echo Filters::noXSS(L('nopendingreq')); ?> |
6 | |
7 | <?php else: ?> |
8 | <table class="requests"> |
9 | <tr> |
10 | <th><?php echo Filters::noXSS(L('eventdesc')); ?></th> |
11 | <th><?php echo Filters::noXSS(L('requestedby')); ?></th> |
12 | <th><?php echo Filters::noXSS(L('daterequested')); ?></th> |
13 | <th><?php echo Filters::noXSS(L('emailaddress')); ?></th> |
14 | <th class="pm-buttons"> </th> |
15 | </tr> |
16 | <?php foreach ($pendings as $req): ?> |
17 | <tr> |
18 | <td> |
19 | New User Request |
20 | </td> |
21 | <td><?php echo tpl_userlink($req['submitted_by']); ?></td> |
22 | <td><?php echo Filters::noXSS(formatDate($req['time_submitted'], true)); ?></td> |
23 | <td><?php echo Filters::noXSS($req['reason_given']); ?></td> |
24 | <td> |
25 | <?php echo tpl_form(Filters::noXSS(CreateUrl('edituser', $req['submitted_by'])), null, null, null, 'style="display:inline"'); ?> |
26 | <input type="submit" value="<?php echo Filters::noXSS(L('accept')); ?>"> |
27 | <input type="hidden" name="action" value="approve.user"/> |
28 | <input type="hidden" name="user_id" value="<?php echo $req['submitted_by']; ?>"/> |
29 | <input type="hidden" name="account_enabled" value="1"/> |
30 | </form> |
31 | |
32 | <button class="submit" onclick="showhidestuff('denyform<?php echo Filters::noXSS($req['request_id']); ?>');"><?php echo Filters::noXSS(L('deny')); ?></button> |
33 | <div id="denyform<?php echo Filters::noXSS($req['request_id']); ?>" class="denyform"> |
34 | <?php echo tpl_form(Filters::noXSS(CreateUrl('denyuserreq'))); ?> |
35 | <div> |
36 | <input type="hidden" name="action" value="denyuserreq" /> |
37 | <input type="hidden" name="req_id" value="<?php echo Filters::noXSS($req['request_id']); ?>" /> |
38 | <label for="deny_reason<?php echo Filters::noXSS($req['request_id']); ?>" class="inline"><?php echo Filters::noXSS(L('reasonfordeinal')); ?></label><br /> |
39 | <textarea cols="40" rows="5" name="deny_reason" id="deny_reason<?php echo Filters::noXSS($req['request_id']); ?>"></textarea> |
40 | <br /> |
41 | <button type="submit"><?php echo Filters::noXSS(L('deny')); ?></button> |
42 | </div> |
43 | </form> |
44 | </div> |
45 | </td> |
46 | </tr> |
47 | <?php endforeach; ?> |
48 | </table> |
49 | <?php endif; ?> |
50 | </div> |