aboutsummaryrefslogtreecommitdiff
path: root/app/templates/packages
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-07-10 19:26:37 +0100
committerrubenwardy <rw@rubenwardy.com>2020-07-10 19:26:37 +0100
commit436a4cce2b819740d10721e320c3c80f07c0c27b (patch)
tree4d290f1803b3983f3f8368caa8c44e870907ac44 /app/templates/packages
parent71f9fe469a60cd147e9b4ea128486f973b76c662 (diff)
downloadcheatdb-436a4cce2b819740d10721e320c3c80f07c0c27b.tar.xz
Add ability to delete reviews
Diffstat (limited to 'app/templates/packages')
-rw-r--r--app/templates/packages/review_create_edit.html10
1 files changed, 9 insertions, 1 deletions
diff --git a/app/templates/packages/review_create_edit.html b/app/templates/packages/review_create_edit.html
index a53bbd7..6ed6fe1 100644
--- a/app/templates/packages/review_create_edit.html
+++ b/app/templates/packages/review_create_edit.html
@@ -41,8 +41,16 @@
</div>
</div>
</div>
-
</form>
+{% if review %}
+<form method="POST" action="{{ review.getDeleteURL() }}" class="alert alert-secondary my-5">
+ <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
+ <input class="btn btn-sm btn-danger float-right" type="submit" value="{{ _('Delete') }}">
+ <b>{{ _("Delete review.") }}</b>
+ {{ _("This will convert the review into a thread, keeping the comments but removing its effect on the package's rating.") }}
+ <div style="clear:both;"></div>
+</form>
+{% endif %}
{% endblock %}