-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from utsavll0/neha-1
Neha 1: user registration added profile info and changed the flow
- Loading branch information
Showing
3 changed files
with
172 additions
and
107 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,115 @@ | ||
{% extends "layout.html" %} | ||
{% block content %} | ||
<div class="content-section"> | ||
<form method="POST" action=""> | ||
{{ form.hidden_tag() }} | ||
<fieldset class="form-group"> | ||
<legend class="border-bottom mb-4">Join Today</legend> | ||
<div class="form-group"> | ||
{{ form.username.label(class="form-control-label") }} | ||
<div class="content-section"> | ||
<form method="POST" action=""> | ||
{{ form.hidden_tag() }} | ||
|
||
{% if form.username.errors %} | ||
{{ form.username(class="form-control form-control-lg is-invalid") }} | ||
<div class="invalid-feedback"> | ||
{% for error in form.username.errors %} | ||
<span>{{ error }}</span> | ||
{% endfor %} | ||
</div> | ||
{% else %} | ||
{{ form.username(class="form-control form-control-lg") }} | ||
{% endif %} | ||
<fieldset class="form-group"> | ||
<legend class="border-bottom mb-4">Join Today</legend> | ||
<div class="form-group"> | ||
{{ form.username.label(class="form-control-label") }} | ||
{% if form.username.errors %} | ||
{{ form.username(class="form-control form-control-lg is-invalid") }} | ||
<div class="invalid-feedback"> | ||
{% for error in form.username.errors %} | ||
<span>{{ error }}</span> | ||
{% endfor %} | ||
</div> | ||
<div class="form-group"> | ||
{{ form.email.label(class="form-control-label") }} | ||
{% if form.email.errors %} | ||
{{ form.email(class="form-control form-control-lg is-invalid") }} | ||
<div class="invalid-feedback"> | ||
{% for error in form.email.errors %} | ||
<span>{{ error }}</span> | ||
{% endfor %} | ||
</div> | ||
{% else %} | ||
{{ form.email(class="form-control form-control-lg") }} | ||
{% endif %} | ||
{% else %} | ||
{{ form.username(class="form-control form-control-lg") }} | ||
{% endif %} | ||
</div> | ||
<div class="form-group"> | ||
{{ form.email.label(class="form-control-label") }} | ||
{% if form.email.errors %} | ||
{{ form.email(class="form-control form-control-lg is-invalid") }} | ||
<div class="invalid-feedback"> | ||
{% for error in form.email.errors %} | ||
<span>{{ error }}</span> | ||
{% endfor %} | ||
</div> | ||
<div class="form-group"> | ||
{{ form.password.label(class="form-control-label") }} | ||
{% if form.password.errors %} | ||
{{ form.password(class="form-control form-control-lg is-invalid") }} | ||
<div class="invalid-feedback"> | ||
{% for error in form.password.errors %} | ||
<span>{{ error }}</span> | ||
{% endfor %} | ||
</div> | ||
{% else %} | ||
{{ form.password(class="form-control form-control-lg") }} | ||
{% endif %} | ||
{% else %} | ||
{{ form.email(class="form-control form-control-lg") }} | ||
{% endif %} | ||
</div> | ||
<div class="form-group"> | ||
{{ form.password.label(class="form-control-label") }} | ||
{% if form.password.errors %} | ||
{{ form.password(class="form-control form-control-lg is-invalid") }} | ||
<div class="invalid-feedback"> | ||
{% for error in form.password.errors %} | ||
<span>{{ error }}</span> | ||
{% endfor %} | ||
</div> | ||
<div class="form-group"> | ||
{{ form.confirm_password.label(class="form-control-label") }} | ||
{% if form.confirm_password.errors %} | ||
{{ form.confirm_password(class="form-control form-control-lg is-invalid") }} | ||
<div class="invalid-feedback"> | ||
{% for error in form.confirm_password.errors %} | ||
<span>{{ error }}</span> | ||
{% endfor %} | ||
</div> | ||
{% else %} | ||
{{ form.confirm_password(class="form-control form-control-lg") }} | ||
{% endif %} | ||
{% else %} | ||
{{ form.password(class="form-control form-control-lg") }} | ||
{% endif %} | ||
</div> | ||
<div class="form-group"> | ||
{{ form.confirm_password.label(class="form-control-label") }} | ||
{% if form.confirm_password.errors %} | ||
{{ form.confirm_password(class="form-control form-control-lg is-invalid") }} | ||
<div class="invalid-feedback"> | ||
{% for error in form.confirm_password.errors %} | ||
<span>{{ error }}</span> | ||
{% endfor %} | ||
</div> | ||
</fieldset> | ||
{% else %} | ||
{{ form.confirm_password(class="form-control form-control-lg") }} | ||
{% endif %} | ||
</div> | ||
<div class="form-group"> | ||
{{ form.height.label(class="form-control-label") }} (cms) | ||
{% if form.height.errors %} | ||
{{ form.height(class="form-control form-control-lg is-invalid") }} | ||
<div class="invalid-feedback"> | ||
{% for error in form.height.errors %} | ||
<span>{{ error }}</span> | ||
{% endfor %} | ||
</div> | ||
{% else %} | ||
{{ form.height(class="form-control form-control-lg") }} | ||
{% endif %} | ||
</div> | ||
<div class="form-group"> | ||
{{ form.weight.label(class="form-control-label") }} (kgs) | ||
{% if form.weight.errors %} | ||
{{ form.weight(class="form-control form-control-lg is-invalid") }} | ||
<div class="invalid-feedback"> | ||
{% for error in form.weight.errors %} | ||
<span>{{ error }}</span> | ||
{% endfor %} | ||
</div> | ||
{% else %} | ||
{{ form.weight(class="form-control form-control-lg") }} | ||
{% endif %} | ||
</div> | ||
<div class="form-group"> | ||
{{ form.target_weight.label(class="form-control-label") }} (kgs) | ||
{% if form.target_weight.errors %} | ||
{{ form.goal(class="form-control form-control-lg is-invalid") }} | ||
<div class="invalid-feedback"> | ||
{% for error in form.target_weight.errors %} | ||
<span>{{ error }}</span> | ||
{% endfor %} | ||
</div> | ||
{% else %} | ||
{{ form.target_weight(class="form-control form-control-lg") }} | ||
{% endif %} | ||
</div> | ||
<div class="form-group"> | ||
{{ form.submit(class="btn btn-outline-info") }} | ||
<label class="form-control-label">Target Date</label> | ||
<input type="date" name="target_date" required> | ||
</div> | ||
</form> | ||
</div> | ||
<div class="border-top pt-3"> | ||
<small class="text-muted"> | ||
Already Have An Account? <a class="ml-2" href="{{ url_for('login') }}">Sign In</a> | ||
</small> | ||
</div> | ||
</fieldset> | ||
<div class="form-group"> | ||
{{ form.submit(class="btn btn-outline-info") }} | ||
</div> | ||
</form> | ||
</div> | ||
<div class="border-top pt-3"> | ||
<small class="text-muted"> | ||
Already Have An Account? <a class="ml-2" href="{{ url_for('login') }}">Sign In</a> | ||
</small> | ||
</div> | ||
{% endblock content %} |