Update wiki links to the new short URL
[aur.git] / web / template / pkg_comment_form.php
blobe8a516e33c203ba949ce4bce66d0582fabcc0cfb
1 <form action="<?= get_pkgbase_uri($pkgbase_name) ?>" method="post">
2 <fieldset>
3 <div>
4 <input type="hidden" name="action" value="<?= (isset($comment_id)) ? "do_EditComment" : "do_AddComment" ?>" />
5 <input type="hidden" name="ID" value="<?= intval($base_id) ?>" />
6 <?php if (isset($comment_id)): ?>
7 <input type="hidden" name="comment_id" value="<?= $comment_id ?>" />
8 <?php endif; ?>
9 <input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" />
10 </div>
11 <p>
12 <?= __("Git commit identifiers referencing commits in the AUR package repository and URLs are converted to links automatically.") ?>
13 <?= __("%sMarkdown syntax%s is partially supported.", '<a href="https://daringfireball.net/projects/markdown/syntax">', "</a>") ?>
14 </p>
15 <p>
16 <textarea id="id_comment" name="comment" cols="80" rows="10"><?= (isset($comment_id)) ? htmlspecialchars($comment) : "" ?></textarea>
17 </p>
18 <p>
19 <input type="submit" value="<?= (isset($comment_id)) ? __("Save") : __("Add Comment") ?>" />
20 <?php if (!isset($comment_id) && !pkgbase_user_notify($uid, $base_id)): ?>
21 <span class="comment-enable-notifications">
22 <input type="checkbox" name="enable_notifications" id="id_enable_notifications" />
23 <label for="id_enable_notifications"><?= __("Enable notifications") ?></label>
24 </span>
25 <?php endif; ?>
26 </p>
27 </fieldset>
28 </form>