pdnew/themes/default/templates/form/field/groupablefield.html

37 lines
822 B
HTML
Raw Permalink Normal View History

{% 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 %}