From 87ea04505924a0869e3c806cdf4de3defc1c034c Mon Sep 17 00:00:00 2001 From: Alexis Metaireau Date: Sat, 30 Jul 2011 15:46:53 +0200 Subject: Invite people after project creation. Uses the flask-mail extension. --- budget/templates/display_errors.html | 5 +++++ budget/templates/invitation_mail | 10 ++++++++++ budget/templates/send_invites.html | 14 ++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 budget/templates/display_errors.html create mode 100644 budget/templates/invitation_mail create mode 100644 budget/templates/send_invites.html (limited to 'budget/templates') diff --git a/budget/templates/display_errors.html b/budget/templates/display_errors.html new file mode 100644 index 0000000..15039a2 --- /dev/null +++ b/budget/templates/display_errors.html @@ -0,0 +1,5 @@ +{% for errors in form.errors.values() %} + {% for error in errors %} +

{{error}}

+ {% endfor %} +{% endfor %} diff --git a/budget/templates/invitation_mail b/budget/templates/invitation_mail new file mode 100644 index 0000000..53991ed --- /dev/null +++ b/budget/templates/invitation_mail @@ -0,0 +1,10 @@ +Hi, + +Someone using the email adress {{ email }} invited you to share your expenses for {{ project.name }} on our application. + +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: {{ SITE_URL }}{{ url_for("list_bills", project_id=project.id) }}, the password is "{{ project.password }}". + +Enjoy, +Some weird guys diff --git a/budget/templates/send_invites.html b/budget/templates/send_invites.html new file mode 100644 index 0000000..f618803 --- /dev/null +++ b/budget/templates/send_invites.html @@ -0,0 +1,14 @@ +{% extends "layout.html" %} +{% block content %} +

Invite people to join this project

+

Specify a (coma separated) list of email adresses you want to notify about the +creation of this budget management project and we will send them an email for you.

+

If you prefer, you can skip this step and notify them yourself

+ +{% include "display_errors.html" %} +
+ {{ form.hidden_tag() }} +

{{ form.emails.label }}
{{ form.emails }}

+

{{ form.submit }} No, thanks

+
+{% endblock %} -- cgit v1.1