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