Commit 56e0cba325f5930b4d0eeaac586b5960aca4d22e

Authored by Fabio Teixeira
1 parent 1142b083

Fix bug on institution modal errors

Signed-off-by: Fabio Teixeira <fabio1079@gmail.com>
src/noosfero-spb/gov_user/views/gov_user_plugin/_institution.html.erb
... ... @@ -13,16 +13,16 @@
13 13 </div>
14 14  
15 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 18 <h2><%= _("Can`t create new Institution: #{flash[:errors].length} errors") %></h2>
19 19 <ul>
20 20 <% flash[:errors].each do |error| %>
21 21 <li><%= error %></li>
22 22 <% end %>
23 23 </ul>
24   - </div>
25   - <% end %>
  24 + <% end %>
  25 + </div>
26 26 </div>
27 27  
28 28 <%= form_for :community, :url => {:action=>"new_institution"}, :html => { :multipart => true, :id=>"institution_form" } do |f| %>
... ...