2015-08-06 08:03:27 -04:00
|
|
|
- page_title "Report abuse"
|
|
|
|
%h3.page-title Report abuse
|
2015-08-08 13:46:34 -04:00
|
|
|
%p Please use this form to report users who create spam issues, comments or behave inappropriately.
|
2015-08-06 08:03:27 -04:00
|
|
|
%hr
|
2018-04-12 16:11:22 -04:00
|
|
|
= form_for @abuse_report, html: { class: 'js-quick-submit js-requires-input'} do |f|
|
2016-04-04 21:25:38 -04:00
|
|
|
= form_errors(@abuse_report)
|
|
|
|
|
2015-08-06 08:03:27 -04:00
|
|
|
= f.hidden_field :user_id
|
2018-04-12 16:11:22 -04:00
|
|
|
.form-group.row
|
2018-04-12 19:16:56 -04:00
|
|
|
= f.label :user_id, class: 'col-sm-2 col-form-label'
|
2015-08-06 08:03:27 -04:00
|
|
|
.col-sm-10
|
2015-08-06 09:13:47 -04:00
|
|
|
- name = "#{@abuse_report.user.name} (@#{@abuse_report.user.username})"
|
|
|
|
= text_field_tag :user_name, name, class: "form-control", readonly: true
|
2018-04-12 16:11:22 -04:00
|
|
|
.form-group.row
|
2018-04-12 19:16:56 -04:00
|
|
|
= f.label :message, class: 'col-sm-2 col-form-label'
|
2015-08-06 08:03:27 -04:00
|
|
|
.col-sm-10
|
2016-02-12 16:28:53 -05:00
|
|
|
= f.text_area :message, class: "form-control", rows: 2, required: true, value: sanitize(@ref_url)
|
2018-04-11 14:26:37 -04:00
|
|
|
.form-text.text-muted
|
2015-08-06 09:15:17 -04:00
|
|
|
Explain the problem with this user. If appropriate, provide a link to the relevant issue or comment.
|
2015-08-06 08:03:27 -04:00
|
|
|
|
|
|
|
.form-actions
|
|
|
|
= f.submit "Send report", class: "btn btn-create"
|