Sha256: c47690ff074a84821396820ac450fc49299e8c25ef95e11e65271f268b241ada
Contents?: true
Size: 1.38 KB
Versions: 11
Compression:
Stored size: 1.38 KB
Contents
.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]", page_part._delete, :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}][content]", page_part.content, :class => "textarea", :style => "width: 100%", :id => "part_#{page_part.name.to_slug}_content"
Version data entries
11 entries across 11 versions & 2 rubygems