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,16 +15,6 @@ | ||
15 | <!-- Card --> | 15 | <!-- Card --> |
16 | <form class="form-horizontal" method="post" id="form-delete-file" enctype="multipart/form-data"> | 16 | <form class="form-horizontal" method="post" id="form-delete-file" enctype="multipart/form-data"> |
17 | {% csrf_token %} | 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 | <fieldset> | 18 | <fieldset> |
29 | <div class="col-md-12"> | 19 | <div class="col-md-12"> |
30 | {% trans "Are you sure to delete " %}<a href="{{ file.file_url.url }}" target="_blank" > {{ file.name }} </a> of {{ file.topic.name }}? | 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,6 +52,7 @@ | ||
62 | $('#file_{{ file.slug }}').remove(); | 52 | $('#file_{{ file.slug }}').remove(); |
63 | $('#file_edit_icon_{{ file.slug }}').remove(); | 53 | $('#file_edit_icon_{{ file.slug }}').remove(); |
64 | $('#file_edit_{{ file.slug }}').remove(); | 54 | $('#file_edit_{{ file.slug }}').remove(); |
55 | + alertify.success(" {% trans 'File successfully deleted!' %} "); | ||
65 | }, | 56 | }, |
66 | error: function(data){ | 57 | error: function(data){ |
67 | // $('.erro-update').html(data.responseText); | 58 | // $('.erro-update').html(data.responseText); |
@@ -74,4 +65,4 @@ | @@ -74,4 +65,4 @@ | ||
74 | }); | 65 | }); |
75 | </script> | 66 | </script> |
76 | {% endblock script_file %} | 67 | {% endblock script_file %} |
77 | -<!-- EndModal --> | ||
78 | \ No newline at end of file | 68 | \ No newline at end of file |
69 | +<!-- EndModal --> |