Files
website-v2/templates/includes/_form_input.html
Greg Newman a0c1f7958f 🎨 styles the news forms
* Adds styles for the interim news submission view
* Refactors the form input include
* Styles the news creation forms
* More work on the news list.  Linking to the filtered list from the icons next to each news item.
2023-07-05 14:46:09 -04:00

18 lines
715 B
HTML

{% load static %}
{% load widget_tweaks %}
{% if field.errors %}
{% for error in field.errors %}
<div class="py-1 px-3 text-white bg-red-600">
{{ error }}
</div>
{% endfor %}
{% endif %}
{% if field.field.widget.input_type == "file" %}
{% render_field field class="text-sm text-grey-500 !border-0 file:mr-5 file:py-2 file:px-6 file:rounded-lg file:border-0 file:text-sm file:font-medium file:bg-white file:text-slate hover:file:cursor-pointer hover:file:bg-orange hover:file:text-white" placeholder=field.label %}
{% 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 %}