Commit c5fe417b3f5ee77837200809711deef903117715
1 parent
0c76f5c5
Exists in
master
and in
29 other branches
Puts label and checkbox horizontally aligned
Showing
1 changed file
with
5 additions
and
2 deletions
Show diff stats
plugins/custom_forms/views/custom_forms_plugin_myprofile/_form.html.erb
@@ -11,8 +11,11 @@ | @@ -11,8 +11,11 @@ | ||
11 | )) %> | 11 | )) %> |
12 | <%= labelled_form_field _('Access'), f.select(:access, access_options(profile))%> | 12 | <%= labelled_form_field _('Access'), f.select(:access, access_options(profile))%> |
13 | <% if profile.organization? %> | 13 | <% if profile.organization? %> |
14 | - <%= labelled_form_field _('Triggered on membership request as requirement for approval'), f.check_box(:for_admission) %> | ||
15 | - <%= labelled_form_field _('Triggered after membership'), f.check_box(:on_membership) %> | 14 | + <p> |
15 | + <%= labelled_check_box _('Triggered on membership request as requirement for approval'), 'form[for_admission]', '1', @form.for_admission %> | ||
16 | + <br/> | ||
17 | + <%= labelled_check_box _('Triggered after membership'), 'form[on_membership]', '1', @form.on_membership %> | ||
18 | + </p> | ||
16 | <% end %> | 19 | <% end %> |
17 | <%= labelled_form_field _('Description'), f.text_area(:description, :style => 'width: 100%') %> | 20 | <%= labelled_form_field _('Description'), f.text_area(:description, :style => 'width: 100%') %> |
18 | 21 |