Sha256: c0b1bd6c1b169b9ac77c3f373cae7ed3d471382408ba8955289e4e061f8c44fa

Contents?: true

Size: 883 Bytes

Versions: 15

Compression:

Stored size: 883 Bytes

Contents

.modal.modal-large
  %header
    = link_to "", "#", class: 'close_modal', data: {dismiss: 'modal', icon: 'm'}
    %h3=t 'spina.photos.insert_photo'

  %section
    .gallery-select.gallery
      .item
        = form_for [spina, :admin, @photo], html: {multipart: true} do |f|
          = f.file_field :file, data: {customfileinput: true}

      = form_tag spina.insert_photo_admin_photos_path(params[:page_part_id]), remote: true, class: 'gallery-prepend-image' do
        - @photos.each do |photo|
          .item{class: ('selected' if photo == @selected_photo)}
            .overlay= radio_button_tag :photo_id, photo.id, photo == @selected_photo
            = image_tag photo.file.thumb

        %footer
          = link_to t('spina.cancel'), "#", data: {dismiss: 'modal'}
          = button_tag t('spina.photos.insert_photo'), type: 'submit', class: 'primary', data: {icon: 't '}

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
spina-0.6.27 app/views/spina/admin/photos/_photo_select.html.haml
spina-0.6.26 app/views/spina/admin/photos/_photo_select.html.haml
spina-0.6.25 app/views/spina/admin/photos/_photo_select.html.haml
spina-0.6.24 app/views/spina/admin/photos/_photo_select.html.haml
spina-0.6.23 app/views/spina/admin/photos/_photo_select.html.haml
spina-0.6.22 app/views/spina/admin/photos/_photo_select.html.haml
spina-0.6.21 app/views/spina/admin/photos/_photo_select.html.haml
spina-0.6.20 app/views/spina/admin/photos/_photo_select.html.haml
spina-0.6.19 app/views/spina/admin/photos/_photo_select.html.haml
spina-0.6.18 app/views/spina/admin/photos/_photo_select.html.haml
spina-0.6.17 app/views/spina/admin/photos/_photo_select.html.haml
spina-0.6.16 app/views/spina/admin/photos/_photo_select.html.haml
spina-0.6.15 app/views/spina/admin/photos/_photo_select.html.haml
spina-0.6.14 app/views/spina/admin/photos/_photo_select.html.haml
spina-0.6.13 app/views/spina/admin/photos/_photo_select.html.haml