mirror of
https://github.com/boostorg/website-v2.git
synced 2026-02-27 05:32:08 +00:00
20 lines
764 B
HTML
20 lines
764 B
HTML
{% load static %}
|
|
{% load widget_tweaks %}
|
|
|
|
{% if form.is_bound %}
|
|
{% if field.errors %}
|
|
{% render_field field class="w-full bg-white rounded border-gray-300 dark:text-white text-slate dark:border-slate dark:bg-charcoal" placeholder="{{ field.label }}" %}
|
|
|
|
{% for error in field.errors %}
|
|
<div class="text-white bg-red">
|
|
{{ error }}
|
|
</div>
|
|
{% endfor %}
|
|
|
|
{% else %}
|
|
{% render_field field class="w-full bg-white rounded border-gray-300 dark:text-white text-slate dark:border-slate dark:bg-charcoal" placeholder="{{ field.label }}" %}
|
|
{% endif %}
|
|
{% else %}
|
|
{% render_field field class="w-full bg-white rounded border-gray-300 dark:text-white text-slate dark:border-slate dark:bg-charcoal" placeholder=field.label %}
|
|
{% endif %}
|