From f83723d2ca20d3e2bceb6f5d845fe467e9488e13 Mon Sep 17 00:00:00 2001 From: Tomanhez Date: Wed, 17 Apr 2019 15:20:58 +0200 Subject: [PATCH] Add _form.html.twig --- .../ShippingMethod/_form.html.twig | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 templates/bundles/SyliusAdminBundle/ShippingMethod/_form.html.twig diff --git a/templates/bundles/SyliusAdminBundle/ShippingMethod/_form.html.twig b/templates/bundles/SyliusAdminBundle/ShippingMethod/_form.html.twig new file mode 100644 index 0000000..4ec16eb --- /dev/null +++ b/templates/bundles/SyliusAdminBundle/ShippingMethod/_form.html.twig @@ -0,0 +1,44 @@ +{% from '@SyliusAdmin/Macro/translationForm.html.twig' import translationForm %} + +
+
+
+ {{ form_errors(form) }} +
+ {{ form_row(form.code) }} + {{ form_row(form.zone) }} + {{ form_row(form.position) }} +
+ {{ form_row(form.enabled) }} +

{{ 'sylius.ui.availability'|trans }}

+ {{ form_row(form.channels) }} +

{{ 'sylius.ui.category_requirements'|trans }}

+ {{ form_row(form.category) }} + {% for categoryRequirementChoiceForm in form.categoryRequirement %} + {{ form_row(categoryRequirementChoiceForm) }} + {% endfor %} +

{{ 'sylius.ui.taxes'|trans }}

+ {{ form_row(form.taxCategory) }} +

{{ 'sylius.ui.shipping_charges'|trans }}

+ {{ form_row(form.calculator) }} + {% for name, calculatorConfigurationPrototype in form.vars.prototypes %} +
+
+ {% endfor %} +
+ {% if form.configuration is defined %} + {% for field in form.configuration %} + {{ form_row(field) }} + {% endfor %} + {% endif %} +
+
+
+
+ {{ translationForm(form.translations) }} + {{ 'app.form.extension.type.shipping_method_translation.delivery_conditions'|trans~' '~'sylius.ui.message'|trans|lower~': ' }} +

{{ shipping_method.getDeliveryConditions }}

+
+
+