[WIP] Fixes on Varieties & attributes prices, add uploader widget
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
@include('Shop.Admin.Articles.partials.block_price_new')
|
||||
@include('Shop.Admin.Articles.partials.prices.block_price_new')
|
||||
|
||||
<div id="append_price" class="row">
|
||||
@include('Shop.Admin.Articles.partials.list-prices')
|
||||
@include('Shop.Admin.Articles.partials.prices.list-prices')
|
||||
</div>
|
||||
|
||||
<button type="button" class="btn btn-primary add-new-price">Ajouter un tarif <i class="fa fa-plus"></i></button>
|
||||
<button type="button" class="btn btn-sm btn-primary add-new-price">Ajouter un tarif <i class="fa fa-plus"></i></button>
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
|
||||
function append_price() {
|
||||
handle_append_attribute();
|
||||
}
|
||||
|
||||
$("#append_price").appender({
|
||||
@@ -28,18 +29,21 @@
|
||||
function append_attribute() {
|
||||
}
|
||||
|
||||
$("#append_attribute").appender({
|
||||
rowSection: '.row-new-attribute',
|
||||
type: '.row-attribute',
|
||||
addBtn: '.add-new-attribute',
|
||||
appendEffect: 'slide',
|
||||
addClass: 'animated bounceInLeft',
|
||||
rowNumber: '.row-attribute-number',
|
||||
deleteBtn: '.delete-new-attribute-btn',
|
||||
callback: append_attribute,
|
||||
rowNumberStart: 2,
|
||||
hideSection: true
|
||||
});
|
||||
function handle_append_attribute(selector) {
|
||||
console.log('handle_append_attribute');
|
||||
$("#append_attribute").appender({
|
||||
rowSection: '.row-new-attribute',
|
||||
type: '.row-attribute',
|
||||
addBtn: '.add-new-attribute',
|
||||
appendEffect: 'slide',
|
||||
addClass: 'animated bounceInLeft',
|
||||
rowNumber: '.row-attribute-number',
|
||||
deleteBtn: '.delete-new-attribute-btn',
|
||||
callback: append_attribute,
|
||||
rowNumberStart: 2,
|
||||
hideSection: true
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user