Created
April 6, 2014 01:46
-
-
Save mitchdowney/10000443 to your computer and use it in GitHub Desktop.
signup.html
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
{% extends "account/base.html" %} | |
{% load i18n %} | |
{% load account %} | |
{% load url from future %} | |
{% block head_title %}{% trans "Signup" %}{% endblock %} | |
{% block content %} | |
<div class="col-sm-6"> | |
<div class="ptp-form"> | |
<div class="ptp-form-title"> | |
{% trans "Sign up" %} | |
</div><!-- /.ptp-title --> | |
<p>{% blocktrans %}Already have an account? Then please <a href="{{ login_url }}">sign in</a>.{% endblocktrans %}</p> | |
<form class="signup" id="signup_form" method="post" action="{% url 'account_signup' %}"> | |
{% csrf_token %} | |
<div class="ptp-form-input"> | |
{% if form.login.errors %} | |
<div class="font-orange-4">{{ form.login.errors }}</div> | |
{% endif %} | |
<label class="ptp-form-label" for="login"> | |
Username | |
</label> | |
<input type="text" class="form-control" name="login" /> | |
</div><!-- /.ptp-form-input --> | |
<div class="ptp-form-input"> | |
{% if form.email.errors %} | |
<div class="font-orange-4">{{ form.email.errors }}</div> | |
{% endif %} | |
<label class="ptp-form-label-optional" for="email"> | |
Email <small>(optional)</small> | |
</label> | |
<input type="email" class="form-control" name="email" /> | |
</div><!-- /.ptp-form-input --> | |
<div class="ptp-form-input"> | |
{% if form.password1.errors %} | |
<div class="font-orange-4">{{ form.password1.errors }}</div> | |
{% endif %} | |
<label class="ptp-form-label" for="password1"> | |
Password | |
</label> | |
<input type="password" class="form-control" name="password1" /> | |
</div><!-- /.ptp-form-input --> | |
<div class="ptp-form-input"> | |
{% if form.password2.errors %} | |
<div class="font-orange-4">{{ form.password2.errors }}</div> | |
{% endif %} | |
<label class="ptp-form-label" for="password2"> | |
Password <small>(confirm)</small> | |
</label> | |
<input type="password" class="form-control" name="password2" /> | |
<input name="confirmation_key" type="hidden" /> | |
</div><!-- /.ptp-form-input --> | |
{% if redirect_field_value %} | |
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" /> | |
{% endif %} | |
<button type="submit" class="btn btn-small btn-primary ptp-form-button">{% trans "Sign Up" %}</button> | |
<div class="clearfix"> | |
</div> | |
</form> | |
</div><!-- /.ptp-form --> | |
</div><!-- /.col-sm-6 --> | |
<div class="clearfix"> | |
</div> | |
{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment