Commit 80e13428edaeba1f894de888ccbd76c381faebd9
1 parent
f5de0b5d
Exists in
master
and in
5 other branches
Sucess message included in delete file template [Issue:#455]
Showing
1 changed file
with
2 additions
and
11 deletions
Show diff stats
files/templates/files/delete_file.html
... | ... | @@ -15,16 +15,6 @@ |
15 | 15 | <!-- Card --> |
16 | 16 | <form class="form-horizontal" method="post" id="form-delete-file" enctype="multipart/form-data"> |
17 | 17 | {% csrf_token %} |
18 | - {% if messages %} | |
19 | - {% for message in messages %} | |
20 | - <div class="alert alert-{{ message.tags }} alert-dismissible" role="alert"> | |
21 | - <button type="button" class="close" data-dismiss="alert" aria-label="Close"> | |
22 | - <span aria-hidden="true">×</span> | |
23 | - </button> | |
24 | - <p>{{ message }}</p> | |
25 | - </div> | |
26 | - {% endfor %} | |
27 | - {% endif %} | |
28 | 18 | <fieldset> |
29 | 19 | <div class="col-md-12"> |
30 | 20 | {% trans "Are you sure to delete " %}<a href="{{ file.file_url.url }}" target="_blank" > {{ file.name }} </a> of {{ file.topic.name }}? |
... | ... | @@ -62,6 +52,7 @@ |
62 | 52 | $('#file_{{ file.slug }}').remove(); |
63 | 53 | $('#file_edit_icon_{{ file.slug }}').remove(); |
64 | 54 | $('#file_edit_{{ file.slug }}').remove(); |
55 | + alertify.success(" {% trans 'File successfully deleted!' %} "); | |
65 | 56 | }, |
66 | 57 | error: function(data){ |
67 | 58 | // $('.erro-update').html(data.responseText); |
... | ... | @@ -74,4 +65,4 @@ |
74 | 65 | }); |
75 | 66 | </script> |
76 | 67 | {% endblock script_file %} |
77 | -<!-- EndModal --> | |
78 | 68 | \ No newline at end of file |
69 | +<!-- EndModal --> | ... | ... |