{% set mypath = 'office_brain_cmsbundle_thirdpartysettingadmin_processconfigurationsubmit' %}

{{ tps_object.name|trans }}

{{ form_start(form, {'action' : path(mypath, {'id' : form.vars.id}), 'attr' : { 'novalidate' : '', 'role' : 'form'}}) }} {% set sandbox_set=0 %} {% set production_set=0 %} {% for key, val in form %} {% set eg_tip= "ex_" ~ form[key].vars.label %} {% if form[key].vars.id != form.countryId.vars.id and form[key].vars.attr %} {% if form[key].vars.attr.group=="sandbox" and sandbox_set == 0 %}

{{ 'configuration.form.sandbox' | trans }}

{% set sandbox_set=1 %} {% endif %} {% if form[key].vars.block_prefixes.1 == "checkbox" %}
{#div class row end here and new div for enable checkbox and copy section start #}
{{ form_errors(form[key]) }}
{% elseif form[key].vars.block_prefixes.1 == "choice" %} {% if production_set == 0 %}
{#div class row start here #}

{{ 'configuration.form.production' | trans }}

    {% for child in form[key] %} {% if form[key].vars.value== child.vars.value %} {% set active="active"%} {% else %} {% set active=""%} {% endif %}
  • {% endfor %}
{{ form_errors(form[key]) }}
{% set production_set=1 %} {% else %}
{{ form_label(form[key]) }} *{{ eg_tip | trans }} {{ form_widget(form[key], { 'attr': {'class': 'form-control', 'placeholder': ''} }) }} {{ form_errors(form[key]) }}
{% endif %} {% else %}
{{ form_label(form[key]) }} *{{ eg_tip | trans }} {{ form_widget(form[key], { 'attr': {'class': 'form-control', 'placeholder': ''} }) }} {{ form_errors(form[key]) }}
{% endif %} {% endif %} {% endfor %}
{# div for enable check box and copy section end #}
{{ form_rest(form, {'attr' :{'class' :'hidden'}}) }} {{ form_end(form) }}