- 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.
47 lines
1.3 KiB
Twig
47 lines
1.3 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">description</i> {{ layoutTitle }}
|
|
</h3>
|
|
|
|
<div class="card-body panel-body card-block px-sm-4 px-3 pt-4 pb-3">
|
|
<div class="form-wrapper card-text">
|
|
<p class="h3 mb-3">
|
|
{{ form_label(form, null, {
|
|
'label_attr': {
|
|
'class': 'p-0'
|
|
}
|
|
}) }}
|
|
</p>
|
|
|
|
{{ form_rest(form) }}
|
|
</div>
|
|
</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 %}
|
|
|
|
{% block javascripts %}
|
|
{{ parent() }}
|
|
|
|
<script type="text/javascript" src="{{ asset('js/admin/consents.js', 'InPostIzi') }}">
|
|
</script>
|
|
{% endblock %}
|