Commit 56e0cba325f5930b4d0eeaac586b5960aca4d22e
1 parent
1142b083
Exists in
master
and in
8 other branches
Fix bug on institution modal errors
Signed-off-by: Fabio Teixeira <fabio1079@gmail.com>
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
src/noosfero-spb/gov_user/views/gov_user_plugin/_institution.html.erb
@@ -13,16 +13,16 @@ | @@ -13,16 +13,16 @@ | ||
13 | </div> | 13 | </div> |
14 | 14 | ||
15 | <div class="spb-row spb-col spb-col-12"> | 15 | <div class="spb-row spb-col spb-col-12"> |
16 | - <% unless flash[:errors].blank? %> | ||
17 | - <div class="errorExplanation" id="errorExplanation"> | 16 | + <div class="errorExplanation" id="create_institution_errors"> |
17 | + <% unless flash[:errors].blank? %> | ||
18 | <h2><%= _("Can`t create new Institution: #{flash[:errors].length} errors") %></h2> | 18 | <h2><%= _("Can`t create new Institution: #{flash[:errors].length} errors") %></h2> |
19 | <ul> | 19 | <ul> |
20 | <% flash[:errors].each do |error| %> | 20 | <% flash[:errors].each do |error| %> |
21 | <li><%= error %></li> | 21 | <li><%= error %></li> |
22 | <% end %> | 22 | <% end %> |
23 | </ul> | 23 | </ul> |
24 | - </div> | ||
25 | - <% end %> | 24 | + <% end %> |
25 | + </div> | ||
26 | </div> | 26 | </div> |
27 | 27 | ||
28 | <%= form_for :community, :url => {:action=>"new_institution"}, :html => { :multipart => true, :id=>"institution_form" } do |f| %> | 28 | <%= form_for :community, :url => {:action=>"new_institution"}, :html => { :multipart => true, :id=>"institution_form" } do |f| %> |