Sha256: 030c7af3e456f2b631e7fe9da8224e5de2a7ce4fe970f8d6499c0c16e9e0ef37

Contents?: true

Size: 1.67 KB

Versions: 12

Compression:

Stored size: 1.67 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"
      %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}][draft_content]", page_part.draft_content, :class => "textarea large", :style => "width: 100%", :id => "part_#{page_part.name.to_slug}_draft_content"
      = preserve do 
        = hidden_field_tag "page[parts_attributes][#{page_part_counter}][content]", page_part.content, :id => "part_#{page_part.name.to_slug}_content"

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
radiant-concurrent_draft-extension-1.0.11 app/views/admin/page_parts/_page_part.html.haml
radiant-concurrent_draft-extension-1.0.10 app/views/admin/page_parts/_page_part.html.haml
radiant-concurrent_draft-extension-1.0.9 app/views/admin/page_parts/_page_part.html.haml
radiant-concurrent_draft-extension-1.0.8 app/views/admin/page_parts/_page_part.html.haml
radiant-concurrent_draft-extension-1.0.7 app/views/admin/page_parts/_page_part.html.haml
radiant-concurrent_draft-extension-1.0.6 app/views/admin/page_parts/_page_part.html.haml
radiant-concurrent_draft-extension-1.0.5 app/views/admin/page_parts/_page_part.html.haml
radiant-concurrent_draft-extension-1.0.4 app/views/admin/page_parts/_page_part.html.haml
radiant-concurrent_draft-extension-1.0.3 app/views/admin/page_parts/_page_part.html.haml
radiant-concurrent_draft-extension-1.0.2 app/views/admin/page_parts/_page_part.html.haml
radiant-concurrent_draft-extension-1.0.1 app/views/admin/page_parts/_page_part.html.haml
radiant-concurrent_draft-extension-1.0.0 app/views/admin/page_parts/_page_part.html.haml