-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move channel pricing to separete tab
- Loading branch information
Showing
4 changed files
with
40 additions
and
4 deletions.
There are no files selected for viewing
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
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
27 changes: 27 additions & 0 deletions
27
src/Sylius/Bundle/AdminBundle/Resources/views/ProductVariant/Tab/_channelPricings.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,27 @@ | ||
<div class="ui tab" data-tab="channelPricings"> | ||
<h3 class="ui dividing header">{{ 'sylius.ui.product_variant.channel_pricings'|trans }}</h3> | ||
<div class="ui info message"> | ||
{{ 'sylius.ui.price_details'|trans }} | ||
<br/> | ||
{{ 'sylius.ui.original_price_details'|trans }} | ||
</div> | ||
<div id="sylius_product_variant_channelPricings"> | ||
{{ form_errors(form.channelPricings) }} | ||
{% for channelCode, channelPricing in form.channelPricings %} | ||
<div class="ui segment"> | ||
<div> | ||
<strong>{{ channelPricing.vars.label }}</strong> | ||
</div> | ||
{% if channelCode not in product_variant.product.channels|map(channel => channel.code) %} | ||
<div class="ui info message"> | ||
{{ 'sylius.ui.product.product_not_active_in_channel'|trans }} | ||
</div> | ||
{% endif %} | ||
{{ form_row(channelPricing.price) }} | ||
{{ form_row(channelPricing.originalPrice) }} | ||
</div> | ||
{% endfor %} | ||
</div> | ||
|
||
{{ sylius_template_event(['sylius.admin.product_variant.' ~ action ~ '.tab_channel_pricings', 'sylius.admin.product_variant.channelPricings'], {'form': form}) }} | ||
</div> |
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