Sha256: ce28f28d070328340b792bd5162ce4b316ef96805d69439e4cba254ddbaa8758

Contents?: true

Size: 1.21 KB

Versions: 21

Compression:

Stored size: 1.21 KB

Contents

= page_sidebar raw("Фотографии ").concat(if editable ||= false then link_to("ред.", [:admin, parent]) end) do
  %ul.photos.js-photos{ "data-sortable" => { items: :li, handle: nil, axis: nil, url: url_for([:sort, :admin, :redde_photos])}.to_json, form: 'new_article' }
    = render partial: 'admin/redde_photos/photo', collection: parent.photos

  -#
    #preview
    #drag-n-drop{:style => "display: none; margin-top: 5px;"}
      #drop-zone.b-dropzone{style: 'height: 100px;', data: {"upload-url" => url_for([:admin, Redde::Photo])}}
        .b-dropzone__bg
        .b-dropzone__txt Перетащите файлы сюда

    #buttons-panel{style: 'margin-bottom: 10px;'}
      .b-button.js-fileapi-wrapper
        .b-button__text Загрузить файлы
        %input.b-button__input.js-fileapi{:name => "files", :type => "file",  :multiple => true, data: {"upload-url" => url_for([:admin, Redde::Photo])}}

  = form_for [:admin, parent.photos.build], html: { class: 'photos-uploader js-photos-uploader' } do |f|
    = f.hidden_field :imageable_type
    = f.hidden_field :imageable_id
    %span.sbm.photos-uploader__btn.icon-upload
      Загрузить
      = f.file_field :src, class: 'photos-uploader__inp'

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
redde-0.4.4 app/views/admin/redde_photos/_photos.haml
redde-0.4.3 app/views/admin/redde_photos/_photos.haml
redde-0.4.2 app/views/admin/redde_photos/_photos.haml
redde-0.4.1 app/views/admin/redde_photos/_photos.haml
redde-0.4.0 app/views/admin/redde_photos/_photos.haml
redde-0.3.39 app/views/admin/redde_photos/_photos.haml
redde-0.3.38 app/views/admin/redde_photos/_photos.haml
redde-0.3.37 app/views/admin/redde_photos/_photos.haml
redde-0.3.36 app/views/admin/redde_photos/_photos.haml
redde-0.3.35 app/views/admin/redde_photos/_photos.haml
redde-0.3.34 app/views/admin/redde_photos/_photos.haml
redde-0.3.33 app/views/admin/redde_photos/_photos.haml
redde-0.3.32 app/views/admin/redde_photos/_photos.haml
redde-0.3.31 app/views/admin/redde_photos/_photos.haml
redde-0.3.30 app/views/admin/redde_photos/_photos.haml
redde-0.3.29 app/views/admin/redde_photos/_photos.haml
redde-0.3.28 app/views/admin/redde_photos/_photos.haml
redde-0.3.27 app/views/admin/redde_photos/_photos.haml
redde-0.3.26 app/views/admin/redde_photos/_photos.haml
redde-0.3.25 app/views/admin/redde_photos/_photos.haml