gitlab-org--gitlab-foss/app/views/abuse_reports/new.html.haml
Takuya Noguchi 34609f7ce4 Fix col-sm-* in forms to keep layout
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
2019-05-27 13:35:28 +09:00

28 lines
1.1 KiB
Text

- page_title _("Report abuse to GitLab")
%h3.page-title
= _("Report abuse to GitLab")
%p
= _("Please use this form to report users to GitLab who create spam issues, comments or behave inappropriately.")
%p
= _("A member of GitLab's abuse team will review your report as soon as possible.")
%hr
= form_for @abuse_report, html: { class: 'js-quick-submit js-requires-input'} do |f|
= form_errors(@abuse_report)
= f.hidden_field :user_id
.form-group.row
.col-sm-2.col-form-label
= f.label :user_id
.col-sm-10
- name = "#{@abuse_report.user.name} (@#{@abuse_report.user.username})"
= text_field_tag :user_name, name, class: "form-control", readonly: true
.form-group.row
.col-sm-2.col-form-label
= f.label :message
.col-sm-10
= f.text_area :message, class: "form-control", rows: 2, required: true, value: sanitize(@ref_url)
.form-text.text-muted
= _("Explain the problem. If appropriate, provide a link to the relevant issue or comment.")
.form-actions
= f.submit _("Send report"), class: "btn btn-success"