mirror of
https://github.com/boostorg/website-v2.git
synced 2026-02-27 17:42:08 +00:00
25 lines
839 B
HTML
25 lines
839 B
HTML
{% load i18n %}
|
|
{% load widget_tweaks %}
|
|
|
|
<div id="div_id_{{ field.html_name }}" class="form-group{% if field.errors %} has-error{% endif %}">
|
|
<div class="controls">
|
|
{% if field.label %}
|
|
<label class="control-label text-white block mb-3"
|
|
for="{{ field.auto_id }}"
|
|
>
|
|
{{ field.label }}
|
|
{% if not field.field.required %}
|
|
<span class="text-muted">{% trans "(optional)" %}</span>
|
|
{% endif %}
|
|
</label>
|
|
{% endif %}
|
|
{{ field|add_class:'form-control rounded text-gray-100 bg-charcoal border border-1 border-slate w-full' }}
|
|
{% if field.help_text %}
|
|
<p class="help-block text-muted"><small>{{ field.help_text }}</small></p>
|
|
{% endif %}
|
|
{% for error in field.errors %}
|
|
<p class="text-danger error">{{ error }}</p>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|