fixes
This commit is contained in:
@@ -1,60 +1,67 @@
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="col-12">
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-3">
|
||||
{{ Form::label('ref', 'Référence') }}<br>
|
||||
{{ $article['ref'] ?? null }}
|
||||
</div>
|
||||
<div class="col-6">
|
||||
{{ Form::label('name', 'Nom') }}<br>
|
||||
{{ $article['name'] ?? null }}
|
||||
</div>
|
||||
<div class="col-3" class="text-right">
|
||||
<img src="{{ $article['image'] }}" class="img-fluid">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<div class="col-3">
|
||||
{{ Form::label('ref', 'Référence') }}<br>
|
||||
{{ $article['ref'] ?? null }}
|
||||
</div>
|
||||
<div class="col-6">
|
||||
{{ Form::label('name', 'Nom') }}<br>
|
||||
{{ $article['name'] ?? null }}
|
||||
</div>
|
||||
<div class="col-3" class="text-right">
|
||||
<img src="{{ $article['image'] }}" class="img-fluid">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('categories', __('shop.shelves.title')) }}<br>
|
||||
@foreach (($article['categories'] ?? null) as $category)
|
||||
<span class="btn btn-xs btn-success pb-2">{{ $category }}</span>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('categories', __('shop.shelves.title')) }}<br>
|
||||
@foreach ($article['categories'] ?? null as $category)
|
||||
<span class="btn btn-xs btn-success pb-2">{{ $category }}</span>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('tags', 'Tags') }}<br>
|
||||
@foreach (($article['tags'] ?? null) as $tag)
|
||||
<span class="btn btn-xs btn-success pb-2">{{ $tag }}</span>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('tags', 'Tags') }}<br>
|
||||
@foreach ($article['tags'] ?? [] as $tagGroup => $item)
|
||||
@foreach ($item ?? null as $tag)
|
||||
<span class="btn btn-xs btn-success pb-2">{{ $tag }}</span>
|
||||
@endforeach
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
@include('Admin.Shop.Articles.partials.product.description')
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
@include('Admin.Shop.Articles.partials.product.description')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('description', 'Description') }}
|
||||
{!! $article['description']['description'] ?? null !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('description', 'Description') }}
|
||||
{!! $article['description']['description'] ?? null !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
@include('Admin.Core.Comments.partials.comments', ['model' => 'Shop.Article', 'model_id' => $article['id'] ?? false, 'comments' => $article['comments'], 'with_add' => false])
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
@include('Admin.Core.Comments.partials.comments', [
|
||||
'model' => 'Shop.Article',
|
||||
'model_id' => $article['id'] ?? false,
|
||||
'comments' => $article['comments'],
|
||||
'with_add' => false,
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
initChevron();
|
||||
</script>
|
||||
initChevron();
|
||||
</script>
|
||||
|
||||
@@ -1,18 +1,20 @@
|
||||
@once
|
||||
@push('scripts')
|
||||
<script>
|
||||
function initSaveForm(form, sel) {
|
||||
var form = (typeof(form) == 'undefined') ? '#form' : form;
|
||||
var selector = (typeof(sel) == 'undefined') ? '.save' : sel;
|
||||
$(selector).off().click(function(e) {
|
||||
e.preventDefault();
|
||||
var $button = $(this).find('i .fa-save').first();
|
||||
$button.removeClass('fa-save');
|
||||
$button.addClass('fa-spinner fa-spin');
|
||||
$(form).submit();
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
@php(define('LOAD_SAVE', true))
|
||||
@endonce
|
||||
@push('scripts')
|
||||
<script>
|
||||
function initSaveForm(form, sel) {
|
||||
initValidator();
|
||||
var form = (typeof(form) == 'undefined') ? '#form' : form;
|
||||
var selector = (typeof(sel) == 'undefined') ? '.save' : sel;
|
||||
$(selector).off().click(function(e) {
|
||||
e.preventDefault();
|
||||
if ($(form).valid()) {
|
||||
$(this).prop("disabled", true);
|
||||
$(this).html($(this).data('loading-text'));
|
||||
$(form).submit();
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
@php(define('LOAD_SAVE', true))
|
||||
@endonce
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
@if(!defined('LOAD_CHEVRON'))
|
||||
@push('scripts')
|
||||
@if (!defined('LOAD_CHEVRON'))
|
||||
@push('scripts')
|
||||
@component('boilerplate::minify')
|
||||
<script>
|
||||
function initChevron(sel) {
|
||||
var selector = (typeof(sel) == 'undefined') ? '.card-header .btn-link' : sel;
|
||||
$(selector).click(function() {
|
||||
$(selector).off().click(function() {
|
||||
$(this).find('i').toggleClass('fa-chevron-right fa-chevron-down')
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@endcomponent
|
||||
@endpush
|
||||
@php(define('LOAD_CHEVRON', true))
|
||||
@endpush
|
||||
@php(define('LOAD_CHEVRON', true))
|
||||
@endif
|
||||
|
||||
Reference in New Issue
Block a user