14 lines
501 B
Twig
14 lines
501 B
Twig
|
{% extends "forms/field.html.twig" %}
|
||
|
{% set scope = field.nest_id ? scope ~ field.name ~ '.' : scope %}
|
||
|
|
||
|
{% block field %}
|
||
|
<fieldset {% if field.id is defined %}id="{{ field.id }}"{% endif %} {% if field.classes is defined %}class="{{ field.classes }}" {% endif %}>
|
||
|
{% if field.legend %}
|
||
|
<legend>{{ field.legend|t }}</legend>
|
||
|
{% endif %}
|
||
|
|
||
|
{% if field.fields %}
|
||
|
{% include 'forms/default/fields.html.twig' with {name: field.name, fields: field.fields} %}
|
||
|
{% endif %}
|
||
|
</fieldset>
|
||
|
{% endblock %}
|