From dd76838c65bba8b8c493d9cc1452d44a3fdb4b68 Mon Sep 17 00:00:00 2001 From: Luciano Prestes Cavalcanti Date: Tue, 19 Jan 2016 18:54:27 +0000 Subject: [PATCH] Fix bug on create institution on admin panel --- src/noosfero-spb/gov_user/views/gov_user_plugin/_institution.html.erb | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/noosfero-spb/gov_user/views/gov_user_plugin/_institution.html.erb b/src/noosfero-spb/gov_user/views/gov_user_plugin/_institution.html.erb index 80d4c33..a46624b 100644 --- a/src/noosfero-spb/gov_user/views/gov_user_plugin/_institution.html.erb +++ b/src/noosfero-spb/gov_user/views/gov_user_plugin/_institution.html.erb @@ -13,26 +13,18 @@
- <% unless flash[:errors].nil? %> -
-

<%= _("Can`t create new Institution: #{flash[:errors].length} errors") %>

-
    - <% flash[:errors].each do |key, value| %> - <% key_name = key.to_s.gsub("_", " ") %> - <% if value.length > 0 %> -
  • <%= _("#{key_name.capitalize} #{value.join()}") %>
  • + <% unless flash[:errors].blank? %> +
    +

    <%= _("Can`t create new Institution: #{flash[:errors].length} errors") %>

    +
      + <% flash[:errors].each do |error| %> +
    • <%= error %>
    • <% end %> - <% end %> -
    -
    +
+
<% end %>
-
-
-
- - <%= form_for :community, :url => {:action=>"new_institution"}, :html => { :multipart => true, :id=>"institution_form" } do |f| %> <%= hidden_field_tag "edit_institution_page", false %> -- libgit2 0.21.2