Commit 9d3e0870 authored by Chris Reffett's avatar Chris Reffett

Bootstrapify signup page

parent bab20592
...@@ -7,71 +7,136 @@ Go - Signup ...@@ -7,71 +7,136 @@ Go - Signup
{% block content %} {% block content %}
<div class="page-header" id="banner">
<div class="row">
<div class="col-md-12">
<h3>~Signup~</h3> <h1><strong>Signup</strong></h1>
</div>
</div>
</div>
<div class="row">
{% if not registered %} {% if not registered %}
<p> <div class="col-md-12">
In order to succesfully provide this service, users must be manually <p>
approved. This prevents misuse of the URL shortener. Please indicate below In order to succesfully provide this service, users must be manually
if you are interested. approved. This prevents misuse of the URL shortener. Please indicate below
<br/><br/> if you are interested.
</p> <br/><br/>
</p>
{% for error in form.non_field_errors %} </div>
<p class="error">{{ error }}</p>
{% endfor %} <div class="col-md-8">
<div class="well">
<form method="post" action="{% url 'signup' %}">
{% csrf_token %} <form class="form-horizontal" method="post" action="{% url 'signup' %}">
{% csrf_token %}
<label for="{{ form.username.id_for_label }}">{{ form.username.label }}</label> <fieldset>
<br/>
{% for error in form.username.errors %} {% if form.non_field_errors %}
<p class="error">{{error}}</p> <div class="form-group has-error">
{% empty %} <div class="col-md-12">
<br/> {% for error in form.non_field_errors %}
{% endfor %} <span class="help-block">{{ error }}</p>
{{ form.username }} {% endfor %}
<br/><br/> </div>
</div>
<label for="{{ form.full_name.id_for_label }}">{{ form.full_name.label }}</label> {% endif %}
<br/>
{% for error in form.full_name.errors %} {% if form.username.errors %}
<p class="error">{{error}}</p> <div class="form-group has-error">
{% empty %} {% else %}
<br/> <div class="form-group">
{% endfor %} {% endif %}
{{ form.full_name }} <div class="col-md-4">
<br/><br/> <label class="control-label" for="{{ form.username.id_for_label }}">
{{ form.username.label }}</label>
<label for="{{ form.description.id_for_label }}">{{ form.description.label }}</label> </div>
<br/>
{% for error in form.description.errors %} <div class="col-md-8">
<p class="error">{{error}}</p> {{ form.username }}
{% empty %}
<br/> {% for error in form.username.errors %}
{% endfor %} <span class="help-block">{{error}}</span>
{{ form.description }} {% endfor %}
<br/><br/> </div>
</div>
<label for="{{ form.captcha.id_for_label }}">{{ form.captcha.label }}</label>
<br/> {% if form.full_name.errors %}
{% for error in form.captcha.errors %} <div class="form-group has-error">
<p class="error">{{error}}</p> {% else %}
{% empty %} <div class="form-group">
<br/> {% endif %}
{% endfor %} <div class="col-md-4">
{{ form.captcha }} <label class="control-label" for="{{ form.full_name.id_for_label }}">
<br/><br/> {{ form.full_name.label }}</label>
</div>
<input type="submit" value="Sign Up" /> <div class="col-md-8">
<br/><br/> {{ form.full_name }}
</form> {% for error in form.full_name.errors %}
<span class="help-block">{{error}}</span>
{% endfor %}
</div>
</div>
{% if form.description.errors %}
<div class="form-group has-error">
{% else %}
<div class="form-group">
{% endif %}
<div class="col-md-4">
<label class="control-label" for="{{ form.description.id_for_label }}">
{{ form.description.label }}</label>
</div>
<div class="col-md-8">
{{ form.description }}
{% for error in form.description.errors %}
<span class="help-block">{{error}}</span>
{% endfor %}
</div>
</div>
{% if form.captcha.errors %}
<div class="form-group has-error">
{% else %}
<div class="form-group">
{% endif %}
<div class="col-md-4">
<label class="control-label" for="{{ form.captcha.id_for_label }}">
{{ form.captcha.label }}</label>
</div>
<div class="col-md-8">
{{ form.captcha }}
{% for error in form.captcha.errors %}
<span class="help-block">{{error}}</span>
{% endfor %}
</div>
</div>
<div class="form-group">
<div class="col-md-12">
<input type="submit" value="Submit"
class="btn btn-primary btn-lg btn-block" />
</div>
</div>
</fieldset>
</form>
</div>
</div>
{% else %} {% else %}
<p>You are already signed up for Go.</p> <div class="col-md-12">
<br/> <p>You are already signed up for Go.</p>
</div>
{% endif %} {% endif %}
</div>
{% endblock %} {% endblock %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment