{% extends QbaBitLayoutToExtend("@QbaBitCore/Form/edit.html.twig", 'backend') %} {% block form_inner %} {% form_theme form '@QbaBitNomencladoresLevel/Form/attributes_value.html.twig' %} {% set fake = QbaBitAssetsAddCssSource(asset('bundles/qbabitforms/color_picker/bootstrap-colorpicker/css/bootstrap-colorpicker.css'), true) %} {% set fake = QbaBitAssetsAddScriptSource(asset('bundles/qbabitforms/color_picker/bootstrap-colorpicker/js/bootstrap-colorpicker.js'), true) %} {% set sectionName = app.request.get('slugSelected') == "property_types" ? 'Subtipos' : 'values' %} {% set contentType = form.vars.value.tipo %} {% if contentType == 'attribute' %} {% set sectionName = 'ecom_attribute_values' %} {% endif %}
{% if form.vars.data.tipo == 'parallax' or form.vars.data.tipo == 'property_types' %}
{{ form_row(form.image_file, { attr: {'class':'form-control'} }) }}
{% endif %}
{{ form_row(form.nombre, {'attr':{'class': 'form-control incfnt'} }) }}
{{ form_widget(form.activo, { attr: {'class':'minimal'} }) }}
{% if form.vars.data.tipo == 'property_types' %}
{{ form_row(form.modalidad, {attr: { class: "form-control" } }) }}
{{ form_row(form.caracteristica, {attr: { class: "form-control" } }) }}
{% endif %} {% if form.childs is defined %}
{{ form_row(form.childs, {'attr':{'class': 'form-control', 'data-toggle': 'tooltip', 'data-placement': 'top', 'title': 'help_format' | trans({}, 'currency') } }) }}
{% endif %}
{% endblock %}