summaryrefslogtreecommitdiff
path: root/app/views/projects/issues/verify.html.haml
blob: 1934b18c086a3542bcd1bfc136bb358a6580829f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
- page_title "Anti-spam verification"

%h3.page-title
  Anti-spam verification
%hr

%p
  We detected potential spam in the issue description. Please verify that you are not a robot to submit the issue.

= form_for [@project.namespace.becomes(Namespace), @project, @issue] do |f|
  .recaptcha
    - params[:issue].each do |field, value|
      = hidden_field(:issue, field, value: value)
    = hidden_field_tag(:merge_request_for_resolving_discussions, params[:merge_request_for_resolving_discussions])
    = hidden_field_tag(:spam_log_id, @issue.spam_log.id)
    = hidden_field_tag(:recaptcha_verification, true)
    = recaptcha_tags

  .row-content-block.footer-block
    = f.submit "Submit #{@issue.class.model_name.human.downcase}", class: 'btn btn-create'