Sha256: 3d2ff5ca79b9eb8fb44a746055679131dbbf7752211bf150d7a3c6e119850e70
Contents?: true
Size: 1.07 KB
Versions: 5
Compression:
Stored size: 1.07 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: "redditor__add redditor__add_txt" = link_to t('redditor.add.video_block'), redditor.new_admin_page_video_block_path(f.object.page), remote: true, class: "redditor__add redditor__add_video" = link_to t('redditor.add.image_block'), redditor.new_admin_page_image_block_path(f.object.page), remote: true, class: "redditor__add redditor__add_photo" = link_to t('redditor.add.slider_block'), redditor.admin_page_slider_blocks_path(f.object.page), remote: true, method: 'POST', class: "redditor__add redditor__add_slider"
Version data entries
5 entries across 5 versions & 1 rubygems