Commit 1a51c6d24f374749ee75f13f17100ddac2c34eda
Committed by
Fabio Teixeira
1 parent
6f434dd3
Exists in
master
and in
3 other branches
Fix the SISP field and the redirection for create institution when user is admin
This closes #40 Signed-off-by: Gabriela Navarro <navarro1703@gmail.com>
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
controllers/gov_user_plugin_controller.rb
@@ -203,7 +203,7 @@ class GovUserPluginController < ApplicationController | @@ -203,7 +203,7 @@ class GovUserPluginController < ApplicationController | ||
203 | redirect_to :controller => "/admin_panel", :action => "index" | 203 | redirect_to :controller => "/admin_panel", :action => "index" |
204 | else | 204 | else |
205 | flash[:errors] = response_message[:errors] | 205 | flash[:errors] = response_message[:errors] |
206 | - redirect_to :controller => "software_communities_plugin", :action => "create_institution_admin" | 206 | + render :controller => "gov_user_plugin", :action => "create_institution_admin" |
207 | end | 207 | end |
208 | end | 208 | end |
209 | 209 |
views/gov_user_plugin/_institution.html.erb
@@ -102,10 +102,10 @@ | @@ -102,10 +102,10 @@ | ||
102 | <div class="formfield type-text"> | 102 | <div class="formfield type-text"> |
103 | <%= _("SISP?") %> | 103 | <%= _("SISP?") %> |
104 | <% if @show_sisp_field %> | 104 | <% if @show_sisp_field %> |
105 | - <%= inst.label("sisp" ,_("Yes")) %> | ||
106 | <%= inst.radio_button(:sisp, true) %> | 105 | <%= inst.radio_button(:sisp, true) %> |
107 | - <%= inst.label("sisp" ,_("No")) %> | 106 | + <%= inst.label :sisp ,_("Yes"), :value => true %> |
108 | <%= inst.radio_button(:sisp, false, :checked=>"checked") %> | 107 | <%= inst.radio_button(:sisp, false, :checked=>"checked") %> |
108 | + <%= inst.label :sisp ,_("No"), :value => false %> | ||
109 | <% else %> | 109 | <% else %> |
110 | <%= inst.label("sisp", _("No")) %> | 110 | <%= inst.label("sisp", _("No")) %> |
111 | <% end %> | 111 | <% end %> |