Sha256: b1c87402ea2b8ba6a98d95499209bc632febe6aeb718d3cce6914053db4906ef

Contents?: true

Size: 921 Bytes

Versions: 13

Compression:

Stored size: 921 Bytes

Contents

<div class="reveal flag-modal" id="flagModal" data-reveal>
  <div class="reveal__header">
    <h3 class="reveal__title"><%= t('.title') %></h3>
    <button class="close-button" data-close aria-label="<%= t('.close') %>" type="button">
      <span aria-hidden="true">&times;</span>
    </button>
  </div>
  <% if reportable.reported_by? current_user %>
    <p><%= t('.already_reported') %></p>
  <% else %>
    <p><%= t('.description') %></p>
    <%= decidim_form_for form, url: url, method: :post do |f| %>
      <%= f.collection_radio_buttons :reason, [[:spam, t('.spam')], [:offensive, t('.offensive')], [:does_not_belong, t('.does_not_belong', organization_name: current_organization.name)]], :first, :last do |builder| %>
        <%= builder.label { builder.radio_button + builder.text } %>
      <% end %>
      <%= f.text_area :details, rows: 4 %>
      <%= f.submit t(".report") %>
    <% end %>
  <% end %>
</div>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-core-0.4.4 app/views/decidim/shared/_flag_modal.html.erb
decidim-core-0.4.2 app/views/decidim/shared/_flag_modal.html.erb
decidim-core-0.4.1 app/views/decidim/shared/_flag_modal.html.erb
decidim-core-0.4.3 app/views/decidim/shared/_flag_modal.html.erb
decidim-core-0.4.0 app/views/decidim/shared/_flag_modal.html.erb
decidim-core-0.3.2 app/views/decidim/shared/_flag_modal.html.erb
decidim-core-0.3.1 app/views/decidim/shared/_flag_modal.html.erb
decidim-core-0.3.0 app/views/decidim/shared/_flag_modal.html.erb
decidim-core-0.2.0 app/views/decidim/shared/_flag_modal.html.erb
decidim-core-0.1.0 app/views/decidim/shared/_flag_modal.html.erb
decidim-core-0.0.8.1 app/views/decidim/shared/_flag_modal.html.erb
decidim-core-0.0.7 app/views/decidim/shared/_flag_modal.html.erb
decidim-core-0.0.6 app/views/decidim/shared/_flag_modal.html.erb