Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/themes/CleanFS/templates/admin.userrequest.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/admin.userrequest.tpl
initial checkin
Diffstat (limited to 'themes/CleanFS/templates/admin.userrequest.tpl')
-rw-r--r--themes/CleanFS/templates/admin.userrequest.tpl50
1 files changed, 50 insertions, 0 deletions
diff --git a/themes/CleanFS/templates/admin.userrequest.tpl b/themes/CleanFS/templates/admin.userrequest.tpl
new file mode 100644
index 0000000..badc98b
--- /dev/null
+++ b/themes/CleanFS/templates/admin.userrequest.tpl
@@ -0,0 +1,50 @@
+<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('emailaddress')); ?></th>
+ <th class="pm-buttons"> </th>
+ </tr>
+ <?php foreach ($pendings as $req): ?>
+ <tr>
+ <td>
+ New User Request
+ </td>
+ <td><?php echo tpl_userlink($req['submitted_by']); ?></td>
+ <td><?php echo Filters::noXSS(formatDate($req['time_submitted'], true)); ?></td>
+ <td><?php echo Filters::noXSS($req['reason_given']); ?></td>
+ <td>
+ <?php echo tpl_form(Filters::noXSS(CreateUrl('edituser', $req['submitted_by'])), null, null, null, 'style="display:inline"'); ?>
+ <input type="submit" value="<?php echo Filters::noXSS(L('accept')); ?>">
+ <input type="hidden" name="action" value="approve.user"/>
+ <input type="hidden" name="user_id" value="<?php echo $req['submitted_by']; ?>"/>
+ <input type="hidden" name="account_enabled" value="1"/>
+ </form>
+
+ <button class="submit" onclick="showhidestuff('denyform<?php echo Filters::noXSS($req['request_id']); ?>');"><?php echo Filters::noXSS(L('deny')); ?></button>
+ <div id="denyform<?php echo Filters::noXSS($req['request_id']); ?>" class="denyform">
+ <?php echo tpl_form(Filters::noXSS(CreateUrl('admin','userrequest'))); ?>
+ <div>
+ <input type="hidden" name="action" value="denyuserreq" />
+ <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>