Sha256: 5bc4b7402aa8e58fdb198886f01d1d6365423a94ef3e93e4a93232853e962acf

Contents?: true

Size: 830 Bytes

Versions: 19

Compression:

Stored size: 830 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.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: true, label: t(".add_images") %>
    </div>
  </fieldset>
</div>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
decidim-admin-0.26.10 app/views/decidim/admin/shared/_gallery.html.erb
decidim-admin-0.26.9 app/views/decidim/admin/shared/_gallery.html.erb
decidim-admin-0.26.8 app/views/decidim/admin/shared/_gallery.html.erb
decidim-admin-0.26.7 app/views/decidim/admin/shared/_gallery.html.erb
decidim-admin-0.26.5 app/views/decidim/admin/shared/_gallery.html.erb
decidim-admin-0.26.4 app/views/decidim/admin/shared/_gallery.html.erb
decidim-admin-0.26.3 app/views/decidim/admin/shared/_gallery.html.erb
decidim-admin-0.26.2 app/views/decidim/admin/shared/_gallery.html.erb
decidim-admin-0.26.1 app/views/decidim/admin/shared/_gallery.html.erb
decidim-admin-0.26.0 app/views/decidim/admin/shared/_gallery.html.erb
decidim-admin-0.26.0.rc2 app/views/decidim/admin/shared/_gallery.html.erb
decidim-admin-0.26.0.rc1 app/views/decidim/admin/shared/_gallery.html.erb
decidim-admin-0.25.2 app/views/decidim/admin/shared/_gallery.html.erb
decidim-admin-0.25.1 app/views/decidim/admin/shared/_gallery.html.erb
decidim-admin-0.25.0 app/views/decidim/admin/shared/_gallery.html.erb
decidim-admin-0.25.0.rc4 app/views/decidim/admin/shared/_gallery.html.erb
decidim-admin-0.25.0.rc3 app/views/decidim/admin/shared/_gallery.html.erb
decidim-admin-0.25.0.rc2 app/views/decidim/admin/shared/_gallery.html.erb
decidim-admin-0.25.0.rc1 app/views/decidim/admin/shared/_gallery.html.erb