{% extends 'Shop/base.html.twig' %} {% block title %} {{ 'app.shop_owner.pages.payment_methods.head_title'|trans }} {% endblock %} {% block toolbar_actions %} {{ 'app.global.buttons.add'|trans }} {% endblock %} {% block component_body %} {% set paymentMethodNepting = constant('App\\Entity\\Shop\\PaymentMethodInterface::CODE_NEPTING_RETAIL_CENTER' ?? null) %} {% set paymentMethodTapToPay = constant('App\\Entity\\Shop\\PaymentMethodInterface::CODE_NEPTING_TAP_TO_PAY' ?? null) %} {% set kioskMethods = [paymentMethodNepting, paymentMethodTapToPay] %} {% set paymentMethodFree = constant('App\\Entity\\Shop\\PaymentMethodInterface::CODE_FREE' ?? null) %}
| {{ 'app.global.fields.status'|trans }} | {{ 'app.global.fields.image.label'|trans }} | {{ 'app.shop_owner.pages.modes.anonymous_authorized'|trans }} | {{ 'app.shop_owner.pages.modes.borne_authorized'|trans }} | {{ 'app.shop_owner.pages.payment_methods.title'|trans }} | {{ 'app.shop_owner.pages.modes.title'|trans }} | {{ 'app.global.list.creation_date'|trans }} | |
|---|---|---|---|---|---|---|---|
| {{ paymentMethod.enabled|enabled }} |
{% set image = getImage(payment_methods_images ~ paymentMethod.svg) %}
|
{% if paymentMethodFree != paymentMethod.payemntMenthodConfig.code %} {% if paymentMethodOffline == paymentMethod.payemntMenthodConfig.type %} {% endif %} {% endif %} | {% if paymentMethodFree != paymentMethod.payemntMenthodConfig.code %} {% if paymentMethodOffline == paymentMethod.payemntMenthodConfig.type or paymentMethod.payemntMenthodConfig.code in kioskMethods %} {% endif %} {% endif %} | {{ paymentMethod.payemntMenthodConfig.name |to_upper }} | {{ paymentMethod.shopModes|list_to_badges(shopModes) }} | {{ paymentMethod.createdAt|date('d/m/Y H:i') }} |
{% if paymentMethodNepting == paymentMethod.payemntMenthodConfig.code %}
{{ link('connexion', '', 'success', {'entity-id' : paymentMethod.id }) }}
{% endif %}
{% if paymentMethodFree != paymentMethod.payemntMenthodConfig.code %}
{{ link('edit','modal', 'success', {'entity-id' : paymentMethod.id, 'modalId': 'foxorders_modal_form_shop' }) }}
{% if canDelete %}
{% include 'Includes/delete.html.twig' with {
'route': path('foxorders_shop_payment_method_delete', {'id': paymentMethod.id}),
'token': csrf_token('delete' ~ paymentMethod.id),
'button': 'list_delete',
'confirmation_message': 'app.shop_owner.pages.payment_methods.delete.confirmation'|trans
} %}
{% endif %}
{% endif %}
|
| {{ 'app.global.detail.no_record_found'|trans }} | |||||||