diff options
Diffstat (limited to 'budget/templates')
| -rw-r--r-- | budget/templates/authenticate.html | 6 | ||||
| -rw-r--r-- | budget/templates/home.html | 28 |
2 files changed, 32 insertions, 2 deletions
diff --git a/budget/templates/authenticate.html b/budget/templates/authenticate.html index c745e9f..8b57c67 100644 --- a/budget/templates/authenticate.html +++ b/budget/templates/authenticate.html @@ -1,6 +1,6 @@ {% extends "layout.html" %} {% block content %} -<h2>Login to "{{ project.name }}"</h2> +<h2>Authentication</h2> {% for errors in form.errors.values() %} <p class=error>{{ ", ".join(errors) }}</p> @@ -8,7 +8,9 @@ <form action="" method="POST" accept-charset="utf-8"> {{ form.hidden_tag() }} - Password: <input type="password" name="password" value=""> + + <p>{{ form.id.label }}<br /> {{ form.id }}</p> + <p>{{ form.password.label }}<br /> {{ form.password }}</p> <p>{{ form.submit }}</p> </form> {% endblock %} diff --git a/budget/templates/home.html b/budget/templates/home.html new file mode 100644 index 0000000..5fcdf90 --- /dev/null +++ b/budget/templates/home.html @@ -0,0 +1,28 @@ +{% extends "layout.html" %} + +{% block content %} +<h2>Welcome on the budget manager</h2> + +<form action="{{ url_for('authenticate') }}" method="post" accept-charset="utf-8"> + <h3>Log to an existing project...</h3> + + {{ auth_form.hidden_tag() }} + + <p>{{ auth_form.id.label }}<br /> {{ auth_form.id }}</p> + <p>{{ auth_form.password.label }}<br /> {{ auth_form.password }}</p> + <p>{{ auth_form.submit }}</p> +</form> + +<form action="{{ url_for('create_project') }}" method="post" class="container span-24 add-bill"> + <h3>...or create a new project</h3> + + {{ project_form.hidden_tag() }} + + <p>{{ project_form.name.label }}<br /> {{ project_form.name }}</p> + <p>{{ project_form.id.label }}<br /> {{ project_form.id }}</p> + <p>{{ project_form.password.label }}<br /> {{ project_form.password }}</p> + <p>{{ project_form.contact_email.label }}<br /> {{ project_form.contact_email }}</p> + <p>{{ project_form.submit }}</p> +</form> + +{% endblock %} |
