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 | 203 | redirect_to :controller => "/admin_panel", :action => "index" |
204 | 204 | else |
205 | 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 | 207 | end |
208 | 208 | end |
209 | 209 | ... | ... |
views/gov_user_plugin/_institution.html.erb
... | ... | @@ -102,10 +102,10 @@ |
102 | 102 | <div class="formfield type-text"> |
103 | 103 | <%= _("SISP?") %> |
104 | 104 | <% if @show_sisp_field %> |
105 | - <%= inst.label("sisp" ,_("Yes")) %> | |
106 | 105 | <%= inst.radio_button(:sisp, true) %> |
107 | - <%= inst.label("sisp" ,_("No")) %> | |
106 | + <%= inst.label :sisp ,_("Yes"), :value => true %> | |
108 | 107 | <%= inst.radio_button(:sisp, false, :checked=>"checked") %> |
108 | + <%= inst.label :sisp ,_("No"), :value => false %> | |
109 | 109 | <% else %> |
110 | 110 | <%= inst.label("sisp", _("No")) %> |
111 | 111 | <% end %> | ... | ... |