- Created a new template for the cart rule form with custom label, switch, and choice widgets. - Implemented the InPost Pay block in the order details template for displaying delivery method, APM, and VAT invoice request. - Added legacy support for the order details template to maintain compatibility with older PrestaShop versions.
56 lines
2.0 KiB
Twig
56 lines
2.0 KiB
Twig
{% extends '@Modules/inpostizi/views/templates/admin/layout/basic-layout.html.twig' %}
|
|
|
|
{% form_theme form '@Modules/inpostizi/views/templates/admin/config/form_theme.html.twig' %}
|
|
|
|
{% block content %}
|
|
<div class="row justify-content-center">
|
|
<div class="col-xs-12 col-12">
|
|
|
|
<div class="card">
|
|
{{ form_start(form) }}
|
|
<h3 class="card-header">
|
|
<i class="material-icons">settings</i> {{ layoutTitle }}
|
|
</h3>
|
|
|
|
<div class="card-body panel-body form-wrapper px-sm-4 px-3 pt-4 pb-3">
|
|
{{ form_errors(form) }}
|
|
|
|
{% include '@Modules/inpostizi/views/templates/admin/config/general/main.html.twig' %}
|
|
</div>
|
|
|
|
<div class="card-body panel-body form-wrapper px-sm-4 px-3 pt-4 pb-3">
|
|
{% include '@Modules/inpostizi/views/templates/admin/config/general/order_statuses.html.twig' %}
|
|
</div>
|
|
|
|
<div class="card-body panel-body form-wrapper px-sm-4 px-3 pt-4 pb-3">
|
|
{% include '@Modules/inpostizi/views/templates/admin/config/general/order_message.html.twig' %}
|
|
</div>
|
|
|
|
<div class="card-body panel-body form-wrapper px-sm-4 px-3 pt-4 pb-3">
|
|
{% include '@Modules/inpostizi/views/templates/admin/config/general/product_configuration.html.twig' %}
|
|
</div>
|
|
|
|
<div class="card-body panel-body form-wrapper px-sm-4 px-3 pt-4 pb-3">
|
|
{% include '@Modules/inpostizi/views/templates/admin/config/general/products.html.twig' %}
|
|
|
|
<div class="row mt-3">
|
|
<div class="col-xl-3 col-md-4 mt-2">
|
|
{{ form_row(form.defaultPromoDetailsPageId) }}
|
|
</div>
|
|
</div>
|
|
|
|
{{ form_rest(form) }}
|
|
</div>
|
|
|
|
<div class="card-footer clearfix">
|
|
<a href="{{ path('admin_module_manage') }}" class="btn btn-outline-secondary">{{ 'Back'|trans }}</a>
|
|
|
|
<button class="btn btn-primary float-right">{{ 'Save'|trans({}, 'Admin.Actions') }}</button>
|
|
</div>
|
|
{{ form_end(form) }}
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|