Sha256: 2e318bd69a43208fdc05abd9b3c30702f4adcac71f55fe7cfe1c5db929f3ba62

Contents?: true

Size: 1.63 KB

Versions: 14

Compression:

Stored size: 1.63 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

14 entries across 14 versions & 1 rubygems

Version Path
locomotive_cms-1.0.0.beta.2 app/views/admin/custom_fields/edit_category.html.haml
locomotive_cms-1.0.0.beta app/views/admin/custom_fields/edit_category.html.haml
locomotive_cms-0.0.4.beta12 app/views/admin/custom_fields/edit_category.html.haml
locomotive_cms-0.0.4.beta11 app/views/admin/custom_fields/edit_category.html.haml
locomotive_cms-0.0.4.beta10 app/views/admin/custom_fields/edit_category.html.haml
locomotive_cms-0.0.4.beta9 app/views/admin/custom_fields/edit_category.html.haml
locomotive_cms-0.0.4.beta8 app/views/admin/custom_fields/edit_category.html.haml
locomotive_cms-0.0.4.beta7 app/views/admin/custom_fields/edit_category.html.haml
locomotive_cms-0.0.4.beta5 app/views/admin/custom_fields/edit_category.html.haml
locomotive_cms-0.0.4.beta4 app/views/admin/custom_fields/edit_category.html.haml
locomotive_cms-0.0.4.beta3 app/views/admin/custom_fields/edit_category.html.haml
locomotive_cms-0.0.4.beta2 app/views/admin/custom_fields/edit_category.html.haml
locomotive_cms-0.0.4.beta1 app/views/admin/custom_fields/edit_category.html.haml
locomotive_cms-0.0.4 app/views/admin/custom_fields/edit_category.html.haml