Sha256: 186408763e19f67b939a45937edeba1e97d2b878fab6b391dcc4b8d175a8742d

Contents?: true

Size: 1.66 KB

Versions: 6

Compression:

Stored size: 1.66 KB

Contents

#edit-custom-field-category
  .inner
    %h2= t('.title')

    %p= t('.help')

    = semantic_form_for @field, :as => :custom_field, :url => admin_custom_field_url(@parent.model_name.underscore, @parent.slug, @field) do |f|
      = f.foldable_inputs :name => t('.collection_label'), :class => 'editable-list off' do
        - @field.ordered_category_items.each do |item|
          = f.fields_for :category_items, item, :child_index => item._index do |g|  
            %li{ :class => "item added #{'error' unless item.errors.empty?}"}
              %span.handle
                = image_tag 'admin/form/icons/drag.png'
  
              = g.hidden_field :position, :class => 'position'
  
              = g.text_field :name
  
               
  
              %span.actions
                = link_to image_tag('admin/form/icons/trash.png'), '#', :class => 'remove', :confirm => t('admin.messages.confirm')
  
        = f.fields_for :category_items, @field.category_items.build, :child_index => '-1' do |g|   
          %li{ :class => 'item template' }
            %span.handle
              = image_tag 'admin/form/icons/drag.png'
  
            = g.hidden_field :position, :class => 'position'
  
            = g.text_field :name, :class => 'string name'
  
             
  
            %span.actions
              = link_to image_tag('admin/form/icons/trash.png'), '#', :class => 'remove', :confirm => t('admin.messages.confirm')
              %button{ :class => 'button light add', :type => 'button' }
                %span= t('admin.buttons.new_item')
              
  .popup-actions
    %p
      %button.button.light{ :type => 'button' }
        %span= t('admin.shared.form_actions.update')

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
locomotive_cms-0.0.3.3 app/views/admin/custom_fields/edit_category.html.haml
locomotive_cms-0.0.3.1 app/views/admin/custom_fields/edit_category.html.haml
locomotive_cms-0.0.2.9 app/views/admin/custom_fields/edit_category.html.haml
locomotive_cms-0.0.2.8 app/views/admin/custom_fields/edit_category.html.haml
locomotive_cms-0.0.2.7 app/views/admin/custom_fields/edit_category.html.haml
locomotive_cms-0.0.2.6 app/views/admin/custom_fields/edit_category.html.haml