cirandas.net

ref: master

app/views/features/_manage_community_fields.html.erb


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



  <% @community_fields.each do |field| %>
  
  <% end %>
<%= _('Field') %> <%= _('Active') %> <%= _('Required') %> <%= _('Display on creation?') %>
<%= _("Check/Uncheck All")%>
<%= hidden_field_tag "community_fields[#{field}][active]", false %> <%= check_box_tag "community_fields[#{field}][active]", true, environment.custom_community_field(field, 'active'), :onclick => "active_action(this, 'community_fields[#{field}][required]', 'community_fields[#{field}][signup]')" %> <%= hidden_field_tag "community_fields[#{field}][required]", false %> <%= check_box_tag "community_fields[#{field}][required]", true, environment.custom_community_field(field, 'required'), :onclick => "required_action('community_fields[#{field}][active]','community_fields[#{field}][required]', 'community_fields[#{field}][signup]')" %> <%= hidden_field_tag "community_fields[#{field}][signup]", false %> <%= check_box_tag "community_fields[#{field}][signup]", true, environment.custom_community_field(field, 'signup'), :onclick => "signup_action('community_fields[#{field}][active]','community_fields[#{field}][required]', 'community_fields[#{field}][signup]')" %>
<%= button_bar do %> <%= submit_button('save', _('Save changes'), :id=>"save_community_fields") %> <%= button :back, _('Back to admin panel'), :controller => 'admin_panel', :action => 'index' %> <% end %>
<% end %> <%= render :partial => "manage_custom_fields", :locals => {:customized_type => Community} %>