summaryrefslogtreecommitdiff
path: root/app/views/abuse_reports/new.html.haml
blob: 736456b67babc9692cc4580d813b9b5dd2fc5f0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
- page_title "Report abuse"
%h3.page-title Report abuse
%p Please use this form if user makes spam or inappropriate content
%hr
= form_for @abuse_report, html: { class: 'form-horizontal'} do |f|
  = f.hidden_field :user_id
  - if @abuse_report.errors.any?
    .alert.alert-danger
      - @abuse_report.errors.full_messages.each do |msg|
        %p= msg
  .form-group
    = f.label :user_id, class: 'control-label'
    .col-sm-10
      = users_select_tag("abuse_reports[user_id]", placeholder: 'Select user to report abuse',
        class: 'custom-form-control js-select2', selected: @abuse_report.user_id, scope: :all)
  .form-group
    = f.label :message, class: 'control-label'
    .col-sm-10
      = f.text_area :message, class: "form-control", rows: 2, required: true
      .help-block
        Explain the problem with this account.
        %br
        If user sends spam please provide a link to spam issue or comment

  .form-actions
    = f.submit "Send report", class: "btn btn-create"

:coffeescript
  new UsersSelect()