Coverage for ivatar/ivataraccount/templates/new.html: 93%
30 statements
« prev ^ index » next coverage.py v7.6.9, created at 2024-12-26 00:11 +0000
« prev ^ index » next coverage.py v7.6.9, created at 2024-12-26 00:11 +0000
1{% extends 'base.html' %}
2{% load i18n %}
4{% block title %}{% trans 'Create a new ivatar account' %}{% endblock title %}
6{% block content %}
8<h1>{% trans 'Create a new account' %}</h1>
10{% if form.username.errors %}
11<div class="alert alert-danger" role="alert">{{ form.username.errors }}</div>
12{% endif %}
13{% if form.password1.errors %}
14<div class="alert alert-danger" role="alert">{{ form.password1.errors }}</div>
15{% endif %}
16{% if form.password2.errors %}
17<div class="alert alert-danger" role="alert">{{ form.password2.errors }}</div>
18{% endif %}
19<form action="{% url 'new_account' %}" method="post" name="newaccount">
20{% csrf_token %}
21<div style="max-width:640px">
22<div class="form-group">
23<label for="id_username">{% trans 'Username' %}:</label>
24<input type="text" name="username" autofocus required class="form-control" id="id_username">
25</div>
26<div class="form-group">
27<label for="id_password1">{% trans 'Password' %}:</label>
28<input type="password" name="password1" class="form-control" required id="id_password1">
29</div>
30<div class="form-group">
31<label for="id_password2">{% trans 'Password confirmation' %}:</label>
32<input type="password" name="password2" class="form-control" required id="id_password2">
33</div>
34<button type="submit" class="button">{% trans 'Create account' %}</button> or <a href="/accounts/login/" class="button">{% trans 'Login' %}</a>
35</form>
36</div>
37<div style="height:40px"></div>
38{% endblock content %}