diff --git a/views/institution_editor_extras.html.erb b/views/institution_editor_extras.html.erb index 70d7e5c..09b164b 100644 --- a/views/institution_editor_extras.html.erb +++ b/views/institution_editor_extras.html.erb @@ -36,12 +36,15 @@ - <% if @show_sisp_field %>
+ <% if @show_sisp_field %> <%= _("SISP?") %> <%= labelled_radio_button(_('Yes'), 'institution[sisp]', 'true', context.profile.institution.sisp)%> <%= labelled_radio_button(_('No'), 'institution[sisp]', 'false', !context.profile.institution.sisp)%> + <% else %> + <%= _("SISP?") %> + <%= label_tag('SISP', context.profile.institution.sisp ? "YES" : "NO") %>
<% end %> diff --git a/views/mpog_software_plugin/create_institution.html.erb b/views/mpog_software_plugin/create_institution.html.erb index 1cfd64b..020177f 100644 --- a/views/mpog_software_plugin/create_institution.html.erb +++ b/views/mpog_software_plugin/create_institution.html.erb @@ -75,8 +75,23 @@ <%= inst.select(:juridical_nature, [[_("Select a Juridical Nature"), 0]]|JuridicalNature.all.map {|j| [j.name, j.id]}, {:selected=>0})%> -
+ + +
+ <%= _("SISP?") %> + <% if @show_sisp_field %> + <%= inst.label("sisp" ,_("Yes")) %> + <%= inst.radio_button(:sisp, true) %> + <%= inst.label("sisp" ,_("No")) %> + <%= inst.radio_button(:sisp, false) %> + <% else %> + <%= inst.label("sisp", _("No")) %> + <% end %> +
+
+
+

<%= recaptcha_tags :ajax => true, :display => {:theme => 'clean'} %>

<%= link_to(_('Save'), '#', :id=>'save_institution_button', :class=>'button with-text icon-add') %> -- libgit2 0.21.2