Sha256: aabf07c2aa4c8ca6439dec55fcf39a20b1ab38354a6a899c9ca020f6e6902ca0
Contents?: true
Size: 884 Bytes
Versions: 2
Compression:
Stored size: 884 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:190px;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:200px;overflow:hidden;'} = image_tag image.file %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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pages_cms-2.1.1 | app/views/pages_cms/admin/images/index.html.haml |
pages_cms-2.1.0 | app/views/pages_cms/admin/images/index.html.haml |