Commit 33d036758a80f9ac717b2df78903dede9a005bdd
1 parent
f5b9376b
Exists in
master
and in
28 other branches
ActionItem1154: moving inverse captcha fields up
We are trying to fool the spam robots, in the case they look for the first field matching something that looks like "e.*mail".
Showing
3 changed files
with
3 additions
and
5 deletions
Show diff stats
app/views/account/_signup_form.rhtml
@@ -12,6 +12,7 @@ | @@ -12,6 +12,7 @@ | ||
12 | <% labelled_form_for :user, @user, | 12 | <% labelled_form_for :user, @user, |
13 | :html => { :help=>_('Fill all this fields to join in this environment. <p/> If you forgot your password, do not create a new account, click on the "<b>I forgot my password!</b>" link. ;-)'), :id => 'profile-data' | 13 | :html => { :help=>_('Fill all this fields to join in this environment. <p/> If you forgot your password, do not create a new account, click on the "<b>I forgot my password!</b>" link. ;-)'), :id => 'profile-data' |
14 | } do |f| -%> | 14 | } do |f| -%> |
15 | +<%= icaptcha_field() %> | ||
15 | 16 | ||
16 | <%= hidden_field_tag :invitation_code, @invitation_code %> | 17 | <%= hidden_field_tag :invitation_code, @invitation_code %> |
17 | 18 | ||
@@ -48,8 +49,6 @@ | @@ -48,8 +49,6 @@ | ||
48 | <%= render :partial => 'profile_editor/person_form', :locals => {:f => f} %> | 49 | <%= render :partial => 'profile_editor/person_form', :locals => {:f => f} %> |
49 | <% end %> | 50 | <% end %> |
50 | 51 | ||
51 | -<%= icaptcha_field() %> | ||
52 | - | ||
53 | <% if @terms_of_use %> | 52 | <% if @terms_of_use %> |
54 | <%= _("By clicking on 'I accept the terms of use' below you are agreeing to the %s") % | 53 | <%= _("By clicking on 'I accept the terms of use' below you are agreeing to the %s") % |
55 | link_to_function(_('Terms of use'), nil) do |page| | 54 | link_to_function(_('Terms of use'), nil) do |page| |
app/views/contact/new.rhtml
@@ -4,6 +4,7 @@ | @@ -4,6 +4,7 @@ | ||
4 | 4 | ||
5 | 5 | ||
6 | <% labelled_form_for :contact, @contact do |f| %> | 6 | <% labelled_form_for :contact, @contact do |f| %> |
7 | + <%= icaptcha_field() %> | ||
7 | 8 | ||
8 | <%= required_fields_message %> | 9 | <%= required_fields_message %> |
9 | 10 | ||
@@ -16,8 +17,6 @@ | @@ -16,8 +17,6 @@ | ||
16 | <%= required f.text_area(:message, :rows => 10, :cols => 60) %> | 17 | <%= required f.text_area(:message, :rows => 10, :cols => 60) %> |
17 | <%= labelled_form_field check_box(:contact, :receive_a_copy) + _('I want to receive a copy of the message in my e-mail.'), '' %> | 18 | <%= labelled_form_field check_box(:contact, :receive_a_copy) + _('I want to receive a copy of the message in my e-mail.'), '' %> |
18 | 19 | ||
19 | - <%= icaptcha_field() %> | ||
20 | - | ||
21 | <%= submit_button(:send, _('Send')) %> | 20 | <%= submit_button(:send, _('Send')) %> |
22 | 21 | ||
23 | <% end %> | 22 | <% end %> |
app/views/content_viewer/_comment_form.rhtml
@@ -18,6 +18,7 @@ | @@ -18,6 +18,7 @@ | ||
18 | <h4><%= content_tag('a', '', :name => 'comment_form') + _('Post a comment') %></h4> | 18 | <h4><%= content_tag('a', '', :name => 'comment_form') + _('Post a comment') %></h4> |
19 | 19 | ||
20 | <% form_tag( @page.view_url, { :id => comment_form_id } ) do %> | 20 | <% form_tag( @page.view_url, { :id => comment_form_id } ) do %> |
21 | + <%= icaptcha_field() %> | ||
21 | 22 | ||
22 | <%= required_fields_message %> | 23 | <%= required_fields_message %> |
23 | 24 | ||
@@ -25,7 +26,6 @@ | @@ -25,7 +26,6 @@ | ||
25 | 26 | ||
26 | <%= required labelled_form_field(_('Name'), text_field(:comment, :name)) %> | 27 | <%= required labelled_form_field(_('Name'), text_field(:comment, :name)) %> |
27 | <%= required labelled_form_field(_('e-mail'), text_field(:comment, :email)) %> | 28 | <%= required labelled_form_field(_('e-mail'), text_field(:comment, :email)) %> |
28 | - <%= icaptcha_field() %> | ||
29 | 29 | ||
30 | <p> | 30 | <p> |
31 | <%= _('If you are a registered user, you can login and be automatically recognized.') %> | 31 | <%= _('If you are a registered user, you can login and be automatically recognized.') %> |