Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
templates/bundles/SyliusAdminBundle/ShippingMethod/_form.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{% from '@SyliusAdmin/Macro/translationForm.html.twig' import translationForm %} | ||
|
||
<div class="ui two column stackable grid"> | ||
<div class="column"> | ||
<div class="ui segment"> | ||
{{ form_errors(form) }} | ||
<div class="three fields"> | ||
{{ form_row(form.code) }} | ||
{{ form_row(form.zone) }} | ||
{{ form_row(form.position) }} | ||
</div> | ||
{{ form_row(form.enabled) }} | ||
<h4 class="ui dividing header">{{ 'sylius.ui.availability'|trans }}</h4> | ||
{{ form_row(form.channels) }} | ||
<h4 class="ui dividing header">{{ 'sylius.ui.category_requirements'|trans }}</h4> | ||
{{ form_row(form.category) }} | ||
{% for categoryRequirementChoiceForm in form.categoryRequirement %} | ||
{{ form_row(categoryRequirementChoiceForm) }} | ||
{% endfor %} | ||
<h4 class="ui dividing header">{{ 'sylius.ui.taxes'|trans }}</h4> | ||
{{ form_row(form.taxCategory) }} | ||
<h4 class="ui dividing header">{{ 'sylius.ui.shipping_charges'|trans }}</h4> | ||
{{ form_row(form.calculator) }} | ||
{% for name, calculatorConfigurationPrototype in form.vars.prototypes %} | ||
<div id="{{ form.calculator.vars.id }}_{{ name }}" data-container=".configuration" | ||
data-prototype="{{ form_widget(calculatorConfigurationPrototype)|e }}"> | ||
</div> | ||
{% endfor %} | ||
<div class="ui segment configuration"> | ||
{% if form.configuration is defined %} | ||
{% for field in form.configuration %} | ||
{{ form_row(field) }} | ||
{% endfor %} | ||
{% endif %} | ||
</div> | ||
</div> | ||
</div> | ||
<div class="column"> | ||
{{ translationForm(form.translations) }} | ||
<b id="delivery-condition">{{ 'app.form.extension.type.shipping_method_translation.delivery_conditions'|trans~' '~'sylius.ui.message'|trans|lower~': ' }}</b> | ||
<p id="delivery-condition-message">{{ shipping_method.getDeliveryConditions }}</p> | ||
</div> | ||
</div> | ||
|