-
-
Notifications
You must be signed in to change notification settings - Fork 710
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename exchange products file names to increase clarity
- Loading branch information
1 parent
08b3c39
commit 779f717
Showing
5 changed files
with
20 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
File renamed without changes.
File renamed without changes.
16 changes: 16 additions & 0 deletions
16
app/assets/javascripts/templates/admin/panels/exchange_products_supplied_list.html.haml
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,16 @@ | ||
.exchange-products{ 'ng-hide' => 'productsLoading()' } | ||
.exchange-product{'ng-repeat' => 'product in enterprises[exchange.enterprise_id].supplied_products'} | ||
.exchange-product-details | ||
%label | ||
%img{'ng-src' => '{{ product.image_url }}'} | ||
{{ product.name }} | ||
|
||
.exchange-product-variant{'ng-repeat' => 'variant in product.variants'} | ||
%label | ||
%input{ type: 'checkbox', name: 'order_cycle_incoming_exchange_{{ $parent.$parent.$index }}_variants_{{ variant.id }}', | ||
value: 1, | ||
'ng-model' => 'exchange.variants[variant.id]', | ||
'ofn-sync-distributions' => '{{ variant.id }}', | ||
'id' => 'order_cycle_incoming_exchange_{{ $parent.$parent.$index }}_variants_{{ variant.id }}', | ||
'ng-disabled' => '!order_cycle.editable_variants_for_incoming_exchanges.hasOwnProperty(exchange.enterprise_id) || order_cycle.editable_variants_for_incoming_exchanges[exchange.enterprise_id].indexOf(variant.id) < 0' } | ||
{{ variant.label }} |
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