{% import 'shared/componnents/_macros/_glyphicons.html.twig' as glyphicons %} {% import 'shared/componnents/_macros/_forms.html.twig' as forms %} {% set data = data ?? null %} {% set entity_name = entity_name ?? null %} {% set response_status = attribute(data, 'status') is defined ? data.status|show_choices : null %} {% set response_published = attribute(data, 'published') is defined ? data.published|show_choices : null %} {% set response_top_destination = attribute(data, 'topDestination') is defined ? data.topDestination|show_choices : null %} {% set response_main = attribute(data, 'main') is defined ? data.main|show_choices : null %} {% set response_percent = attribute(data, 'percent') is defined ? data.percent|show_choices : null %} {% set response_percent_price = attribute(data, 'percentPrice') is defined ? data.percentPrice|show_choices : null %} {% set response_percent_price_supplement = attribute(data, 'percentPriceSupplement') is defined ? data.percentPriceSupplement|show_choices : null %} {% set response_adult = attribute(data, 'adult') is defined ? data.adult|show_choices : null %} {% set response_child = attribute(data, 'child') is defined ? data.child|show_choices : null %} {% set response_early_booking = attribute(data, 'earlyBooking') is defined ? data.earlyBooking|show_choices : null %} {% set response_pay_commission = attribute(data, 'payCommission') is defined ? data.payCommission|show_choices : null %} {% set response_apply_to_child = attribute(data, 'applyToChild') is defined ? data.applyToChild|show_choices : null %} {% set response_mandatory_supplement = attribute(data, 'mandatorySupplement') is defined ? data.mandatorySupplement|show_choices : null %} {% if class_name(data, entity_name) %} {% if response_status %} {% set status = glyphicons.label_choices(path('app_app_update_choices'), entity_name, data.id, 'status', response_status['label'], response_status['text']) %} {% endif %} {% if response_published %} {% set published = glyphicons.label_choices(path('app_app_update_choices'), entity_name, data.id, 'published', response_published['label'], response_published['text']) %} {% endif %} {% if response_top_destination %} {% set topDestination = glyphicons.label_choices(path('app_app_update_choices'), entity_name, data.id, 'topDestination', response_top_destination['label'], response_top_destination['text']) %} {% endif %} {% if response_main %} {% set main = glyphicons.label_choices(path('app_app_update_choices'), entity_name, data.id, 'main', response_main['label'], response_main['text']) %} {% endif %} {% if response_percent %} {% set percent = glyphicons.label_choices(path('app_app_update_choices'), entity_name, data.id, 'percent', response_percent['label'], response_percent['text']) %} {% endif %} {% if response_percent_price %} {% set percent_price = glyphicons.label_choices(path('app_app_update_choices'), entity_name, data.id, 'percentPrice', response_percent_price['label'], response_percent_price['text']) %} {% endif %} {% if response_percent_price_supplement %} {% set percent_price_supplement = glyphicons.label_choices(path('app_app_update_choices'), entity_name, data.id, 'percentPriceSupplement', response_percent_price_supplement['label'], response_percent_price_supplement['text']) %} {% endif %} {% if response_adult %} {% set adult = glyphicons.label_choices(path('app_app_update_choices'), entity_name, data.id, 'adult', response_adult['label'], response_adult['text']) %} {% endif %} {% if response_child %} {% set child = glyphicons.label_choices(path('app_app_update_choices'), entity_name, data.id, 'child', response_child['label'], response_child['text']) %} {% endif %} {% if response_early_booking %} {% set early_booking = glyphicons.label_choices(path('app_app_update_choices'), entity_name, data.id, 'earlyBooking', response_early_booking['label'], response_early_booking['text']) %} {% endif %} {% if response_pay_commission %} {% set pay_commission = glyphicons.label_choices(path('app_app_update_choices'), entity_name, data.id, 'payCommission', response_pay_commission['label'], response_pay_commission['text']) %} {% endif %} {% if response_apply_to_child %} {% set apply_to_child = glyphicons.label_choices(path('app_app_update_choices'), entity_name, data.id, 'applyToChild', response_apply_to_child['label'], response_apply_to_child['text']) %} {% endif %} {% if response_mandatory_supplement %} {% set mandatory_supplement = glyphicons.label_choices(path('app_app_update_choices'), entity_name, data.id, 'mandatorySupplement', response_mandatory_supplement['label'], response_mandatory_supplement['text']) %} {% endif %} {% if (entity_name == 'SupplementType') or (entity_name == 'Pension') or (entity_name == 'Equipment') or (entity_name == 'Country') or (entity_name == 'Service') or (entity_name == 'City') or (entity_name == 'Location') or (entity_name == 'Hotel') or (entity_name == 'Supplement') or (entity_name == 'HotelPhoto') or (entity_name == 'HotelContract') or (entity_name == 'Promo') or (entity_name == 'Theme') or (entity_name == 'AgencyConfig') %}