Sha256: 3ff88916e1492834150eadcb4f859e49612986a37bfe96a9ed4158800f9c74d0

Contents?: true

Size: 915 Bytes

Versions: 3

Compression:

Stored size: 915 Bytes

Contents

.labels
  %h2.title Labels
  .collapsible
    %h2.title New Label
    =form_for [@catalog, @facet, Label.new] do |f|
      =render :partial => "labels/form", :object => f
      =submit_tag "Create"

  %ol.collection{:class => @facet.label_order == 'position' ? "sortable" : nil,
    :id => "labels",
    :data => {:update_url => sort_catalog_facet_labels_path(@catalog, @facet)}}
    -@facet.ordered_labels.each do |label|
      %li{:id => "label_#{label.id}"}
        %span.content
          =best_in_place label, :caption, :path => catalog_facet_label_path(@catalog, @facet, label)
          =button_to "Delete", catalog_facet_label_path(@catalog, @facet, label),
            :confirm => 'Are you sure?',
            :method => "delete",
            :remote => true,
            :disable_with => 'loading...'
        - if @facet.label_order == 'position'
          %span.handle= image_tag "fassets_core/drag.png"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fassets_core-0.4.0 app/views/labels/_sidebar.html.haml
fassets_core-0.3.1 app/views/labels/_sidebar.html.haml
fassets_core-0.3.0 app/views/labels/_sidebar.html.haml