Switched to use of recaptcha_input_tag helper method [SCI-706]

This commit is contained in:
Oleksii Kriuchykhin 2016-11-24 14:19:44 +01:00
parent 698e07a3b5
commit 592ed802b2

View file

@ -31,16 +31,7 @@
<span><small><%= t 'users.registrations.new.team_name_help' %></small></span>
</div>
<% if Rails.configuration.x.enable_recaptcha %>
<div class="form-group <%= 'has-error' if flash[:recaptcha_error] %>">
<%= recaptcha_tags %>
<% if flash[:recaptcha_error] %>
<span class="help-block">
<%= flash[:recaptcha_error] %>
</span>
<% end %>
</div>
<% end %>
<%= recaptcha_input_tag %>
<div class="form-group">
<%= f.submit "Sign Up", class: "btn btn-primary" %>