From 1a51c6d24f374749ee75f13f17100ddac2c34eda Mon Sep 17 00:00:00 2001 From: Gabriela Navarro Date: Wed, 15 Apr 2015 09:34:25 -0300 Subject: [PATCH] Fix the SISP field and the redirection for create institution when user is admin --- controllers/gov_user_plugin_controller.rb | 2 +- views/gov_user_plugin/_institution.html.erb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/controllers/gov_user_plugin_controller.rb b/controllers/gov_user_plugin_controller.rb index dd47862..b177c9d 100644 --- a/controllers/gov_user_plugin_controller.rb +++ b/controllers/gov_user_plugin_controller.rb @@ -203,7 +203,7 @@ class GovUserPluginController < ApplicationController redirect_to :controller => "/admin_panel", :action => "index" else flash[:errors] = response_message[:errors] - redirect_to :controller => "software_communities_plugin", :action => "create_institution_admin" + render :controller => "gov_user_plugin", :action => "create_institution_admin" end end diff --git a/views/gov_user_plugin/_institution.html.erb b/views/gov_user_plugin/_institution.html.erb index e5ed297..1ea58a2 100644 --- a/views/gov_user_plugin/_institution.html.erb +++ b/views/gov_user_plugin/_institution.html.erb @@ -102,10 +102,10 @@
<%= _("SISP?") %> <% if @show_sisp_field %> - <%= inst.label("sisp" ,_("Yes")) %> <%= inst.radio_button(:sisp, true) %> - <%= inst.label("sisp" ,_("No")) %> + <%= inst.label :sisp ,_("Yes"), :value => true %> <%= inst.radio_button(:sisp, false, :checked=>"checked") %> + <%= inst.label :sisp ,_("No"), :value => false %> <% else %> <%= inst.label("sisp", _("No")) %> <% end %> -- libgit2 0.21.2