feat: cancel button for comment editing

Adds button that allows cancellation while editing a comment

Signed-off-by: moson-mo <mo-son@mailbox.org>
This commit is contained in:
moson-mo 2023-03-08 18:40:35 +01:00
parent 52c962a590
commit 7d1827ffc5
No known key found for this signature in database
GPG key ID: 4A4760AB4EE15296
4 changed files with 35 additions and 0 deletions

View file

@ -33,6 +33,11 @@ Routes:
<button type="submit" class="button">
{{ ("Save" if comment else "Add Comment") | tr }}
</button>
{% if comment %}
<button type="submit" class="button" name="cancel" value="true">
{{ "Cancel" | tr }}
</button>
{% endif %}
{% if not request.user.notified(pkgbase) %}
<span class="comment-enable-notifications">
<input type="checkbox" name="enable_notifications"