Files
PyRIGS/assets/templates/partials/render_field.html
FreneticScribbler e591ebe05a Show purchase and collection details side by side
Not sure if I like this or not. Maybe collection should start collapsed, too.
2019-10-02 19:38:05 +01:00

17 lines
570 B
HTML

{% load widget_tweaks %}
<!---TODO: Assign form-control class in here--->
<div class="form-group">
<label for="{{ field.id_for_label }}">{{ label|default:field.label }}</label>
{% if css %}
{% render_field field|add_class:css %}
{% elif disable_if_filled and field.value %}
{% render_field field|attr:'disabled' %}
{% elif css and disable_if_filled %}
{% render_field field|add_class:css|attr:'disabled' %}
{% else %}
{{ field }}
{% endif %}
<span class="helper-text" data-error="{{ field.errors.text }}"></span>
</div>