Sha256: c4956c19d06e8240e17656ecc0a493a5fd1b056d401e990a19ffa1a9d627e6fa

Contents?: true

Size: 970 Bytes

Versions: 3

Compression:

Stored size: 970 Bytes

Contents

.page_part{:id => new_part ? "page_part_new_#{part_index}" : part.to_param}
  = hidden_field_tag "page[parts_attributes][#{part_index}][title]", part.title if new_part
  = text_area_tag "page[parts_attributes][#{part_index}][body]", part.body, :rows => 20, :class => "wysiwyg widest", :data => { :body_class => part.to_param }
  = hidden_field_tag "page[parts_attributes][#{part_index}][position]", part_index if new_part

  .rightbar
    %ul
      %li= link_to "Images", "#images_container"
      %li= link_to "Files", "#files_container"

    #files_container
      %p
        %b Drag and drop these files into the editor:
      %ul
        - Refinery::Resource.all.each do |resource|
          %li= link_to resource.title, resource.url

    #images_container
      %p
        %b Drag and drop these images into the editor:
      %ul
        - Refinery::Image.all.each do |image|
          %li
            .box_of_holding= image_tag image.url
            = image.title

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
refinerycms-ckeditor-0.1.2 app/views/refinery/admin/pages/_page_part_field.html.haml
refinerycms-ckeditor-0.1.1 app/views/refinery/admin/pages/_page_part_field.html.haml
refinerycms-ckeditor-0.1.0 app/views/refinery/admin/pages/_page_part_field.html.haml