diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-07-04 10:40:29 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-07-04 11:10:37 +0200 |
commit | 8a465182babccec10b8e789dbc871db3beb9bec5 (patch) | |
tree | 135ca7f54ec901fc498c77dbfab9486df5080a9b /web/template/pkgreq_close_form.php | |
parent | 61d70c1fa5f0ed9cfe4708a4630fbf959da2d781 (diff) | |
download | aurweb-8a465182babccec10b8e789dbc871db3beb9bec5.tar.xz |
Allow for selecting a reason when closing a request
When closing a package request, Trusted Users can now pick a reason
("Accepted" or "Rejected"). This allows for marking a request as
accepted, even if the corresponding package base has already been
deleted.
Also, the notification email now always explicitly states whether a
request has been accepted or closed in the message body.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template/pkgreq_close_form.php')
-rw-r--r-- | web/template/pkgreq_close_form.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/web/template/pkgreq_close_form.php b/web/template/pkgreq_close_form.php new file mode 100644 index 0000000..be36aef --- /dev/null +++ b/web/template/pkgreq_close_form.php @@ -0,0 +1,24 @@ +<div class="box"> + <h2><?= __('Close Request: %s', htmlspecialchars($pkgbase_name)) ?></h2> + <p> + <?= __('Use this form to close the request for package base %s%s%s.', + '<strong>', htmlspecialchars($pkgbase_name), '</strong>'); ?> + </p> + <form action="<?= get_uri('/pkgbase/'); ?>" method="post"> + <fieldset> + <input type="hidden" name="reqid" value="<?= $pkgreq_id ?>" /> + <input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" /> + <p> + <label for="id_reason"><?= __("Reason") ?>:</label> + <select name="reason" id="id_reason"> + <option value="accepted"><?= __('Accepted') ?></option> + <option value="rejected"><?= __('Rejected') ?></option> + </select> + </p> + <p> + <input type="submit" class="button" name="do_CloseRequest" value="<?= __("Close Request") ?>" /> + </p> + </fieldset> + </form> +</div> + |