Sha256: 1470e1f4d7749d6769152ebdeb706898a5c0670753bdd5cb9128fcce35269f32

Contents?: true

Size: 888 Bytes

Versions: 4

Compression:

Stored size: 888 Bytes

Contents

<br />
= render 'pages_cms/admin/shared/tabs', active: 'Images'

%div.container-fluid.back
  %div.row.back
    %div.col-md-3.col-sm-4.col-xs-6
      %div.thumbnail
        = form_for @image, url: admin_images_path, method: :post, multipart: true do |f|
          %div{ style: 'height:175px;overflow:hidden;'}
            = f.file_field :file, class: 'form-control'
          %p
            = f.text_field :name, placeholder: 'give your image a title', class: 'form-control'
          = f.submit 'Upload', class: 'btn btn-primary btn-xs'
    - @images.each do |image|
      %div.col-md-3.col-sm-4.col-xs-6
        %div.thumbnail
          %div{ style: 'height:190px;overflow:hidden;'}
            = image_tag image.file.url
          %p
            = link_to image.name, image.file.url
          = link_to 'delete', admin_image_path(image), method: :delete, class: 'btn btn-xs btn-default'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pages_cms-2.4.2 app/views/pages_cms/admin/images/index.html.haml
pages_cms-2.3.2 app/views/pages_cms/admin/images/index.html.haml
pages_cms-2.3.1 app/views/pages_cms/admin/images/index.html.haml
pages_cms-2.3.0 app/views/pages_cms/admin/images/index.html.haml