more routes

This commit is contained in:
denisdulici 2020-01-06 15:33:37 +03:00
parent 41f195e9e4
commit 3e0d06929b
5 changed files with 14 additions and 14 deletions

View File

@ -17,7 +17,7 @@ class ShowSetting
$event->modules->settings['offline-payments'] = [
'name' => trans('offline-payments::general.name'),
'description' => trans('offline-payments::general.description'),
'url' => route('settings.module.edit', ['alias' => 'offline-payments']),
'url' => route('offline-payments.edit'),
'icon' => 'fas fa-credit-card',
];
}

View File

@ -39,7 +39,7 @@ const app = new Vue({
this.form.loading = true;
axios.post('offline-payments/get', {
axios.post('offline-payments/settings/get', {
code: code
})
.then(response => {
@ -76,7 +76,7 @@ const app = new Vue({
onDelete() {
axios({
method: 'DELETE',
url: 'offline-payments/delete',
url: 'offline-payments/settings/delete',
data: {
code: this.confirm.code
}

View File

@ -129439,7 +129439,7 @@ var app = new vue__WEBPACK_IMPORTED_MODULE_0___default.a({
var code = event.target.dataset.code;
this.form.loading = true;
axios.post('offline-payments/get', {
axios.post('offline-payments/settings/get', {
code: code
}).then(function (response) {
_this.form.name = response.data.data.name;
@ -129473,7 +129473,7 @@ var app = new vue__WEBPACK_IMPORTED_MODULE_0___default.a({
axios({
method: 'DELETE',
url: 'offline-payments/delete',
url: 'offline-payments/settings/delete',
data: {
code: this.confirm.code
}

View File

@ -12,7 +12,7 @@
{!! Form::open([
'id' => 'offline-payments',
'route' => ['settings.module.update', 'offline-payments'],
'route' => 'offline-payments.update',
'@submit.prevent' => 'onSubmit',
'@keydown' => 'form.errors.clear($event.target.name)',
'files' => true,
@ -56,13 +56,13 @@
<div class="table-responsive">
<table class="table table-flush table-hover" id="tbl-items">
<thead class="thead-light">
<tr class="row table-head-line">
<th class="col-xs-6 col-sm-4 col-md-4 col-lg-3">{{ trans('general.name') }}</th>
<th class="col-sm-4 col-md-4 col-lg-4 hidden-sm">{{ trans('offline-payments::general.form.code') }}</th>
<th class="col-lg-2 hidden-lg">{{ trans('offline-payments::general.form.order') }}</th>
<th class="col-xs-6 col-sm-4 col-md-4 col-lg-3 text-center">{{ trans('general.actions') }}</th>
</tr>
<thead class="thead-light">
<tr class="row table-head-line">
<th class="col-xs-6 col-sm-4 col-md-4 col-lg-3">{{ trans('general.name') }}</th>
<th class="col-sm-4 col-md-4 col-lg-4 hidden-sm">{{ trans('offline-payments::general.form.code') }}</th>
<th class="col-lg-2 hidden-lg">{{ trans('offline-payments::general.form.order') }}</th>
<th class="col-xs-6 col-sm-4 col-md-4 col-lg-3 text-center">{{ trans('general.actions') }}</th>
</tr>
</thead>
<tbody>
@if($items)

View File

@ -13,7 +13,7 @@
'files' => true,
'role' => 'form',
'class' => 'form-loading-button',
'novalidate' => true
'novalidate' => true,
]) !!}
<div class="card-body">