Translation updates from Transifex
[aur.git] / web / template / actions_form.php
blobf18c01c4cb157acb3635096e9bd632e9d8011615
1 <?php if (!use_virtual_urls()): ?>
2 <div class="box">
3 <form action="<?= htmlspecialchars(get_pkg_uri($row['Name']), ENT_QUOTES); ?>" method="post">
4 <fieldset>
5 <input type="hidden" name="IDs[<?= $row['ID'] ?>]" value="1" />
6 <input type="hidden" name="ID" value="<?= $row['ID'] ?>" />
7 <input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" />
9 <?php if (pkgbase_user_voted($uid, $row['ID'])): ?>
10 <input type="submit" class="button" name="do_UnVote" value="<?= __("UnVote") ?>" />
11 <?php else: ?>
12 <input type="submit" class="button" name="do_Vote" value="<?= __("Vote") ?>" />
13 <?php endif; ?>
15 <?php if (pkgbase_user_notify($uid, $row['ID'])): ?>
16 <input type="submit" class="button" name="do_UnNotify" value="<?= __("UnNotify") ?>" title="<?= __("No New Comment Notification") ?>" />
17 <?php else: ?>
18 <input type="submit" class="button" name="do_Notify" value="<?= __("Notify") ?>" title="<?= __("New Comment Notification") ?>" />
19 <?php endif; ?>
21 <?php if ($row["OutOfDateTS"] === NULL): ?>
22 <input type="submit" class="button" name="do_Flag" value="<?= __("Flag Out-of-date") ?>" />
23 <?php elseif (($row["OutOfDateTS"] !== NULL) && has_credential(CRED_PKGBASE_UNFLAG, array($row["MaintainerUID"]))): ?>
24 <input type="submit" class="button" name="do_UnFlag" value="<?= __("UnFlag Out-of-date") ?>" />
25 <?php endif; ?>
27 <?php if (has_credential(CRED_PKGBASE_DELETE)): ?>
28 <input type="submit" class="button" name="do_Delete" value="<?= __("Delete Packages") ?>" />
29 <label for="merge_Into" ><?= __("Merge into") ?></label>
30 <input type="text" id="merge_Into" name="merge_Into" />
31 <input type="checkbox" name="confirm_Delete" value="1" />
32 <?= __("Confirm") ?>
33 <?php endif; ?>
35 </fieldset>
36 </form>
37 </div>
38 <?php endif; ?>