diff --git a/canaille/forms.py b/canaille/forms.py
index 1a7f9d31..14cf05f3 100644
--- a/canaille/forms.py
+++ b/canaille/forms.py
@@ -113,6 +113,7 @@ PROFILE_FORM_FIELDS = dict(
mail=wtforms.EmailField(
_("Email address"),
validators=[wtforms.validators.DataRequired(), wtforms.validators.Email()],
+ description=_("This email will be used as a recovery address to reset the password if needed"),
render_kw={
"placeholder": _("jane@doe.com"),
"spellcheck": "false",
diff --git a/canaille/templates/fomanticui.html b/canaille/templates/fomanticui.html
index 3b2156d0..b9e21cdd 100644
--- a/canaille/templates/fomanticui.html
+++ b/canaille/templates/fomanticui.html
@@ -6,6 +6,7 @@
noindicator=false,
indicator_icon=none,
indicator_text=none,
+ suffix_text=none,
display=true
) -%}
@@ -19,13 +20,20 @@
{% if (field.type != 'HiddenField' and field.type !='CSRFTokenField') and label_visible %}
{{ field.label() }}
+ {% if field.description %}
+
@@ -39,6 +47,12 @@
{{ field(class_="ui fluid dropdown multiple", **kwargs) }}
{% endif %}
+ {% if suffix_text %}
+
+ {{ suffix_text }}{% if corner_indicator %} {% endif %}
+
+ {% endif %}
+
{% if not noindicator %}
{% if indicator_icon %}
diff --git a/canaille/templates/invite.html b/canaille/templates/invite.html
index 4ba83723..93354187 100644
--- a/canaille/templates/invite.html
+++ b/canaille/templates/invite.html
@@ -94,10 +94,18 @@
role="form"
class="ui form"
>
- {{ form.hidden_tag() if form.hidden_tag }}
- {{ fui.render_field(form.uid, icon="user") }}
- {{ fui.render_field(form.mail, icon="mail") }}
- {{ fui.render_field(form.groups, icon="users") }}
+ {{ form.hidden_tag() if form.hidden_tag }}
+ {% block uid_field scoped %}
+ {{ fui.render_field(form.uid, icon="user") }}
+ {% endblock %}
+
+ {% block mail_field scoped %}
+ {{ fui.render_field(form.mail, icon="mail") }}
+ {% endblock %}
+
+ {% block groups_field scoped %}
+ {{ fui.render_field(form.groups, icon="users") }}
+ {% endblock %}