-
-
Save shankardevy/8a35acbd349bd3623bf10f8af9645adc 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 -> %> | |
<%= if @changeset.action do %> | |
<div id="form-error" class="alert alert-danger"> | |
<p>Oops, something went wrong! Please check the errors below.</p> | |
</div> | |
<% end %> | |
<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