aboutsummaryrefslogtreecommitdiff
path: root/wqflask/flask_security/templates/security/_macros.html
blob: 8575f3dbe31b2b02bdf9110bdf02a55ce6b08b33 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{% macro render_field_with_errors(field) %}
  <p>
    {{ field.label }} {{ field(**kwargs)|safe }}
    {% if field.errors %}
      <ul>
      {% for error in field.errors %}
        <li>{{ error }}</li>
      {% endfor %}
      </ul>
    {% endif %}
  </p>
{% endmacro %}

{% macro render_field(field) %}
  <p>{{ field(**kwargs)|safe }}</p>
{% endmacro %}