Commit d1ed30dfc6a517bac8504c6a93613d95c081ef76

Authored by Zambom
1 parent 7ca39e8e

Adding some missing messages

forum/static/js/forum.js
@@ -74,6 +74,8 @@ function setForumCreateFormSubmit(topic) { @@ -74,6 +74,8 @@ function setForumCreateFormSubmit(topic) {
74 success: function (data) { 74 success: function (data) {
75 $(".topic_" + topic).find('.foruns_list').append("<li><i class='fa fa-commenting' aria-hidden='true'></i> <a id='forum_"+data.forum_id+"' href='"+data.url+"'> "+data.name+"</a></li>"); 75 $(".topic_" + topic).find('.foruns_list').append("<li><i class='fa fa-commenting' aria-hidden='true'></i> <a id='forum_"+data.forum_id+"' href='"+data.url+"'> "+data.name+"</a></li>");
76 76
  77 + alertify.success(data.message);
  78 +
77 $("#createForum").modal('hide'); 79 $("#createForum").modal('hide');
78 }, 80 },
79 error: function(data) { 81 error: function(data) {
forum/templates/forum/forum_form.html
@@ -15,21 +15,21 @@ @@ -15,21 +15,21 @@
15 <label for="{{ field.auto_id }}">{{ field.label }}</label> 15 <label for="{{ field.auto_id }}">{{ field.label }}</label>
16 {% render_field field %} 16 {% render_field field %}
17 <span class="help-block">{{ field.help_text }}</span> 17 <span class="help-block">{{ field.help_text }}</span>
18 - {% if field.errors %}  
19 - <div class="row">  
20 - <br />  
21 - <div class="alert alert-danger alert-dismissible" role="alert">  
22 - <button type="button" class="close" data-dismiss="alert" aria-label="Close">  
23 - <span aria-hidden="true">&times;</span>  
24 - </button>  
25 - <ul>  
26 - {% for error in field.errors %}  
27 - <li>{{ error }}</li>  
28 - {% endfor %}  
29 - </ul>  
30 - </div> 18 + {% endif %}
  19 + {% if field.errors %}
  20 + <div class="row">
  21 + <br />
  22 + <div class="alert alert-danger alert-dismissible" role="alert">
  23 + <button type="button" class="close" data-dismiss="alert" aria-label="Close">
  24 + <span aria-hidden="true">&times;</span>
  25 + </button>
  26 + <ul>
  27 + {% for error in field.errors %}
  28 + <li>{{ error }}</li>
  29 + {% endfor %}
  30 + </ul>
31 </div> 31 </div>
32 - {% endif %} 32 + </div>
33 {% endif %} 33 {% endif %}
34 </div> 34 </div>
35 {% endfor %} 35 {% endfor %}