-
-
Save shankardevy/0c66dc500cddcc69ff7483c1569d1c67 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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