Synchro back-office, fix on tariffs
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
|
||||
@if ($tariff['id'] ?? false)
|
||||
@@ -70,6 +70,7 @@
|
||||
@include('components.save')
|
||||
|
||||
@include('load.form.editor')
|
||||
@include('load.form.save')
|
||||
@include('load.form.select2')
|
||||
@include('load.layout.modal')
|
||||
|
||||
@@ -77,19 +78,21 @@
|
||||
<script>
|
||||
$(function() {
|
||||
initEditor();
|
||||
initSelect2();
|
||||
initSaveForm('#tariffs-form');
|
||||
});
|
||||
|
||||
function PriceListCreate() {
|
||||
var tariff_id = $('#id').val();
|
||||
var url_open = "{{ route('Admin.Shop.PriceLists.modalCreate') }}/" + tariff_id;
|
||||
var url_save = "{{ route('Admin.Shop.PriceLists.storeAjax') }}";
|
||||
openModal("{{ __('price_list') }}", '#price_list-form', url_open, url_save, "PriceListRefresh();");
|
||||
openModal("{{ __('price_list') }}", '#price_list-form', url_open, url_save, "PriceListRefresh();","extra-large");
|
||||
}
|
||||
|
||||
function PriceListEdit(id) {
|
||||
var url_open = "{{ route('Admin.Shop.PriceLists.modalEdit') }}/" + id;
|
||||
var url_save = "{{ route('Admin.Shop.PriceLists.storeAjax') }}";
|
||||
openModal("{{ __('price_list') }}", '#price_list-form', url_open, url_save, "PriceListRefresh();");
|
||||
openModal("{{ __('price_list') }}", '#price_list-form', url_open, url_save, "PriceListRefresh();","extra-large");
|
||||
}
|
||||
|
||||
function PriceListRefresh()
|
||||
|
||||
Reference in New Issue
Block a user