21 lines
516 B
Twig
21 lines
516 B
Twig
{% extends "forms/field.html.twig" %}
|
|
|
|
{% block field %}
|
|
{% set value = evaluate(field.condition) %}
|
|
{% set value = value == 'true' ? 1 : value %}
|
|
{% set value = value == 'false' ? 0 : value %}
|
|
|
|
{% if value %}
|
|
{% if field.classes %}
|
|
<div class="{{ field.classes }}">
|
|
{% endif %}
|
|
|
|
{% if field.fields %}
|
|
{% include 'forms/default/fields.html.twig' with {name: field.name, fields: field.fields} %}
|
|
{% endif %}
|
|
|
|
{% if field.classes %}
|
|
</div>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endblock %} |