1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ihatemoney_ynh.git synced 2024-09-03 19:26:15 +02:00

minor changes to the homepage

This commit is contained in:
Alexis Metaireau 2011-08-21 01:50:35 +02:00
parent 7d60bee0ef
commit 2fdc86136d
2 changed files with 18 additions and 14 deletions

View file

@ -1,21 +1,25 @@
{% extends "layout.html" %}
{% block sidebar %}
{% include "recent_projects.html" %}
{% endblock %}
{% block content %}
<h2>Welcome on the budget manager</h2>
<div class="span-12 prepend-2 uniForm" >
<form action="{{ url_for('authenticate') }}" method="post" style="width: 300px">
<h3>Log to an existing project...</h3>
{{ forms.authenticate(auth_form) }}
</form>
{% include "recent_projects.html" %}
</div>
<div class="span-10 last uniForm" >
<form action="{{ url_for('create_project') }}" method="post" style="width: 300px">
<h3>...or create a new one</h3>
{{ forms.create_project(project_form) }}</div>
</form>
<div class="row">
<div class="span8 columns">
<form action="{{ url_for('authenticate') }}" method="post">
<h3>Log to an existing project...</h3>
{{ forms.authenticate(auth_form) }}
</form>
</div>
<div class="span8 columns">
<form action="{{ url_for('create_project') }}" method="post">
<h3>...or create a new one</h3>
{{ forms.create_project(project_form) }}</div>
</form>
</div>
</div>
{% endblock %}

View file

@ -1,5 +1,5 @@
{% if 'projects' in session %}
<h3>Recently visited projects</h3>
<h3>Your projects</h3>
<ul>
{% for id, name in session['projects'] %}
<li><a href="{{ url_for("list_bills", project_id=id) }}">{{ name }}</a></li>