Sha256: 4dac2885ee718766dd834124b47f7027200586e8880fa73e794dcef15933b633
Contents?: true
Size: 900 Bytes
Versions: 1
Compression:
Stored size: 900 Bytes
Contents
<%= decidim_form_for(@photo_form, url: decidim_admin_reporting_proposals.add_photos_path(id: proposal.id), method: :post, html: { multipart: true, class: "form edit_proposal proposal_form_admin" }) do |f| %> <div class="row column gallery__container"> <fieldset> <% if proposal.photos.any? %> <div class="gallery row"> <% proposal.photos.each do |photo| %> <div class="gallery__item"> <%= f.hidden_field :photos, multiple: true, value: photo.id, id: "photo-#{photo.id}" %> </div> <% end %> </div> <% end %> <div class="row column"> <%= f.file_field :add_photos, multiple: true %> </div> <div class="actions"> <%= f.submit t(".action"), class: "button button__sm button__secondary" %> </div> </fieldset> </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/admin/proposals/_photo_form.html.erb |