Sha256: 720c8c0efac7a8d794800d74ce2ad220c02b8014d593b871754dc31ee617d957

Contents?: true

Size: 1.49 KB

Versions: 24

Compression:

Stored size: 1.49 KB

Contents

<div class="reveal flag-modal" id="<%= modal_id %>" data-reveal role="dialog" aria-modal="true" aria-labelledby="<%= modal_id %>-label">
  <div class="reveal__header">
    <h3 id="<%= modal_id %>-label" class="reveal__title"><%= t("decidim.shared.flag_modal.title") %></h3>
    <button class="close-button" data-close aria-label="<%= t("decidim.shared.flag_modal.close") %>" type="button">
      <span aria-hidden="true">&times;</span>
    </button>
  </div>
  <% if model.reported_by? current_user %>
    <p><%= t("decidim.shared.flag_modal.already_reported") %></p>
  <% else %>
    <p><%= t("decidim.shared.flag_modal.description") %></p>
    <%= decidim_form_for report_form, url: decidim.report_path(sgid: model.to_sgid.to_s), method: :post, html: { id: nil } do |f| %>
      <fieldset>
        <legend><%= t("decidim.shared.flag_modal.reason") %></legend>
        <%= f.collection_radio_buttons :reason, [
          [:spam, t("decidim.shared.flag_modal.spam")],
          [:offensive, t("decidim.shared.flag_modal.offensive")],
          [:does_not_belong, t("decidim.shared.flag_modal.does_not_belong", organization_name: current_organization.name)]
        ], :first, :last do |builder| %>
          <label><%= builder.radio_button(id: nil) + builder.text %></label>
        <% end %>
      </fieldset>
      <%= f.text_area :details, rows: 4, id: "#{modal_id}_details", label_options: { for: "#{modal_id}_details" } %>
      <%= f.submit t("decidim.shared.flag_modal.report") %>
    <% end %>
  <% end %>
</div>

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
decidim-core-0.27.9 app/cells/decidim/flag_modal/show.erb
decidim-core-0.27.8 app/cells/decidim/flag_modal/show.erb
decidim-core-0.27.7 app/cells/decidim/flag_modal/show.erb
decidim-core-0.27.6 app/cells/decidim/flag_modal/show.erb
decidim-core-0.26.10 app/cells/decidim/flag_modal/show.erb
decidim-core-0.26.9 app/cells/decidim/flag_modal/show.erb
decidim-core-0.27.5 app/cells/decidim/flag_modal/show.erb
decidim-core-0.26.8 app/cells/decidim/flag_modal/show.erb
decidim-core-0.27.4 app/cells/decidim/flag_modal/show.erb
decidim-core-0.27.3 app/cells/decidim/flag_modal/show.erb
decidim-core-0.26.7 app/cells/decidim/flag_modal/show.erb
decidim-core-0.26.5 app/cells/decidim/flag_modal/show.erb
decidim-core-0.27.2 app/cells/decidim/flag_modal/show.erb
decidim-core-0.27.1 app/cells/decidim/flag_modal/show.erb
decidim-core-0.26.4 app/cells/decidim/flag_modal/show.erb
decidim-core-0.27.0 app/cells/decidim/flag_modal/show.erb
decidim-core-0.26.3 app/cells/decidim/flag_modal/show.erb
decidim-core-0.27.0.rc2 app/cells/decidim/flag_modal/show.erb
decidim-core-0.27.0.rc1 app/cells/decidim/flag_modal/show.erb
decidim-core-0.26.2 app/cells/decidim/flag_modal/show.erb