<%= __('Manage enterprise fields') %>

<% labelled_form_for(:environment, @environment, :url => {:action => 'manage_enterprise_fields'}) do |f| %> <% @enterprise_fields.each do |field| %> <% end %>
<%= _('Field') %> <%= _('Active') %> <%= _('Required') %>
<%= check_box_tag "enterprise_fields[#{field}][active]", true, environment.custom_enterprise_field(field, 'active'), :onclick => "$('enterprise_fields[#{field}][required]').disabled=!this.checked" %> <%= hidden_field_tag "enterprise_fields[#{field}][active]", false %> <%= check_box_tag "enterprise_fields[#{field}][required]", true, environment.custom_enterprise_field(field, 'required') %> <%= hidden_field_tag "enterprise_fields[#{field}][required]", false %>
<% button_bar do %> <%= submit_button('save', _('Save changes')) %> <%= button :back, _('Back to admin panel'), :controller => 'admin_panel', :action => 'index' %> <% end %>
<% end %>