diff options
| author | Aurélien Bompard <aurelien@bompard.org> | 2013-02-13 11:37:38 +0100 |
|---|---|---|
| committer | Aurélien Bompard <aurelien@bompard.org> | 2013-02-13 11:37:38 +0100 |
| commit | 0a1f8de9b4537f0e0d67e694ff8746003e20f3c8 (patch) | |
| tree | 57eaef482c2b8f7190888edf956a6b92fab588f4 /hyperkitty/templates/register.html | |
| parent | ccafc51ade9536046aeb096b04b069f17874fab4 (diff) | |
Rework the login and register forms
Diffstat (limited to 'hyperkitty/templates/register.html')
| -rw-r--r-- | hyperkitty/templates/register.html | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/hyperkitty/templates/register.html b/hyperkitty/templates/register.html index 7d665ab..71d4d6a 100644 --- a/hyperkitty/templates/register.html +++ b/hyperkitty/templates/register.html @@ -1,5 +1,6 @@ {% extends "base.html" %} {% load i18n %} +{% load crispy_forms_tags %} {% block title %} @@ -8,17 +9,22 @@ {% block content %} -<form action="" method="post" class="login mm_clear"> +<div id="register"> + +<h2>Register</h2> + +<form action="{{ request.path }}?next={{ next|urlencode }}" method="post" class="form-horizontal"> {% csrf_token %} - {{ form.as_p }} - <input type="hidden" name="next" value="{{ next }}"> - <div class="field"> - <button class="btn btn-primary" type="submit"> - {% trans "Register" %} - </button> + {{ form|crispy }} + <div class="control-group"> + <div class="controls"> + <button type="submit" class="btn btn-primary">{% trans "Register" %}</button> + </div> </div> </form> +</div> + {% endblock %} {# vim: set noet: #} |
