{% extends 'AppBundle:Admin:CRUD\\Common\\List\\list.html.twig' %} {% block javascripts %} {{ parent() }} {% javascripts filter='?uglifyjs2' '@kepler_offer_list_js' '@app_offer_js' %} {% endjavascripts %} {% endblock javascripts %} {% block tab_menu_result_help %} {% if admin is defined %} {% set published = 'total.published'|trans({}, admin.translationdomain) ~ ' : ' ~ result.totalPublished.total ~ '
' %} {% set publishable = 'total.publishable'|trans({}, admin.translationdomain) ~ ' : ' ~ result.totalPublishable.total ~ '
' %} {% set notPublishable = 'total.not_publishable'|trans({}, admin.translationdomain) ~ ' : ' ~ result.totalNotPublishable.total ~ '
' %} {% set mandatoryOfferFieldsTitle = 'total.mandatory_offer_fields'|trans({}, admin.translationdomain) ~ '
' %} {% set mandatoryMarketPlaceFieldsTitle = 'total.mandatory_marketplace_fields'|trans({}, admin.translationdomain) ~ '
' %} {% set mandatoryOfferFields = [ 'list.label_offer_mandatory_state', 'list.label_brand', 'list.label_model', 'list.label_version', 'list.label_date_of_distribution', 'list.label_energy', 'list.label_color', 'list.label_gearbox', 'list.label_bodywork', 'list.label_price_public', ] %} {% set mandatoryMarketPlaceFields = [ 'list.label_offer_mandatory_state', 'list.label_brand', 'list.label_model', 'list.label_version', 'list.label_date_of_distribution', 'list.label_energy', 'list.label_color', 'list.label_gearbox', 'list.label_bodywork', 'list.label_price_seller_without_tax', ] %} {% set htmlSpan = '' %} {% set htmlSpan = htmlSpan ~ published ~ publishable ~ notPublishable %} {% set htmlSpan = htmlSpan ~ '
' %} {% set htmlSpan = htmlSpan ~ '
' ~ mandatoryOfferFieldsTitle %} {% set htmlSpan = htmlSpan ~ '
    ' %} {% for field in mandatoryOfferFields %} {% set htmlSpan = htmlSpan ~ '
  • ' ~ field|trans({}, 'VehicleTrans') ~ '
  • ' %} {% endfor %} {% set htmlSpan = htmlSpan ~ '
' %} {% set htmlSpan = htmlSpan ~ '
' ~ mandatoryMarketPlaceFieldsTitle %} {% set htmlSpan = htmlSpan ~ '
    ' %} {% for field in mandatoryMarketPlaceFields %} {% set htmlSpan = htmlSpan ~ '
  • ' ~ field|trans({}, 'VehicleTrans') ~ '
  • ' %} {% endfor %} {% set htmlSpan = htmlSpan ~ '
' %} {% set htmlSpan = htmlSpan ~ '
' %} {% set htmlSpan = htmlSpan ~ '
' %} {% endif %} {% endblock tab_menu_result_help %} {% block actions_custom %} {% include 'AppBundle:Admin:CRUD\\Common\\List\\Button\\link_offer.html.twig' with {'topList': true,'display':'button' } %} {% include 'AppBundle:Admin:CRUD\\Common\\List\\Button\\total_offer.html.twig' with {'topList': true,'display':'button' } %} {% include 'AppBundle:Admin:CRUD\\Common\\List\\Button\\link_ubiflow_stats.html.twig' with {'topList': true,'display':'button' } %} {% endblock actions_custom %} {% block list_table %} {{ parent() }} {% include 'AppBundle:Admin:CRUD\\Vehicle\\Offer\\List\\Modal\\modal_link_to_ubiflow.html.twig' %} {% include 'AppBundle:Admin:CRUD\\PopUp\\list_vehicle_offer.html.twig' %} {% endblock list_table %}