debian-mirror-gitlab/app/views/abuse_reports/new.html.haml

23 lines
955 B
Text
Raw Normal View History

2015-09-11 14:41:01 +05:30
- page_title "Report abuse"
%h3.page-title Report abuse
%p Please use this form to report users who create spam issues, comments or behave inappropriately.
%hr
2018-11-08 19:23:39 +05:30
= form_for @abuse_report, html: { class: 'js-quick-submit js-requires-input'} do |f|
2016-06-02 11:05:42 +05:30
= form_errors(@abuse_report)
2015-09-11 14:41:01 +05:30
= f.hidden_field :user_id
2018-11-08 19:23:39 +05:30
.form-group.row
= f.label :user_id, class: 'col-sm-2 col-form-label'
2015-09-11 14:41:01 +05:30
.col-sm-10
- name = "#{@abuse_report.user.name} (@#{@abuse_report.user.username})"
= text_field_tag :user_name, name, class: "form-control", readonly: true
2018-11-08 19:23:39 +05:30
.form-group.row
= f.label :message, class: 'col-sm-2 col-form-label'
2015-09-11 14:41:01 +05:30
.col-sm-10
2016-06-02 11:05:42 +05:30
= f.text_area :message, class: "form-control", rows: 2, required: true, value: sanitize(@ref_url)
2018-11-08 19:23:39 +05:30
.form-text.text-muted
2015-09-11 14:41:01 +05:30
Explain the problem with this user. If appropriate, provide a link to the relevant issue or comment.
.form-actions
2018-12-05 23:21:45 +05:30
= f.submit "Send report", class: "btn btn-success"