Sha256: 5a2d14eecf94f8f60a760df3c426e8101b223b488a8542d287eeb4f4a52bba64

Contents?: true

Size: 1.66 KB

Versions: 60

Compression:

Stored size: 1.66 KB

Contents

.page{:id => "page_#{page_part.name.to_slug}", 'data-caption'=>h(page_part.name)}
  .part{:id => "part-#{page_part.name.to_slug}"}
    = hidden_field_tag "page[parts_attributes][#{page_part_counter}][name]", page_part.name, :id => "part_#{page_part.name.to_slug}_name"
    = hidden_field_tag "page[parts_attributes][#{page_part_counter}][id]", page_part.id, :id => "part_#{page_part_counter}_id", :class => "id_input" unless page_part.new_record?
    = hidden_field_tag "page[parts_attributes][#{page_part_counter}][_destroy]", page_part._destroy, :class => "delete_input"
    %p
      %label{:for => "part_#{page_part.name.to_slug}_filter_id"} 
        = t('filter') 
      = select_tag "page[parts_attributes][#{page_part_counter}][filter_id]", filter_options_for_select(page_part.filter_id), :id => "part_#{page_part.name.to_slug}_filter_id"
      / bring this back when the new toolbar ui arrives
      / %span.toolbar
      /   = link_to t('clipped_extension.assets'), '#attach_asset', :class => 'popup', :style => 'color: #666'
      %span.reference_links
        = t('reference')
        %span{:id => "filter_reference_link_#{page_part.name.to_slug}"}
          = link_to_function t('filter'), "loadFilterReference('#{page_part.name.to_slug}');"
        %span{:id => "tag_reference_link_#{page_part.name.to_slug}"}
          = link_to_function t('available_tags'), "loadTagReference('#{page_part.name.to_slug}');"
      = render_region :part_controls, :locals => {:page_part => page_part}
    %div
      ~ text_area_tag "page[parts_attributes][#{page_part_counter}][content]", page_part.content, :class => "textarea large", :style => "width: 100%", :id => "part_#{page_part.name.to_slug}_content"

Version data entries

60 entries across 60 versions & 4 rubygems

Version Path
trusty-clipped-extension-3.1.4 app/views/admin/page_parts/_page_part.html.haml
trusty-clipped-extension-3.1.3 app/views/admin/page_parts/_page_part.html.haml
trusty-clipped-extension-3.1.2 app/views/admin/page_parts/_page_part.html.haml
trusty-clipped-extension-3.1.1 app/views/admin/page_parts/_page_part.html.haml
trusty-clipped-extension-3.1.0 app/views/admin/page_parts/_page_part.html.haml
trusty-clipped-extension-3.0.0 app/views/admin/page_parts/_page_part.html.haml
trusty-clipped-extension-2.0.15 app/views/admin/page_parts/_page_part.html.haml
trusty-clipped-extension-2.0.14 app/views/admin/page_parts/_page_part.html.haml
trusty-clipped-extension-2.0.13 app/views/admin/page_parts/_page_part.html.haml
trusty-clipped-extension-2.0.12 app/views/admin/page_parts/_page_part.html.haml
trusty-clipped-extension-2.0.11 app/views/admin/page_parts/_page_part.html.haml
trusty-clipped-extension-2.0.10 app/views/admin/page_parts/_page_part.html.haml
trusty-clipped-extension-2.0.9 app/views/admin/page_parts/_page_part.html.haml
trusty-clipped-extension-2.0.8 app/views/admin/page_parts/_page_part.html.haml
trusty-clipped-extension-2.0.7 app/views/admin/page_parts/_page_part.html.haml
trusty-clipped-extension-2.0.6 app/views/admin/page_parts/_page_part.html.haml
trusty-clipped-extension-2.0.5 app/views/admin/page_parts/_page_part.html.haml
trusty-clipped-extension-2.0.4 app/views/admin/page_parts/_page_part.html.haml
trusty-clipped-extension-2.0.3.pre.beta app/views/admin/page_parts/_page_part.html.haml
trusty-clipped-extension-2.0.2.pre.beta app/views/admin/page_parts/_page_part.html.haml