10.April 2026
This commit is contained in:
parent
a00c42e770
commit
f58c709945
208 changed files with 19280 additions and 2914 deletions
|
|
@ -9,33 +9,48 @@
|
|||
<div class="card mb-4">
|
||||
<h5 class="card-header">Struktur</h5>
|
||||
<div class="card-body">
|
||||
<button type="button" id="" data-save="navigation-structure" class="btn btn-primary nestable_list_menu_save">{{ __('save') }}</button>
|
||||
<button type="button" id="" data-save="navigation-structure"
|
||||
class="btn btn-primary nestable_list_menu_save">{{ __('save') }}</button>
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="white-box">
|
||||
<div class="custom-dd dd" id="nestable_list_1" data-href-save="{{ route('admin_downloadcenter_item_store', ['structure'])}}">
|
||||
<div class="custom-dd dd" id="nestable_list_1"
|
||||
data-href-save="{{ route('admin_downloadcenter_item_store', ['structure']) }}">
|
||||
<ol class="dd-list">
|
||||
@if(count($category_active))
|
||||
@foreach($category_active as $category)
|
||||
<li class="dd-item" data-id="{{ $category->id }}" data-name="{{ $category->slug }}">
|
||||
<span class="pull-right">
|
||||
<a href="#" class="btn btn-sm mt-1 nestable_update_btn" data-action="update-category-active" data-target="self" data-id="{{ $category->id }}" data-url="{{ route('admin_downloadcenter_item_store', ['update_ajax']) }}">
|
||||
@if($category->active) <i class="fa fa-eye text-success"></i> @else <i class="fa fa-eye-slash text-danger"></i> @endif
|
||||
</a>
|
||||
<a href="{{ route('admin_downloadcenter_item_delete', ['obj' => 'category', 'id'=> $category->id])}}" class="btn btn-sm mt-1 nestable_list_delete"><i class="fa fa-trash text-danger"></i></a>
|
||||
</span>
|
||||
@if (count($category_active))
|
||||
@foreach ($category_active as $category)
|
||||
<li class="dd-item" data-id="{{ $category->id }}"
|
||||
data-name="{{ $category->slug }}">
|
||||
<div style="display: inline-block;">
|
||||
<div class="ml-4">
|
||||
<a href="#"
|
||||
class="btn btn-sm mt-1 mt-0 nestable_update_btn"
|
||||
data-action="update-category-active" data-target="self"
|
||||
data-id="{{ $category->id }}"
|
||||
data-url="{{ route('admin_downloadcenter_item_store', ['update_ajax']) }}">
|
||||
@if ($category->active)
|
||||
<i class="fa fa-eye text-success"></i>
|
||||
@else
|
||||
<i class="fa fa-eye-slash text-danger"></i>
|
||||
@endif
|
||||
</a>
|
||||
<a href="{{ route('admin_downloadcenter_item_delete', ['obj' => 'category', 'id' => $category->id]) }}"
|
||||
class="btn btn-sm mt-1 mt-0 nestable_list_delete"><i
|
||||
class="fa fa-trash text-danger"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="dd-handle">
|
||||
<strong> {{ $category->name }} </strong>
|
||||
<strong> {{ $category->name }} </strong>
|
||||
</div>
|
||||
<ol class="dd-list">
|
||||
{!! \App\Services\DcHelper::makeNestableList($category->id) !!}
|
||||
{!! \App\Services\DcHelper::makeNestableList($category->id) !!}
|
||||
<li class="dd-item" data-id="0">
|
||||
</li>
|
||||
</ol>
|
||||
</li>
|
||||
@endforeach
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -47,23 +62,27 @@
|
|||
<ol class="dd-list">
|
||||
<li class="dd-item" data-id="0">
|
||||
<div class="dd-handle dd-nodrag">
|
||||
<strong><em> Neue Tags </em></strong>
|
||||
<strong><em> Neue Tags </em></strong>
|
||||
</div>
|
||||
<ol class="dd-list">
|
||||
@if(count($tags_inactive))
|
||||
@foreach($tags_inactive as $tag)
|
||||
<li class="dd-item" data-id="{{ $tag->id }}">
|
||||
<span class="pull-right">
|
||||
<a href="{{ route('admin_downloadcenter_item_delete', ['obj' => 'tag', 'id'=> $tag->id])}}" class="btn btn-sm nestable_list_delete"><i class="fa fa-trash text-danger"></i></a>
|
||||
</span>
|
||||
<div class="dd-handle">
|
||||
{{ $tag->name }}
|
||||
</div>
|
||||
</li>
|
||||
@endforeach
|
||||
@endif
|
||||
@if (count($tags_inactive))
|
||||
@foreach ($tags_inactive as $tag)
|
||||
<li class="dd-item" data-id="{{ $tag->id }}">
|
||||
<div style="display: inline-block; width: 100%;">
|
||||
<div class="float-right">
|
||||
<a href="{{ route('admin_downloadcenter_item_delete', ['obj' => 'tag', 'id' => $tag->id]) }}"
|
||||
class="btn btn-sm nestable_list_delete"><i
|
||||
class="fa fa-trash text-danger"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="dd-handle">
|
||||
{{ $tag->name }}
|
||||
</div>
|
||||
</li>
|
||||
@endforeach
|
||||
@endif
|
||||
<li class="dd-item " data-id="0">
|
||||
|
||||
|
||||
</li>
|
||||
</ol>
|
||||
</li>
|
||||
|
|
@ -73,16 +92,20 @@
|
|||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<button type="button" id="" data-save="navigation-structure" class="btn btn-primary nestable_list_menu_save">{{ __('save') }}</button>
|
||||
<button type="button" id="" data-save="navigation-structure"
|
||||
class="btn btn-primary nestable_list_menu_save">{{ __('save') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="card mb-4">
|
||||
<div class="card-body">
|
||||
{!! Form::open(['action' => route('admin_downloadcenter_item_store', ['category']), 'class' => 'form-horizontal']) !!}
|
||||
{!! Form::open([
|
||||
'action' => route('admin_downloadcenter_item_store', ['category']),
|
||||
'class' => 'form-horizontal',
|
||||
]) !!}
|
||||
<label class="form-label" for="dc_category_name">Neue Katagorie anlegen</label>
|
||||
{{ Form::text('dc_category_name', '', array('placeholder'=>'Bezeichung Katagorie', 'class'=>'form-control', 'id'=>'dc_category_name')) }}
|
||||
{{ Form::text('dc_category_name', '', ['placeholder' => 'Bezeichung Katagorie', 'class' => 'form-control', 'id' => 'dc_category_name']) }}
|
||||
<button type="submit" class="btn btn-submit mt-4">{{ __('save') }}</button>
|
||||
{!! Form::close() !!}
|
||||
<br>
|
||||
|
|
@ -90,7 +113,7 @@
|
|||
<br>
|
||||
{!! Form::open(['action' => route('admin_downloadcenter_item_store', ['tag']), 'class' => 'form-horizontal']) !!}
|
||||
<label class="form-label" for="dc_tag_name">Neuen Tag anlegen</label>
|
||||
{{ Form::text('dc_tag_name', '', array('placeholder'=>'Bezeichung Tag', 'class'=>'form-control', 'id'=>'dc_tag_name')) }}
|
||||
{{ Form::text('dc_tag_name', '', ['placeholder' => 'Bezeichung Tag', 'class' => 'form-control', 'id' => 'dc_tag_name']) }}
|
||||
<button type="submit" class="btn btn-submit mt-4">{{ __('save') }}</button>
|
||||
{!! Form::close() !!}
|
||||
<br>
|
||||
|
|
@ -101,19 +124,18 @@
|
|||
@endsection
|
||||
|
||||
@section('styles')
|
||||
<link rel="stylesheet" href="/vendor/libs/nestable/nestable.css">
|
||||
<style>
|
||||
.dd-list {
|
||||
min-width: auto;
|
||||
}
|
||||
.dd-nodrag{
|
||||
pointer-events: none;
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="/vendor/libs/nestable/nestable.css">
|
||||
<style>
|
||||
.dd-list {
|
||||
min-width: auto;
|
||||
}
|
||||
|
||||
.dd-nodrag {
|
||||
pointer-events: none;
|
||||
}
|
||||
</style>
|
||||
@endsection
|
||||
@section('scripts')
|
||||
|
||||
<script src="/vendor/libs/nestable/jquery-nestable-full.js?v=1"></script>
|
||||
<script src="/js/nestable-init.js?v=1"></script>
|
||||
|
||||
@endsection
|
||||
<script src="/vendor/libs/nestable/jquery-nestable-full.js?v=1"></script>
|
||||
<script src="/js/nestable-init.js?v=1"></script>
|
||||
@endsection
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue