{% extends 'includes/block/block.html.twig' %}
{% block blockStyle %}
{{ encore_entry_link_tags('orderStyle') }}
{% endblock %}
{% set id = '0' %}
{% set title = label %}
{% set block = 'order' %}
{% set submit = orderForm.submit is defined %}
{% block body %}
{% if submit %}
{{ form_start(orderForm) }}
{% endif %}
<div class="packages">
{% for package in orderForm.package %}
<div class="package box {% if package.vars.value == selectedPack %} checked {% endif %}"
id="package-{{ package.vars.value }}">
<div class="content content-package">
<div class="text-center m-2 mt-0">
<div class="icon"><img alt="package"/></div>
<div class="name"></div>
<div class="price"></div>
{{ form_widget(package) }}
</div>
<div class="options"></div>
</div>
</div>
{% endfor %}
</div>
{% if orderError is defined and orderError is not empty%}
<div class="empty">
{{ orderError.message }}
</div>
{% endif %}
{% if submit %}
{{ include('includes/form/inputs/submit.html.twig', {'input': orderForm.submit}) }}
{{ form_end(orderForm) }}
{% endif %}
{% endblock %}
{% block javascript %}
{{ encore_entry_script_tags('order') }}
{% endblock %}