2024-04-22 21:29:28 +00:00
|
|
|
{% extends 'default/templates/form/field/field.html' %}
|
2024-04-12 19:22:00 +00:00
|
|
|
|
|
|
|
{% block field %}
|
2024-04-12 19:22:00 +00:00
|
|
|
<input
|
2024-04-12 19:22:00 +00:00
|
|
|
{% if not content.id is none %}
|
|
|
|
id="{{ content.id }}"
|
|
|
|
{% endif %}
|
|
|
|
{% if not content.valid %}
|
|
|
|
class="invalid"
|
|
|
|
{% endif %}
|
2024-04-12 19:22:00 +00:00
|
|
|
type="{{ content.input_type }}"
|
2024-05-05 20:10:41 +00:00
|
|
|
|
|
|
|
{% if content.group %}
|
|
|
|
name="{{ content.group.name }}"
|
|
|
|
value="{{ content.value }}"
|
|
|
|
{% else %}
|
|
|
|
name="{{ content.name_qualified }}"
|
|
|
|
value="1"
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if content.checked %}
|
2024-04-12 19:22:00 +00:00
|
|
|
checked
|
|
|
|
{% endif %}
|
|
|
|
/>
|
2024-04-12 19:22:00 +00:00
|
|
|
{% endblock %}
|
2024-06-11 14:38:51 +00:00
|
|
|
|
|
|
|
{% block root %}
|
|
|
|
<div class="{{ content.css_classes }}">
|
|
|
|
|
|
|
|
{{ self.field() }}
|
|
|
|
{{ self.label() }}
|
|
|
|
{{ self.help() }}
|
|
|
|
{{ self.errors() }}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|