37 lines
822 B
HTML
37 lines
822 B
HTML
{% extends 'default/templates/form/field/field.html' %}
|
|
|
|
{% block field %}
|
|
<input
|
|
{% if not content.id is none %}
|
|
id="{{ content.id }}"
|
|
{% endif %}
|
|
{% if not content.valid %}
|
|
class="invalid"
|
|
{% endif %}
|
|
type="{{ content.input_type }}"
|
|
|
|
{% if content.group %}
|
|
name="{{ content.group.name }}"
|
|
value="{{ content.value }}"
|
|
{% else %}
|
|
name="{{ content.name_qualified }}"
|
|
value="1"
|
|
{% endif %}
|
|
|
|
{% if content.checked %}
|
|
checked
|
|
{% endif %}
|
|
/>
|
|
{% endblock %}
|
|
|
|
{% block root %}
|
|
<div class="{{ content.css_classes }}">
|
|
|
|
{{ self.field() }}
|
|
{{ self.label() }}
|
|
{{ self.help() }}
|
|
{{ self.errors() }}
|
|
|
|
</div>
|
|
{% endblock %}
|