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