Sha256: 2b9be857a9a055caba5bd0155acff9113cb9db717a34e4b446e6a1946dcb98a9
Contents?: true
Size: 854 Bytes
Versions: 39
Compression:
Stored size: 854 Bytes
Contents
<%= simple_form_for @asset, url: upload_backend_content_picture_path(@model) do |f| %> <div class="row mb-5"> <div class="col-12"> <h4><%= t 'b.upload_a_new_image' %></h4> <%= f.input :filename, as: :file, label: false, required: false %> <%= f.input :description, as: :text, required: false %> <%= render 'backend/form_actions', cancel_url: '#lity-close' %> </div> </div> <% end %> <h4><%= t 'b.choose_an_existing_image' %></h4> <%= render 'filter' %> <div class="row"> <% @assets.each do |a| %> <div class="col-sm-6 col-md-4 col-lg-3 col-xl-2"> <%= link_to link_backend_content_picture_path(@model, asset_id: a.id), style: '' do %> <%= image_tag a.image.url(550, 550, action: :resize_and_pad, background: :white), alt: '', class: 'img-fluid' %> <% end %> </div> <% end %> </div>
Version data entries
39 entries across 39 versions & 1 rubygems