Sha256: 8ae4182e391364116433d06b145686bf9ff2a88000f71acc84d19654ccac8648
Contents?: true
Size: 888 Bytes
Versions: 3
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: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.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
3 entries across 3 versions & 1 rubygems