aboutsummaryrefslogtreecommitdiff
path: root/budget/templates
diff options
context:
space:
mode:
authorArnaud Bos <arnaud.tlse@gmail.com>2011-09-18 23:38:12 +0200
committerArnaud Bos <arnaud.tlse@gmail.com>2011-09-18 23:39:10 +0200
commit681f22f3e47c3fb75fdb1d858b179e945c952596 (patch)
treee83246b13d33f30083488b6913e96e261605f5e3 /budget/templates
parent89e1bbe134bc770d4a3f999a1329bd07522b07cf (diff)
parent20ab40690d74befcd8fc75f24f301759840bf43a (diff)
downloadihatemoney-mirror-681f22f3e47c3fb75fdb1d858b179e945c952596.zip
ihatemoney-mirror-681f22f3e47c3fb75fdb1d858b179e945c952596.tar.gz
ihatemoney-mirror-681f22f3e47c3fb75fdb1d858b179e945c952596.tar.bz2
Merge branch 'master' into auth-forms-usability
Diffstat (limited to 'budget/templates')
-rw-r--r--budget/templates/create_project.html9
-rw-r--r--budget/templates/forms.html11
-rw-r--r--budget/templates/layout.html4
3 files changed, 16 insertions, 8 deletions
diff --git a/budget/templates/create_project.html b/budget/templates/create_project.html
index 6593822..41b8fd0 100644
--- a/budget/templates/create_project.html
+++ b/budget/templates/create_project.html
@@ -2,10 +2,7 @@
{% block content %}
<h2>Create a new project</h2>
-<div class="uniForm">
- <form method="post" class="container span-24 add-bill">
- {{ forms.create_project(form) }}
- </form>
-</div>
+<form method="post">
+ {{ forms.create_project(form) }}
+</form>
{% endblock %}
-
diff --git a/budget/templates/forms.html b/budget/templates/forms.html
index f516e40..80a0d17 100644
--- a/budget/templates/forms.html
+++ b/budget/templates/forms.html
@@ -57,6 +57,17 @@
{% endmacro %}
+{% macro edit_project(form) %}
+
+ {% include "display_errors.html" %}
+ {{ form.hidden_tag() }}
+ {{ input(form.name) }}
+ {{ input(form.password) }}
+ {{ input(form.contact_email) }}
+ {{ submit(form.submit) }}
+
+{% endmacro %}
+
{% macro add_bill(form, edit=False) %}
<fieldset>
diff --git a/budget/templates/layout.html b/budget/templates/layout.html
index c45a193..2b7c11e 100644
--- a/budget/templates/layout.html
+++ b/budget/templates/layout.html
@@ -52,7 +52,7 @@
<li class="menu">
<a href="#" class="menu"><strong>{{ g.project.name }}</strong> options</a>
<ul class="menu-dropdown" style="display: none; ">
- <li><a href="">Project settings</a></li>
+ <li><a href="{{ url_for(".edit_project") }}">Project settings</a></li>
<li class="divider"></li>
{% for id, name in session['projects'] %}
{% if id != g.project.id %}
@@ -81,7 +81,7 @@
</div>
{% endblock %}
{% block footer %}
-<div class="footer">
+<div id="footer">
<p><a href="https://github.com/ametaireau/budget-manager">This is a free software</a>, you can contribute and improve it!</p>
</div>
{% endblock %}