Sha256: da9a93d987d3bd5f94d28555f1b0f4f59f79aa516fd55900a03ffd5ee7471131

Contents?: true

Size: 896 Bytes

Versions: 7

Compression:

Stored size: 896 Bytes

Contents

.redditor__title.redditor__title_slider
  = t 'redditor.title.slider'
= redditor_validate f

= f.hidden_field :kind

- if redditor_slider_block_kind(f, @content_block)
  %table.redditor__sl-desc
    = f.fields_for :images do |img|
      = render "redditor/admin/slider_block_desc", {img: img}
- else
  .redditor__sep
  %ul.slider-block-images{data: {"sortable-url" => redditor.sort_admin_page_slider_block_images_path(f.object.page_id, f.object.id)}}
    = render partial: "redditor/admin/slider_block_image", collection: f.object.images, :as => :i

  .redditor__sep

  - unless f.object.new_record?
    .b-button.js-fileapi-wrapper
      .b-button__text= t("redditor.add.upload_images")
      = file_field_tag :src, :class => "b-button__input redditor__js-fileapi", name: nil, :multiple => true, data: {"upload-url" => redditor.admin_page_slider_block_images_path(f.object.page_id, f.object.id)}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
redditor-0.1.22 app/views/redditor/admin/_slider_block.haml
redditor-0.1.20 app/views/redditor/admin/_slider_block.haml
redditor-0.1.17 app/views/redditor/admin/_slider_block.haml
redditor-0.1.16 app/views/redditor/admin/_slider_block.haml
redditor-0.1.15 app/views/redditor/admin/_slider_block.haml
redditor-0.1.14 app/views/redditor/admin/_slider_block.haml
redditor-0.1.12 app/views/redditor/admin/_slider_block.haml