Sha256: 5968dd4faef2e4e8a738f1b54645f4cc3fab12382ded6b6caa8abca7fe94602b

Contents?: true

Size: 1.01 KB

Versions: 6

Compression:

Stored size: 1.01 KB

Contents

= f.fields_for :page, f.object.page do |p|

  - unless f.object.new_record?
    %dl.redditor{data: {"sort-url" => url_for(redditor.sort_admin_page_path(p.object))}}
      - p.object.content_blocks.each do |content_block|
        = render partial: "redditor/admin/pages/content_block", locals: {p: p, page: p.object, content_block: content_block}, :layout => "redditor/admin/pages/wrap_dd"

    %div.redditor-add-blocks
      %p
        = link_to t('redditor.add.text_block'), redditor.new_admin_page_text_block_path(f.object.page), remote: true, class: "new-block add-txt"
        = link_to t('redditor.add.video_block'), redditor.new_admin_page_video_block_path(f.object.page), remote: true, class: "new-block add-video"
        = link_to t('redditor.add.image_block'), redditor.new_admin_page_image_block_path(f.object.page), remote: true, class: "new-block add-photo"
        = link_to t('redditor.add.slider_block'), redditor.admin_page_slider_blocks_path(f.object.page), remote: true, method: 'POST', class: "new-block add-slider"

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
redditor-0.1.5 app/views/redditor/admin/pages/_page.haml
redditor-0.1.4 app/views/redditor/admin/pages/_page.haml
redditor-0.1.3 app/views/redditor/admin/pages/_page.haml
redditor-0.1.2 app/views/redditor/admin/pages/_page.haml
redditor-0.1.1 app/views/redditor/admin/pages/_page.haml
redditor-0.1.0 app/views/redditor/admin/pages/_page.haml