From 3d7ab656e106f060dec9fabb76f900389ed0c760 Mon Sep 17 00:00:00 2001 From: Brice Maron Date: Tue, 20 Aug 2019 23:34:30 +0200 Subject: Rework invite people to project --- ihatemoney/templates/forms.html | 13 +++--- ihatemoney/templates/list_bills.html | 73 +++++++++++++++++++--------------- ihatemoney/templates/send_invites.html | 26 ++++++++---- 3 files changed, 66 insertions(+), 46 deletions(-) (limited to 'ihatemoney/templates') diff --git a/ihatemoney/templates/forms.html b/ihatemoney/templates/forms.html index 57f9440..a64e205 100644 --- a/ihatemoney/templates/forms.html +++ b/ihatemoney/templates/forms.html @@ -1,4 +1,4 @@ -{% macro input(field, multiple=False, class='form-control', inline=False) -%} +{% macro input(field, multiple=False, class='form-control', inline=False, placeholder='') -%}
{% if field.type != "SubmitField" %} {% if inline %} @@ -9,9 +9,9 @@ {% endif %}
{% if multiple == True %} - {{ field(multiple=True, class=class) }} + {{ field(multiple=True, class=class, placeholder=placeholder) }} {% else %} - {{ field(class=class) | safe }} + {{ field(class=class, placeholder=placeholder) | safe }} {% endif %} {% if field.description %}

{{ field.description }}

@@ -119,8 +119,8 @@ {{ form.hidden_tag() }} {% include "display_errors.html" %}
- - {{ form.name(placeholder=_("Type user name here"), class="form-control") }} + + {{ form.name(placeholder=_("Add participant"), class="form-control") }}
@@ -143,10 +143,9 @@ {% macro invites(form) %} {{ form.hidden_tag() }} - {{ input(form.emails) }} + {{ input(form.emails, placeholder=_('john.doe@example.com, mary.moe@site.com')) }}
- {{ _("No, thanks") }}
{% endmacro %} diff --git a/ihatemoney/templates/list_bills.html b/ihatemoney/templates/list_bills.html index 6ccf0a0..367d2ee 100644 --- a/ihatemoney/templates/list_bills.html +++ b/ihatemoney/templates/list_bills.html @@ -45,43 +45,52 @@ {% endblock %} {% block sidebar %} -
- {{ forms.add_member(member_form) }} -
+