Sha256: 65a04b1754ce09e87ba77beef981e2d81f549aee4b1a25602fb0973ce9a59e8c

Contents?: true

Size: 836 Bytes

Versions: 4

Compression:

Stored size: 836 Bytes

Contents

<div class="row column gallery__container">
  <fieldset>
    <legend><%= t(".gallery_legend") %></legend>

    <% if @form.photos.any? %>
      <% @form.photos.each do |photo| %>
        <div class="callout gallery__item" data-closable>
          <%= image_tag photo.thumbnail_url, class: "thumbnail", alt: photo.file.file.filename %>
          <%= form.hidden_field :photos, multiple: true, value: photo.id, id: "photo-#{photo.id}" %>
          <button class="close-button" aria-label="<%= t(".delete_image") %>" title="<%= t(".delete_image") %>" type="button" data-close>
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
      <% end %>
    <% end %>

    <div class="row column">
      <%= form.file_field :add_photos, multiple: false, label: t(".add_images") %>
    </div>
  </fieldset>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-admin-0.23.1 app/views/decidim/admin/shared/_gallery.html.erb
decidim-admin-0.23.1.rc1 app/views/decidim/admin/shared/_gallery.html.erb
decidim-admin-0.23.0 app/views/decidim/admin/shared/_gallery.html.erb
decidim-admin-0.22.0 app/views/decidim/admin/shared/_gallery.html.erb