public
Description: RadiantCMS extensions for concurrent drafts
Homepage:
Clone URL: git://github.com/avonderluft/radiant-concurrent_draft-extension.git
mikehale (author)
Mon Jun 29 19:06:53 -0700 2009
seancribbs (committer)
Mon Jun 29 19:16:04 -0700 2009
commit  481ad985bac9f93fd2d8a29f720c6679aee863cf
tree    00b42bf09172b4ffe304412eead67aca45cf9f55
parent  e118da516847c02caad0427f6a7946430d831c97
100644 19 lines (19 sloc) 1.548 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.page{:id => "page-#{page_part.name.to_slug}"}
  .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"
    = hidden_field_tag "page[parts_attributes][#{page_part_counter}][_delete]", false, :class => "delete_input"
    %p
      %label{:for => "part_#{page_part.name.to_slug}_filter_id"} 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
        Reference:
        %span{:id => "filter-reference-link-#{page_part.name.to_slug}"}
          = link_to_function "Filter", "load_filter_reference('#{page_part.name.to_slug}');"
        %span{:id => "tag-reference-link-#{page_part.name.to_slug}"}
          = link_to_function 'Available Tags', "load_tag_reference('#{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]", h(page_part.draft_content), :class => "textarea", :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