_common_registration_fields.html.erb 942 B

12345678910111213141516171819202122232425262728
  1. <div class="form-group">
  2. <%= f.label :email, class: 'col-md-4 control-label' %>
  3. <div class="col-md-6">
  4. <%= f.email_field :email, autofocus: true, class: 'form-control' %>
  5. </div>
  6. </div>
  7. <div class="form-group">
  8. <%= f.label :username, class: 'col-md-4 control-label' %>
  9. <div class="col-md-6">
  10. <%= f.text_field :username, class: 'form-control' %>
  11. </div>
  12. </div>
  13. <div class="form-group">
  14. <%= f.label :password, class: 'col-md-4 control-label' %>
  15. <div class="col-md-6">
  16. <%= f.password_field :password, autocomplete: "off", class: 'form-control' %>
  17. <% if @validatable %><span class="help-inline"><%= @minimum_password_length %> characters minimum.</span><% end %>
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <%= f.label :password_confirmation, class: 'col-md-4 control-label' %>
  22. <div class="col-md-6">
  23. <%= f.password_field :password_confirmation, autocomplete: "off", class: 'form-control' %>
  24. </div>
  25. </div>