diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-01-04 10:28:09 +0000 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-01-04 10:28:09 +0000 |
commit | 57377376cc55b47361020a12b9a6d7ff5a4edbf2 (patch) | |
tree | dd1e0d4a3978e913f1643885329d7a9b909cd73d | |
parent | bc12750fcc7a8637771e1449493cdd3cee9ebd64 (diff) | |
parent | c479dbae225728234848467c5451f48f27462a05 (diff) | |
download | gitlab-ce-57377376cc55b47361020a12b9a6d7ff5a4edbf2.tar.gz |
Merge branch 'rs-abuse-report-form' into 'master'
Add js-requires-input and js-quick-submit to abuse report form
See merge request !2245
-rw-r--r-- | app/views/abuse_reports/new.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/abuse_reports/new.html.haml b/app/views/abuse_reports/new.html.haml index cffd7684008..3e5cdd2ce4a 100644 --- a/app/views/abuse_reports/new.html.haml +++ b/app/views/abuse_reports/new.html.haml @@ -2,7 +2,7 @@ %h3.page-title Report abuse %p Please use this form to report users who create spam issues, comments or behave inappropriately. %hr -= form_for @abuse_report, html: { class: 'form-horizontal'} do |f| += form_for @abuse_report, html: { class: 'form-horizontal js-requires-input'} do |f| = f.hidden_field :user_id - if @abuse_report.errors.any? .alert.alert-danger @@ -16,7 +16,7 @@ .form-group = f.label :message, class: 'control-label' .col-sm-10 - = f.text_area :message, class: "form-control", rows: 2, required: true + = f.text_area :message, class: "form-control js-quick-submit", rows: 2, required: true .help-block Explain the problem with this user. If appropriate, provide a link to the relevant issue or comment. |