Sha256: 8a5e6bf2e0fa8fae2c57b1a5646154b5607657a1c598ec97a520662fda7848d1

Contents?: true

Size: 1.17 KB

Versions: 1

Compression:

Stored size: 1.17 KB

Contents

<% if component_settings.attachments_allowed? %>
  <div class="gallery__container photos_container">
    <% if @form.respond_to?(:photos) && @form.photos.any? %>
      <% @form.photos.each do |photo| %>
        <div class="callout gallery__item" id="attachment_<%= photo.id %>" 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", scope: "decidim.reporting_proposals.proposals.edit") %>"
                  title="<%= t("delete_image", scope: "decidim.reporting_proposals.proposals.edit") %>"
                  type="button"
                  data-close>
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
      <% end %>
    <% end %>
    <div class="field">
      <%= form.file_field :add_photos, multiple: false, label: t("image", scope: "decidim.reporting_proposals.proposals.form") %>

      <div class="has_no_image">
        <%= form.check_box :has_no_image %>
      </div>
    </div>
  </div>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
decidim-reporting_proposals-0.6.0 app/views/decidim/reporting_proposals/proposals/_camera_button.html.erb