Files
website-v2/templates/includes/_form_input.html
Greg Newman 057c16bb9f 🎨 cleaning up some home page styles
First pass with rustywind is doing massive cleanup
2023-04-28 09:27:38 -04:00

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 %}