Sha256: 4c6c85865aa822238fb063ff276cadaaf7d1a6df4e0936cd5c386aa3ad947b11

Contents?: true

Size: 1001 Bytes

Versions: 6

Compression:

Stored size: 1001 Bytes

Contents

- content_for :head do
  = javascript_include_tag 'admin/plugins/fancybox', 'admin/custom_fields'
  = stylesheet_link_tag 'admin/plugins/fancybox', 'admin/fancybox_changes'

= f.inputs :name => :information do
  = f.input :name
  = f.input :slug
  = f.input :description

= render 'admin/custom_fields/index', :form => f, :collection_name => 'contents'

- unless f.object.new_record?
  = f.foldable_inputs :name => :presentation, :class => 'switchable' do
    = f.input :highlighted_field_name, :as => :select, :collection => options_for_highlighted_field(f.object, 'contents'), :include_blank => false
    = f.input :group_by_field_name, :as => :select, :collection => options_for_group_by_field(f.object, 'contents')

  = f.foldable_inputs :name => :options, :class => 'switchable' do
    = f.input :order_by, :as => :select, :collection => options_for_order_by(f.object, 'contents'), :include_blank => false
    = f.custom_input :api_enabled, :css => 'toggle' do
      = f.check_box :api_enabled


Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
locomotive_cms-0.0.4.beta5 app/views/admin/content_types/_form.html.haml
locomotive_cms-0.0.4.beta4 app/views/admin/content_types/_form.html.haml
locomotive_cms-0.0.4.beta3 app/views/admin/content_types/_form.html.haml
locomotive_cms-0.0.4.beta2 app/views/admin/content_types/_form.html.haml
locomotive_cms-0.0.4.beta1 app/views/admin/content_types/_form.html.haml
locomotive_cms-0.0.4 app/views/admin/content_types/_form.html.haml