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 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'ihatemoney/templates/forms.html') 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 %} -- cgit v1.1