Commit d8f5e310c953cd7cccf1144dfc6b8bff3cee1cc3

Authored by Joenio
2 parents fadc017a 56e0cba3

Merge branch 'fix_institution_errors_display' into 'master'

Fix institution errors display

Fix bug of not showing errors on institution modal

See merge request !182
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| %>
... ...