2024-06-11 14:38:51 +00:00
|
|
|
{% block root %}
|
|
|
|
<div class="{{ content.css_classes }}">
|
2024-04-12 19:22:00 +00:00
|
|
|
|
2024-06-11 14:38:51 +00:00
|
|
|
{% block label %}
|
|
|
|
{% if content.label %}
|
|
|
|
<label {% if content.id %}for="{{ content.id }}"{% endif %}>{{ content.label }}</label>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
2024-04-12 19:22:00 +00:00
|
|
|
|
2024-10-29 11:19:03 +00:00
|
|
|
{% block help %}
|
|
|
|
{% if content.help %}
|
|
|
|
|
|
|
|
<div id="{{ content.id }}-help-wrapper" class="field-help-wrapper">
|
|
|
|
<input id="{{ content.id }}-help-toggle" class="toggle-input" type="checkbox" />
|
|
|
|
<label for="{{ content.id }}-help-toggle" class="toggle-label" title="Show help">?</label>
|
|
|
|
<div id="{{ content.id }}-help" class="field-help">
|
|
|
|
{{ content.help.render() }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
|
2024-06-11 14:38:51 +00:00
|
|
|
{% block field %}
|
|
|
|
<input
|
|
|
|
{% if content.id %}
|
|
|
|
id="{{ content.id }}"
|
|
|
|
{% endif %}
|
|
|
|
{% if not content.valid %}
|
|
|
|
class="invalid"
|
|
|
|
{% endif %}
|
|
|
|
type="{{ content.input_type }}"
|
|
|
|
name="{{ content.name_qualified }}"
|
|
|
|
{% if not content.value is none %}
|
2024-07-27 01:05:56 +00:00
|
|
|
value="{{ content.html_value }}"
|
2024-06-11 14:38:51 +00:00
|
|
|
{% endif %}
|
2024-10-14 14:54:17 +00:00
|
|
|
|
|
|
|
{% block field_extra %}{% endblock %}
|
|
|
|
|
2024-06-11 14:38:51 +00:00
|
|
|
/>
|
|
|
|
{% endblock %}
|
2024-04-12 19:22:00 +00:00
|
|
|
|
2024-06-11 14:38:51 +00:00
|
|
|
{% block errors %}
|
|
|
|
{% if content.errors|length %}
|
|
|
|
<ul class="form-field-errors">
|
|
|
|
{% for error in content.errors %}
|
|
|
|
<li class="error">{{ error }}</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2024-04-12 19:22:00 +00:00
|
|
|
{% endif %}
|
2024-06-11 14:38:51 +00:00
|
|
|
{% endblock %}
|
2024-04-29 16:16:00 +00:00
|
|
|
|
2024-06-11 14:38:51 +00:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|