add validator, optimizations
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('shop.offers.title'),
|
||||
'subtitle' => __('shop.offers.add'),
|
||||
'breadcrumb' => [__('shop.offers.title'), __('shop.offers.add')]
|
||||
'title' => __('shop.offers.title'),
|
||||
'subtitle' => __('shop.offers.add'),
|
||||
'breadcrumb' => [__('shop.offers.title'), __('shop.offers.add')],
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Shop.Offers.store', 'id' => 'offer-form', 'autocomplete' => 'off']) }}
|
||||
@include('Admin.Shop.Offers.form')
|
||||
</form>
|
||||
|
||||
@include('Admin.Shop.Offers.form')
|
||||
@endsection
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('shop.offers.title'),
|
||||
'subtitle' => __('shop.offers.edit'),
|
||||
'breadcrumb' => [__('shop.offers.title'), __('shop.offers.edit')]
|
||||
'title' => __('shop.offers.title'),
|
||||
'subtitle' => __('shop.offers.edit'),
|
||||
'breadcrumb' => [__('shop.offers.title'), __('shop.offers.edit')],
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Shop.Offers.store', 'id' => 'offer-form', 'autocomplete' => 'off']) }}
|
||||
<input type="hidden" name="id" value="{{ $offer['id'] }}">
|
||||
@include('Admin.Shop.Offers.form')
|
||||
</form>
|
||||
|
||||
@include('Admin.Shop.Offers.form')
|
||||
@endsection
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
{{ Form::open(['route' => 'Admin.Shop.Offers.store', 'id' => 'offer-form', 'autocomplete' => 'off']) }}
|
||||
<input type="hidden" name="id" value="{{ $offer['id'] }}">
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-8">
|
||||
<div class="row mb-3">
|
||||
@@ -103,13 +106,16 @@
|
||||
|
||||
</div>
|
||||
|
||||
@include('components.save')
|
||||
{{ form::close() }}
|
||||
<x-save />
|
||||
|
||||
@include('load.layout.chevron')
|
||||
@include('load.form.save')
|
||||
@include('load.form.select2')
|
||||
|
||||
@push('js')
|
||||
{!! JsValidator::formRequest('App\Http\Requests\Admin\Shop\StoreOfferPost', '#offer-form') !!}
|
||||
|
||||
<script>
|
||||
function handleArticle() {
|
||||
$('.select_article').change(function() {
|
||||
|
||||
Reference in New Issue
Block a user