cirandas.net

ref: master

app/views/features/_manage_person_fields.html.erb


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



  <% @person_fields.each do |field| %>
  
  <% end %>
<%= _('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]')" %>
<%= button_bar do %> <%= submit_button('save', _('Save changes'), :id=>"save_person_fields") %> <%= button :back, _('Back to admin panel'), :controller => 'admin_panel', :action => 'index' %> <% end %>

<% end %> <%= render :partial => "manage_custom_fields", :locals => {:customized_type => Person} %>