ref: master
app/views/features/_manage_person_fields.html.erb
<%= labelled_form_for(:environment, :url => {:action => 'manage_person_fields'}) do |f| %>
<%= _('Field') %> | <%= _('Active') %> | <%= _('Required') %> | <%= _('Display on signup?') %> |
---|---|---|---|
<%= _("Check/Uncheck All")%> | |||
<%= hidden_field_tag "person_fields[#{field}][active]", false %> <%= check_box_tag "person_fields[#{field}][active]", true, environment.custom_person_field(field, 'active'), :onclick => "active_action(this, 'person_fields[#{field}][required]', 'person_fields[#{field}][signup]')" %> | <%= hidden_field_tag "person_fields[#{field}][required]", false %> <%= check_box_tag "person_fields[#{field}][required]", true, environment.custom_person_field(field, 'required'), :onclick => "required_action('person_fields[#{field}][active]','person_fields[#{field}][required]', 'person_fields[#{field}][signup]')" %> | <%= hidden_field_tag "person_fields[#{field}][signup]", false %> <%= check_box_tag "person_fields[#{field}][signup]", true, environment.custom_person_field(field, 'signup'), :onclick => "signup_action('person_fields[#{field}][active]','person_fields[#{field}][required]', 'person_fields[#{field}][signup]')" %> |