Sha256: 877ee65850cdb8481774ee4ebc8041106b2114a8727e3708885b58d2ebec11de

Contents?: true

Size: 814 Bytes

Versions: 3

Compression:

Stored size: 814 Bytes

Contents

<%= simple_form_for(
  resource, url: resource.new_record? ? registration_path(resource_name) : user_path(resource), 
  method: resource.new_record? ? :post : :put, wrapper: :horizontal_form,
  html: { class: 'form-horizontal', autocomplete: 'off' }
 ) do |f| %>
  <%= devise_error_messages! %>
    
  <%= f.input :name %>
  <%= f.input :first_name %> 
  <%= f.input :last_name %>
  <%= f.input :email %>
  <%= f.input :password %>
  <%= f.input :password_confirmation %>
  
  <div class="form-group">
    <div class="col-sm-offset-3 col-sm-9">
  <% if resource.new_record? && (Rails.env == 'production') %>
      <%= recaptcha_tags %>
      <br/>
  <% end %>     
      <%= f.button :submit %>
      <br/>
      <br/>
      <%= render 'devise/shared/links' if resource.new_record? %>
    </div>
  </div>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
home_page-0.0.6 app/views/users/_form.html.erb
home_page-0.0.5 app/views/users/_form.html.erb
home_page-0.0.4 app/views/users/_form.html.erb