]> git.lizzy.rs Git - cheatdb.git/commitdiff
Reduce chance of accidental release deletion v1.21.0
authorrubenwardy <rw@rubenwardy.com>
Sun, 19 Jan 2020 20:16:03 +0000 (20:16 +0000)
committerrubenwardy <rw@rubenwardy.com>
Sun, 19 Jan 2020 20:16:03 +0000 (20:16 +0000)
app/templates/packages/release_edit.html

index 36d41d42055eb701a7e9052335a65b25c90b0372..a0070ebf25059d91c6b2309af9ef9bbec1fbb578 100644 (file)
        <h2 class="mt-5">{{ _("Delete Release") }}</h2>
 
        {% if release.checkPerm(current_user, "DELETE_RELEASE") %}
-               <form method="POST" action="{{ release.getDeleteURL() }}" class="mb-5">
+               <form method="POST" action="{{ release.getDeleteURL() }}" class="alert alert-secondary mb-5">
                        <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
-                       <p>This is permanent.</p>
-                       <input class="btn btn-danger" type="submit" value="Delete">
+                       <input class="btn btn-sm btn-danger float-right" type="submit" value="{{ _('Delete') }}">
+                       <b>{{ _("This is permanent.") }}</b>
+                       {{ _("Any associated uploads will not be deleted immediately, but the release will no longer be listed.") }}
+                       <div style="clear:both;"></div>
                </form>
        {% else %}
                <div class="alert alert-secondary mb-5">