clean templates, add userdetail and proper landing page

This commit is contained in:
Uwe Kamper 2013-10-25 01:03:16 +02:00
parent 413728b24f
commit 96ff186913
13 changed files with 253 additions and 80 deletions

View file

@ -1,20 +1,23 @@
{% extends "base.html" %}
{% extends "form_base.html" %}
{% load i18n %}
{% load crispy_forms_tags %}
{% block body %}
<div class="container">
<div class="row">
<div class="span12">
<h2>Gastro-Pin</h2>
{% if message %}
<div class="alert alert-success">{{ message }}</div>
{% endif %}
<form action="/gastropin/" method="post">
{{ form.non_field_errors }}
{% csrf_token %}
{{ form.as_p }}
<button type="submit" class="btn btn-primary">Submit</button>
</form>
{% block form_title %}{% trans "Gastro PIN"%}{% endblock %}
{% block form_description %}
<p>{% blocktrans %}Change your Gastro PIN to access the vending machines.{% endblocktrans %}</p>
{% endblock %}
{% block form_fields %}
{{ form.non_field_errors }}
<form action="{% url account.views.gastropin %}" method="post" class="form-horizontal well">
{% csrf_token %}
{{ form|crispy }}
<div class="control-group">
<div class="controls">
<button type="submit" class="btn btn-primary">{% trans "Save"%}</button>
</div>
</div>
</div>
{% endblock %}
</form>
{% endblock form_fields %}