Skip to content

Instantly share code, notes, and snippets.

@shankardevy
Created July 12, 2017 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shankardevy/0c66dc500cddcc69ff7483c1569d1c67 to your computer and use it in GitHub Desktop.
Save shankardevy/0c66dc500cddcc69ff7483c1569d1c67 to your computer and use it in GitHub Desktop.
<h1>Register account</h1>
<%= form_for @changeset, registration_path(@conn, :create), [as: :registration, id: "registration-form"], fn f -> %>
<div class="form-group">
<%= label f, :name, class: "control-label" %>
<%= text_input f, :name, class: "form-control" %>
<%= error_tag f, :name %>
</div>
<div class="form-group">
<%= label f, :email, class: "control-label" %>
<%= text_input f, :email, class: "form-control" %>
<%= error_tag f, :email %>
</div>
<div class="form-group">
<%= label f, :phone, class: "control-label" %>
<%= text_input f, :phone, class: "form-control" %>
<%= error_tag f, :phone %>
</div>
<div class="form-group">
<%= label f, :residence_area, "Area of Residence", class: "control-label" %>
<%= text_input f, :residence_area, class: "form-control" %>
<%= error_tag f, :residence_area %>
</div>
<div class="form-group">
<%= label f, :password, class: "control-label" %>
<%= password_input f, :password, placeholder: "Password", class: "form-control" %>
<%= error_tag f, :password %>
</div>
<%= submit "Register", class: "btn btn-primary" %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment