Sha256: 96a5f71cee835e49ba8ea4efa528bc50821b23fc47dcca84f33a172ab31ccc97
Contents?: true
Size: 1.06 KB
Versions: 18
Compression:
Stored size: 1.06 KB
Contents
= styles_for :fields .title %span#create_field_title= t(:admin_tab_fields) .info= t(:admin_fields_info) .info2= t(:admin_fields_info2) .inline_tabs %ul - list_of_entities.each do |entity| - asset = entity.downcase %li{ "data-tab-class" => asset, :class => ("selected" if entity == 'Contact') } = link_to t(entity), "#" - list_of_entities.each do |entity| - asset = entity.downcase - klass = asset.classify.constantize .fields{ :id => "#{asset}_section", :style => ("display: none;" if asset != 'contact') } - create_form_id = "#{asset}_create_field_group" .title_tools = link_to_inline(create_form_id, new_admin_field_group_path(:klass_name => klass.name), :text => t(:create_field_group)) .title = t(asset) .list{ :id => "#{asset}_field_groups", 'data-sortable' => sort_admin_field_groups_path(:asset => asset) } = render :partial => "admin/field_groups/field_group", :collection => klass.field_groups, :locals => {:asset => asset, :klass => klass} .remote{ hidden.merge(:id => create_form_id) }
Version data entries
18 entries across 18 versions & 2 rubygems