1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ihatemoney_ynh.git synced 2024-09-03 19:26:15 +02:00
ihatemoney_ynh/budget/templates/home.html
Alexis Metaireau 3417a5a7d4 List the projects in session into the home page.
This allows easier access when people don't remembre the name / url of their projects.
2011-07-31 00:53:12 +02:00

37 lines
1.3 KiB
HTML

{% extends "layout.html" %}
{% block content %}
<h2>Welcome on the budget manager</h2>
<div class="span-12 prepend-2">
<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>
{% if 'projects' in session %}
<h3>Recently visisted projects</h3>
<ul>
{% for id, name in session['projects'] %}
<li><a href="{{ url_for("list_bills", project_id=id) }}">{{ name }}</a></li>
{% endfor %}
</ul>
{% endif %}
</div>
<form class="span-10 last" action="{{ url_for('create_project') }}" method="post" class="container span-24 add-bill">
<h3>...or create a new one</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 %}