From c5fe417b3f5ee77837200809711deef903117715 Mon Sep 17 00:00:00 2001 From: Larissa Reis Date: Sun, 19 Jan 2014 03:18:43 -0300 Subject: [PATCH] Puts label and checkbox horizontally aligned --- plugins/custom_forms/views/custom_forms_plugin_myprofile/_form.html.erb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/custom_forms/views/custom_forms_plugin_myprofile/_form.html.erb b/plugins/custom_forms/views/custom_forms_plugin_myprofile/_form.html.erb index 5609d67..9b8a348 100644 --- a/plugins/custom_forms/views/custom_forms_plugin_myprofile/_form.html.erb +++ b/plugins/custom_forms/views/custom_forms_plugin_myprofile/_form.html.erb @@ -11,8 +11,11 @@ )) %> <%= labelled_form_field _('Access'), f.select(:access, access_options(profile))%> <% if profile.organization? %> - <%= labelled_form_field _('Triggered on membership request as requirement for approval'), f.check_box(:for_admission) %> - <%= labelled_form_field _('Triggered after membership'), f.check_box(:on_membership) %> +

+ <%= labelled_check_box _('Triggered on membership request as requirement for approval'), 'form[for_admission]', '1', @form.for_admission %> +
+ <%= labelled_check_box _('Triggered after membership'), 'form[on_membership]', '1', @form.on_membership %> +

<% end %> <%= labelled_form_field _('Description'), f.text_area(:description, :style => 'width: 100%') %> -- libgit2 0.21.2