cirandas.net

ref: master

app/views/features/_manage_enterprise_fields.html.erb


<%= labelled_form_for(:environment, :url => {:action => 'manage_enterprise_fields'}) do |f| %>



  <% @enterprise_fields.each do |field| %>
  
  <% end %>
<%= _('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]')" %>
<%= button_bar do %> <%= submit_button('save', _('Save changes'), :id=>"save_enterprise_fields") %> <%= button :back, _('Back to admin panel'), :controller => 'admin_panel', :action => 'index' %> <% end %>
<% end %> <%= render :partial => "manage_custom_fields", :locals => {:customized_type => Enterprise} %>