Skip to content

Commit

Permalink
change the order of the sections
Browse files Browse the repository at this point in the history
  • Loading branch information
antopalidi committed Apr 15, 2024
1 parent 1dae807 commit b6226f7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<!-- insert_after "erb[silent]:contains('if proposal.valuators.any?')" -->
<!-- insert_before "erb[silent]:contains('if proposal.photos.any?')" -->

<%= render partial: "decidim/reporting_proposals/admin/proposals/photos" %>
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
<% if proposal.photos.any? || component_settings.attachments_allowed? %>
<div class="row column gallery__container mt-4">
<h2 class="card-title"><%= t(".title") %></h2>
<% if admin_allowed_to? :edit_photos, :proposals, extra_context = { proposal: proposal }, chain = [::Decidim::ReportingProposals::Admin::Permissions] %>
<%= render partial: "decidim/reporting_proposals/admin/proposals/photo_form" %>
<% end %>
<div class="card-section">
<div class="component__show_photos" data-component="accordion" id="accordion-photos">
<button class="card-divider-button" data-controls="panel-photos" type="button">
<%= icon "arrow-right-s-line" %>
<h2 class="card-title">
<%= t(".title") %>
</h2>
</button>
<% if admin_allowed_to? :edit_photos, :proposals, extra_context = { proposal: proposal }, chain = [::Decidim::ReportingProposals::Admin::Permissions] %>
<div id="panel-photos">
<%= render partial: "decidim/reporting_proposals/admin/proposals/photo_form" %>
</div>
<% end %>
</div>
</div>
<% end %>

0 comments on commit b6226f7

Please sign in to comment.