aboutsummaryrefslogtreecommitdiff
path: root/budget/templates
diff options
context:
space:
mode:
Diffstat (limited to 'budget/templates')
-rw-r--r--budget/templates/forms.html15
-rw-r--r--budget/templates/invitation_mail6
-rw-r--r--budget/templates/layout.html2
-rw-r--r--budget/templates/list_bills.html2
-rw-r--r--budget/templates/reminder_mail9
5 files changed, 25 insertions, 9 deletions
diff --git a/budget/templates/forms.html b/budget/templates/forms.html
index f32e9fd..80a0d17 100644
--- a/budget/templates/forms.html
+++ b/budget/templates/forms.html
@@ -17,9 +17,12 @@
</div> <!-- /clearfix -->
{% endmacro %}
-{% macro submit(field, cancel=False) -%}
+{% macro submit(field, cancel=False, home=False) -%}
<div class="actions">
<button type="submit" class="btn primary">{{ field.name }}</button>
+ {% if home %}
+ <a href="{{ url_for(".home") }}">Go back Home</a>
+ {% endif %}
{% if cancel %}
<button id="cancel-form" type="reset" class="btn">Cancel</button>
{% endif %}
@@ -33,7 +36,7 @@
{{ input(form.id) }}
{{ input(form.password) }}
{% if not home %}
- {{ submit(form.submit) }}
+ {{ submit(form.submit, home=True) }}
{% endif %}
{% endmacro %}
@@ -42,12 +45,14 @@
{% include "display_errors.html" %}
{{ form.hidden_tag() }}
- {{ input(form.name) }}
+ {% if not home %}
{{ input(form.id) }}
+ {% endif %}
+ {{ input(form.name) }}
{{ input(form.password) }}
{{ input(form.contact_email) }}
{% if not home %}
- {{ submit(form.submit) }}
+ {{ submit(form.submit, home=True) }}
{% endif %}
{% endmacro %}
@@ -90,7 +95,7 @@
{{ form.hidden_tag() }}
{{ input(form.emails) }}
<div class="actions">
- <button class="btn">Send the invitations</button>
+ <button class="btn primary">Send the invitations</button>
<a href="{{ url_for(".list_bills") }}">No, thanks</a>
</div>
{% endmacro %}
diff --git a/budget/templates/invitation_mail b/budget/templates/invitation_mail
index f041db0..4f5bbf0 100644
--- a/budget/templates/invitation_mail
+++ b/budget/templates/invitation_mail
@@ -1,10 +1,10 @@
Hi,
-Someone using the email adress {{ g.project.contact_email }} invited you to share your expenses for "{{ g.project.name }}".
+Someone using the email address {{ g.project.contact_email }} invited you to share your expenses for "{{ g.project.name }}".
It's as simple as saying what did you paid for, for who, and how much did it cost you, we are caring about the rest.
-You can access it here: {{ config['SITE_URL'] }}{{ url_for(".list_bills") }}, the password is "{{ g.project.password }}".
+You can access it here: {{ config['SITE_URL'] }}{{ url_for(".list_bills") }}, the private code is "{{ g.project.password }}".
Enjoy,
-Some weird guys
+Some weird guys (with beards)
diff --git a/budget/templates/layout.html b/budget/templates/layout.html
index 8858150..2b7c11e 100644
--- a/budget/templates/layout.html
+++ b/budget/templates/layout.html
@@ -12,7 +12,7 @@
$(".flash").fadeOut("slow", function () {
$(".flash").remove();
});
- }, 2000);
+ }, 4000);
$("body").bind("click", function(e) {
$("ul.menu-dropdown").hide();
$('a.menu').parent("li").removeClass("open").children("ul.menu-dropdown").hide();
diff --git a/budget/templates/list_bills.html b/budget/templates/list_bills.html
index 545de6a..63a8916 100644
--- a/budget/templates/list_bills.html
+++ b/budget/templates/list_bills.html
@@ -60,6 +60,8 @@
{% endblock %}
{% block content %}
+<div class="identifier">The project identifier is <a href="{{ url_for(".list_bills") }}">{{ g.project.id }}</a>, remember it or add this page to you bookmarks!</div>
+<br /><br />
<a id="new-bill" href="{{ url_for(".add_bill") }}" class="primary">Add a new bill</a>
<form id="bill-form" action="{{ url_for(".add_bill") }}" method="post" style="display: none">
<a id="hide-bill-form" href="#">hide this form</a>
diff --git a/budget/templates/reminder_mail b/budget/templates/reminder_mail
new file mode 100644
index 0000000..b2e3a65
--- /dev/null
+++ b/budget/templates/reminder_mail
@@ -0,0 +1,9 @@
+Hi,
+
+You have just (or someone else using your email address) created the project "{{ g.project.name }}" to share your expenses.
+
+You can access it here: {{ config['SITE_URL'] }}{{ url_for(".list_bills") }} (the identifier is {{ g.project.id }}),
+and the private code is "{{ g.project.password }}".
+
+Enjoy,
+Some weird guys (with beards)