<%= form_for(resource, as: resource_name, url: unlock_path(resource_name), html: {method: :post}) do |f| %>
<%= f.label :email %>
<%= f.email_field :email, class: 'form-control', maxlength: 254, autofocus: true,
data: {
'rule-required' => 'true',
'rule-maxlength' => '254'
} %>
<%= button_tag type: 'submit', class: 'btn btn-primary' do %>
Send
<% end %>
<% end %>