diff options
| author | Arnaud Bos <arnaud.tlse@gmail.com> | 2011-09-14 01:16:25 +0200 |
|---|---|---|
| committer | Arnaud Bos <arnaud.tlse@gmail.com> | 2011-09-14 01:16:25 +0200 |
| commit | 89e1bbe134bc770d4a3f999a1329bd07522b07cf (patch) | |
| tree | 818f77883e6c756bcd1e797af7868c40cba97e00 /budget/templates | |
| parent | 88cd2f86751621d73574ac56a9d6c4bedcbdd3d5 (diff) | |
| download | ihatemoney-mirror-89e1bbe134bc770d4a3f999a1329bd07522b07cf.zip ihatemoney-mirror-89e1bbe134bc770d4a3f999a1329bd07522b07cf.tar.gz ihatemoney-mirror-89e1bbe134bc770d4a3f999a1329bd07522b07cf.tar.bz2 | |
Make the identifier clearer to the end-user.
- Send an email to the user with the summary of the created project
containing a reminder of the identifier, password and a link.
- Add flash message with the identifier in the /invite page/
- Add a small note containing the identifier in the upper right corner
of the project main page.
Diffstat (limited to 'budget/templates')
| -rw-r--r-- | budget/templates/forms.html | 8 | ||||
| -rw-r--r-- | budget/templates/invitation_mail | 6 | ||||
| -rw-r--r-- | budget/templates/layout.html | 2 | ||||
| -rw-r--r-- | budget/templates/list_bills.html | 2 | ||||
| -rw-r--r-- | budget/templates/reminder_mail | 9 |
5 files changed, 19 insertions, 8 deletions
diff --git a/budget/templates/forms.html b/budget/templates/forms.html index ba915e8..f516e40 100644 --- a/budget/templates/forms.html +++ b/budget/templates/forms.html @@ -19,10 +19,10 @@ {% 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") }}" class="btn">Back Home</a> + <a href="{{ url_for(".home") }}">Go back Home</a> {% endif %} - <button type="submit" class="btn primary">{{ field.name }}</button> {% if cancel %} <button id="cancel-form" type="reset" class="btn">Cancel</button> {% endif %} @@ -36,7 +36,7 @@ {{ input(form.id) }} {{ input(form.password) }} {% if not home %} - {{ submit(form.submit) }} + {{ submit(form.submit, home=True) }} {% endif %} {% endmacro %} @@ -84,7 +84,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 afdda85..c45a193 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) |
