Fewo Mails / Booking Country Services
This commit is contained in:
parent
b9c26d06d0
commit
48a6eb2282
154 changed files with 7761 additions and 1643 deletions
|
|
@ -26,7 +26,9 @@
|
|||
<button type="button" class="btn btn-sm btn-primary" data-toggle="modal"
|
||||
data-target="#modals-load-content"
|
||||
data-id="new"
|
||||
data-identifier="{{$identifier_content}}"
|
||||
data-model="content"
|
||||
data-back="{{route('cms_content_all')}}"
|
||||
data-route="{{ route('cms_content_all_load_modal') }}"
|
||||
>Neuen Content anlegen</button>
|
||||
</div>
|
||||
|
|
@ -39,7 +41,6 @@
|
|||
<th>{{__('Slug')}}</th>
|
||||
<th>{{__('Inhalt')}}</th>
|
||||
<th>{{__('Type')}}</th>
|
||||
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
|
@ -49,7 +50,9 @@
|
|||
<td class="not">
|
||||
<button type="button" class="btn icon-btn btn-sm btn-primary" data-toggle="modal" data-target="#modals-load-content"
|
||||
data-id="{{ $value->id }}"
|
||||
data-identifier="{{$identifier_content}}"
|
||||
data-model="content"
|
||||
data-back="{{route('cms_content_all')}}"
|
||||
data-route="{{ route('cms_content_all_load_modal') }}">
|
||||
<span class="fa fa-edit"></span>
|
||||
</button>
|
||||
|
|
@ -58,9 +61,7 @@
|
|||
<td>{{ $value->slug }}</td>
|
||||
<td>@if($value->isFile()) {!! $value->getPreviewContent() !!} @else {{ $value->getPreviewContent() }} @endif</td>
|
||||
<td>{{ $value->getFieldName() }}</td>
|
||||
|
||||
<td><a class="text-danger" href="{{ route('cms_content_all_delete', [$value->id]) }}" onclick="return confirm('{{__('Wirklich löschen?')}}');"><i class="fa fa-trash-alt"></i></a></td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
|
@ -68,12 +69,13 @@
|
|||
<div class="mt-4 mr-4 text-right">
|
||||
<button type="button" class="btn btn-sm btn-primary" data-toggle="modal" data-target="#modals-load-content"
|
||||
data-id="new"
|
||||
data-identifier="{{$identifier_content}}"
|
||||
data-model="content"
|
||||
data-back="{{route('cms_content_all')}}"
|
||||
data-route="{{ route('cms_content_all_load_modal') }}"
|
||||
>Neuen Content anlegen</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<script>
|
||||
$( document ).ready(function() {
|
||||
|
|
@ -89,8 +91,4 @@
|
|||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
@endsection
|
||||
|
|
@ -1,7 +1,9 @@
|
|||
|
||||
{!! Form::open(['url' => route('cms_content_all_store'), 'class' => 'modal-content', 'enctype' => 'multipart/form-data']) !!}
|
||||
{!! Form::open(['url' => route('cms_content_all_store'), 'class' => 'modal-content', 'enctype' => 'multipart/form-data', 'id'=> 'cmsContentForm']) !!}
|
||||
|
||||
<input type="hidden" name="id" id="id" value="{{ $value->id > 0 ? $value->id : 'new' }}">
|
||||
<input type="hidden" name="identifier" id="identifier" value="{{ $value->identifier }}">
|
||||
<input type="hidden" name="back" id="back" value="{{ $data['back'] }}">
|
||||
|
||||
|
||||
<div class="modal-header">
|
||||
|
|
@ -39,7 +41,7 @@
|
|||
|
||||
<div class="form-row show-content-full_text" style="display:none ;">
|
||||
<div class="form-group col">
|
||||
<label for="text" class="form-label">{{ __('Full Text') }}</label>
|
||||
<label for="full_text" class="form-label">{{ __('Full Text') }}</label>
|
||||
{{ Form::textarea('full_text', $value->full_text, array('placeholder'=>__('Full Text'), 'class'=>'form-control', 'rows'=>20)) }}
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -81,16 +83,20 @@
|
|||
</div>
|
||||
<div class="col-12 mt-2 mb-4">
|
||||
<!-- You can add extra form fields here -->
|
||||
<div class="dropzone" id="fileUpload"></div>
|
||||
<div class="dropzone" id="fileUploadContentForm"></div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="form-row show-field-slug">
|
||||
<div class="form-group col">
|
||||
<label for="name" class="form-label">{{ __('Slug') }}</label>
|
||||
<div class="form-group col-sm-10">
|
||||
<label for="slug" class="form-label">{{ __('Slug') }}</label>
|
||||
{{ Form::text('slug', $value->slug, array('class'=>'form-control')) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
<label for="pos" class="form-label">{{ __('Position') }}</label>
|
||||
{{ Form::text('pos', $value->pos, array('class'=>'form-control')) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
@ -107,24 +113,30 @@
|
|||
|
||||
$( document ).ready(function() {
|
||||
|
||||
$('div[class*="show-content"]').hide();
|
||||
$('.show-content-'+$('select[name="field"]').val()).show();
|
||||
$('#cmsContentForm div[class*="show-content"]').hide();
|
||||
$('#cmsContentForm .show-content-'+$('#cmsContentForm select[name="field"]').val()).show();
|
||||
|
||||
$('select[name="field"]').on('change', function () {
|
||||
$('div[class*="show-content"]').hide();
|
||||
$('.show-content-'+$(this).val()).show();
|
||||
if($(this).val() == 'file' && $('input[name="id"]').val() == 'new'){
|
||||
function cmsContentShowFileFields(){
|
||||
if($('#cmsContentForm select[name="field"]').val() === 'file' && $('#cmsContentForm input[name="id"]').val() === 'new'){
|
||||
$('.show-field-slug').hide();
|
||||
$('.show-field-name').hide();
|
||||
}else{
|
||||
$('.show-field-slug').show();
|
||||
$('.show-field-name').show();
|
||||
}
|
||||
}
|
||||
cmsContentShowFileFields();
|
||||
|
||||
$('#cmsContentForm select[name="field"]').on('change', function () {
|
||||
$('#cmsContentForm div[class*="show-content"]').hide();
|
||||
$('#cmsContentForm .show-content-'+$(this).val()).show();
|
||||
cmsContentShowFileFields();
|
||||
});
|
||||
|
||||
Dropzone.autoDiscover = false;
|
||||
$("#fileUpload").dropzone({
|
||||
$("#fileUploadContentForm").dropzone({
|
||||
url: "{{route('cms_content_all_store')}}",
|
||||
params: {'identifier':'{{ $value->identifier }}','back':'{{$data['back'] }}'},
|
||||
uploadMultiple: false,
|
||||
parallelUploads: 1,
|
||||
maxFilesize: 32,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue