Sha256: 12e424b24bec00a075f5a5b610ca70b0edb5206c653907ad2d6cfc44418e21d9

Contents?: true

Size: 924 Bytes

Versions: 8

Compression:

Stored size: 924 Bytes

Contents

- content_for :head do
  = include_javascripts :custom_fields
  = include_stylesheets :fancybox

= 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

8 entries across 8 versions & 1 rubygems

Version Path
locomotive_cms-1.0.0.beta.2 app/views/admin/content_types/_form.html.haml
locomotive_cms-1.0.0.beta app/views/admin/content_types/_form.html.haml
locomotive_cms-0.0.4.beta12 app/views/admin/content_types/_form.html.haml
locomotive_cms-0.0.4.beta11 app/views/admin/content_types/_form.html.haml
locomotive_cms-0.0.4.beta10 app/views/admin/content_types/_form.html.haml
locomotive_cms-0.0.4.beta9 app/views/admin/content_types/_form.html.haml
locomotive_cms-0.0.4.beta8 app/views/admin/content_types/_form.html.haml
locomotive_cms-0.0.4.beta7 app/views/admin/content_types/_form.html.haml