Sha256: 226d3243f826b2b87beb9d7104af82f9f9d59cb6ff2b81bb6580499e57cf6288

Contents?: true

Size: 1.29 KB

Versions: 2

Compression:

Stored size: 1.29 KB

Contents

<!--the modal window will be used in another pr-->
<%= decidim_modal id: "LimitAmendmentsModal", data: { "limit-amendments": current_component.settings&.limit_pending_amendments } do %>
  <div data-dialog-container>
    <%= icon "notification-3-fill" %>
    <h3 data-dialog-title><%= t("decidim.decidim_awesome.amendments.modal.amendment_exists") %></h3>

    <div>
      <div class="instructions">
        <%= t("decidim.decidim_awesome.amendments.modal.explanation_html",
                                    proposal_link: present(@proposal).proposal_path + "#comments") %>

        <% emendations = @proposal.emendations.not_hidden.where(decidim_amendments: { state: Decidim::Amendment.states["evaluating"] }) %>
        <% if current_component.current_settings&.amendments_visibility == "all" && emendations %>
          <%= t("decidim.decidim_awesome.amendments.modal.current_amendment_html",
                                        amendment_link: present(emendations&.first).proposal_path) %>
        <% end %>
      </div>
    </div>
  </div>
  <div data-dialog-actions>
    <button type="button" class="button button__sm md:button__lg button__transparent-secondary cancel-action" data-dialog-close="LimitAmendmentsModal"><%= t("decidim.decidim_awesome.amendments.modal.dismiss") %></button>
  </div>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
decidim-decidim_awesome-0.11.2 app/views/decidim/decidim_awesome/amendments/_modal.html.erb
decidim-decidim_awesome-0.11.1 app/views/decidim/decidim_awesome/amendments/_modal.html.erb