Sha256: 7c97ee4d9bde9865712ed3d4f85a96b745169ff1ff40423bb8b33408428cb58f

Contents?: true

Size: 1.18 KB

Versions: 1

Compression:

Stored size: 1.18 KB

Contents

.modal.modal-large
  %section
    .gallery-select.gallery-select-multiple.gallery{data: {multiselect: true}}
      .item.item-small.item-uploader
        = form_for [spina, :admin, @photo], html: {multipart: true} do |f|
          = f.label :file, t('spina.photos.upload_image')
          = f.file_field :file, data: {customfileinput: true}

      = form_tag spina.insert_photo_collection_admin_photos_path(params[:page_part_id]), remote: true, class: 'gallery-prepend-image' do
        .infinite-scroll
          = render partial: 'spina/admin/photos/photo_multi_picker', collection: @photos

        .infinite-pagination= link_to_next_page @photos, 'Next', params: params.slice(:selected_photo_ids), remote: true

        .gallery-select-action-bar
          .pull-right
            = link_to t('spina.cancel'), "#", class: 'button button-link', data: {dismiss: 'modal'}
            = button_tag type: 'submit', class: 'button button-primary button-large', style: 'margin-bottom: 0px' do
              = icon('plus')
              = t('spina.photos.choose_images')
              %span.gallery-select-counter
                - if @selected_photo_ids.any?
                  (#{ @selected_photo_ids.count })

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spina-0.10.0 app/views/spina/admin/photos/_photo_collection_select.html.haml