Add ids to tags; use pygments to color JSON
This commit is contained in:
parent
f83fee99f3
commit
8f438aca2d
18 changed files with 365 additions and 211 deletions
|
|
@ -3,15 +3,15 @@
|
|||
Sign Up
|
||||
{% endblock title %}
|
||||
{% block content %}
|
||||
<h4>Sign Up</h4>
|
||||
<h4 id="page-title">Sign Up</h4>
|
||||
{% if form.errors %}
|
||||
<ul>
|
||||
<ul id="error-list">
|
||||
{% for field, errors in form.errors.items %}
|
||||
{% for error in errors %}<li>{{ error }}</li>{% endfor %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
<form method="post">
|
||||
<form id="signup-form" method="post">
|
||||
{% csrf_token %}
|
||||
<label for="{{ form.username.id_for_label }}">Username</label>
|
||||
<input type="text"
|
||||
|
|
@ -19,22 +19,22 @@
|
|||
id="{{ form.username.id_for_label }}"
|
||||
value="{{ form.username.value|default:'' }}"
|
||||
required>
|
||||
{% if form.username.help_text %}{{ form.username.help_text }}{% endif %}
|
||||
{% if form.username.help_text %}<small id="username-help">{{ form.username.help_text }}</small>{% endif %}
|
||||
<label for="{{ form.password1.id_for_label }}">Password</label>
|
||||
<input type="password"
|
||||
name="password1"
|
||||
id="{{ form.password1.id_for_label }}"
|
||||
required>
|
||||
{% if form.password1.help_text %}{{ form.password1.help_text }}{% endif %}
|
||||
{% if form.password1.help_text %}<small id="password1-help">{{ form.password1.help_text }}</small>{% endif %}
|
||||
<label for="{{ form.password2.id_for_label }}">Confirm Password</label>
|
||||
<input type="password"
|
||||
name="password2"
|
||||
id="{{ form.password2.id_for_label }}"
|
||||
required>
|
||||
{% if form.password2.help_text %}{{ form.password2.help_text }}{% endif %}
|
||||
<button type="submit">Sign Up</button>
|
||||
{% if form.password2.help_text %}<small id="password2-help">{{ form.password2.help_text }}</small>{% endif %}
|
||||
<button id="signup-button" type="submit">Sign Up</button>
|
||||
</form>
|
||||
<p>
|
||||
Already have an account? <a href="{% url 'accounts:login' %}">Login here</a>
|
||||
Already have an account? <a id="login-link" href="{% url 'accounts:login' %}">Login here</a>
|
||||
</p>
|
||||
{% endblock content %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue