This commit is contained in:
Kevin Adametz 2024-08-05 11:58:09 +02:00
parent c1c613a4b9
commit 881fc84207
384 changed files with 50679 additions and 990 deletions

View file

@ -3,7 +3,7 @@
<h6 class="card-header bg-primary text-white py-2" data-toggle="collapse" data-target="#collapseBookingInfo" aria-expanded="false" aria-controls="collapseBookingInfo">
<strong style="line-height: 1.6em"> Kunde / Buchung</strong>
</h6>
<div class="collapse @if($id === 'new') show @endif" id="collapseBookingInfo">
<div class="collapse" id="collapseBookingInfo">
<div class="card-body">
<div class="form-row">
<div class="form-group col-md-6">
@ -135,6 +135,12 @@
<div class="col-sm-12">
<label class="form-label">Eingetragen in</label>
</div>
<div class="form-group col-sm-4">
<label class="custom-control custom-checkbox">
{!! Form::checkbox('is_calendar_traum_fewo', 1, $travel_user_booking_fewo->is_calendar_traum_fewo, ['class'=>'custom-control-input']) !!}
<span class="custom-control-label">{{__('Traumfewo')}}</span>
</label>
</div>
<div class="form-group col-sm-4">
<label class="custom-control custom-checkbox">
{!! Form::checkbox('is_calendar_fewo_direct', 1, $travel_user_booking_fewo->is_calendar_fewo_direct, ['class'=>'custom-control-input']) !!}

View file

@ -87,7 +87,7 @@
<!-- / Messages sidebox -->
<!-- Messages content wrapper -->
<div class="d-flex flex-column w-100">
<div class="d-flex flex-column max-width-md">
<!-- Header -->
<div class="flex-grow-0">
<h4 class="media align-items-center font-weight-bold container-p-x py-3 py-lg-4 m-0">

View file

@ -53,7 +53,7 @@
<ul class="nav nav-sm nav-tabs nav-justified tabs-alt mb-3" id="top-nav-quick-jump">
<li class="nav-item">
<a class="nav-link" href="javascript:void(0)" data-collapse="#collapseBookingInfo">
<a class="nav-link active" href="javascript:void(0)" data-collapse="#collapseBookingInfo">
Kunde / Buchung
</a>
</li>
@ -110,7 +110,7 @@
@endif
</ul>
{!! Form::open(['url' => route('travel_user_booking_fewo_detail', [$id]), 'class' => 'form-horizontal']) !!}
{!! Form::open(['url' => route('travel_user_booking_fewo_detail', [$id]), 'class' => 'form-horizontal', 'id'=>'travel-booking-form-validation']) !!}
<input type="hidden" name="id" id="id" value="{{$id}}">
@include('travel.user.booking._detail_info')
@ -141,6 +141,15 @@
<script>
$(document).ready(function() {
$("#travel-booking-form-validation button[type='submit']").on("click", function(event) {
$(':input[required]', "#travel-booking-form-validation").each(function() {
if ($(this).val() == "" || $(this).val() == null) {
$(this).closest(".collapse").collapse('show');
return false;
}
});
});
$('#collapseTravelInfo').on('shown.bs.collapse', function () {
$('#travel_info_user_text').keyup();
});
@ -167,28 +176,29 @@
});
$(".collapse").on('shown.bs.collapse', function (){
if(collapseHashValue){
/*if(collapseHashValue){
$('a[data-collapse="#'+collapseHashValue+'"]').click();
collapseHashValue = null;
}
CookiesAddJSONValue('booking_fewo_collapse', $(this).attr('id'));
}*/
//CookiesAddJSONValue('booking_fewo_collapse', $(this).attr('id'));
window.location.hash = "#"+$(this).attr('id');
});
$(".collapse").on('hidden.bs.collapse', function (){
CookiesRemoveJSONValue('booking_fewo_collapse', $(this).attr('id'));
//CookiesRemoveJSONValue('booking_fewo_collapse', $(this).attr('id'));
});
function init_site(){
if(window.location.hash){
value = $(window.location.hash).attr('id');
if(value){
collapseHashValue = value;
CookiesAddJSONValue('booking_fewo_collapse', value);
$('a[data-collapse="#'+value+'"]').click();
//CookiesAddJSONValue('booking_fewo_collapse', value);
}
}
var booking_collapses = Cookies.get('booking_fewo_collapse');
var booking_collapses = '{!! \App\Services\Util::prepareCollapseValues() !!}';
/* var booking_collapses = Cookies.get('booking_fewo_collapse');*/
if (booking_collapses != null)
{
booking_collapses = JSON.parse(booking_collapses);

View file

@ -38,10 +38,14 @@
</div>
</div>
</div>
<div class="card-datatable table-responsive py-2">
<div class="table-responsive-track" id="datatables-fewos-scroll">
<div class="table-responsive-thumb" id="datatables-fewos-thumb">
</div>
</div>
<div class="card-datatable table-responsive py-2" id="datatables-fewos-table">
<input type="hidden" name="sort_travel_country_id" value="">
<input type="hidden" name="sort_travelagenda_id" value="">
<table id="datatables-fewos" class="table table-striped table-bordered">
<table class="table table-striped table-bordered" id="datatables-fewos" >
<thead>
<tr>
<th style="max-width: 10px;">&nbsp;</th>
@ -103,6 +107,7 @@
"url": "/js/German.json"
},
drawCallback: function () {
dataTableScrollTrack('#datatables-fewos');
$('#datatables-fewos [rel="tooltip"]').tooltip({trigger: "hover"});
$('#datatables-fewos [data-toggle="popover"]').popover({trigger: "hover", content: get_popover_content, html: true,});
}

View file

@ -13,6 +13,7 @@
<div class="modal-body">
{!! Form::open(['url' => $value->url, 'class' => '', 'id'=>'customer-mail-form']) !!}
{{ Form::hidden('travel_user_booking_fewo_id', $value->id) }}
{{ Form::hidden('collapse_shows', '') }}
{{ Form::hidden('action', '') }}
@if(isset($value->save_customer_mail_id))
{{ Form::hidden('save_customer_mail_id', $value->save_customer_mail_id) }}
@ -146,6 +147,10 @@
<button class="ql-blockquote"></button>
<button class="ql-code-block"></button>
</span>
<span class="ql-formats">
<select class="ql-color"></select>
<select class="ql-background"></select>
</span>
<span class="ql-formats">
<button class="ql-list" value="ordered"></button>
<button class="ql-list" value="bullet"></button>
@ -355,9 +360,20 @@
}
})
}
function check_collapse_shows(){
var collapse_shows = [];
$('.layout-content').find('.collapse').each(function () {
if($(this).hasClass('show')){
collapse_shows.push($(this).attr('id'));
}
});
$('input[name=collapse_shows]').val(collapse_shows.join(','));
}
$(document).ready(function() {
check_collapse_shows();
$('#open_modal_quill_preview').on('click', function (event) {
data = {};
$.each($(this).data(), function(index, value){

View file

@ -95,6 +95,7 @@
<hr class="border-light m-0">
<div class="px-4 pt-4 pb-2">
{!! Form::open(['url' => route('customer_mail_detail', [$customer_mail->id, 'move-mail-fewo']), 'class' => 'move-mail-form']) !!}
{{ Form::hidden('collapse_shows', '') }}
<div class="form-row">
<div class="col-sm-6">
<label for="customer_mail_dir" class="form-label">Ablegen unter:</label>
@ -128,6 +129,7 @@
{!! Form::close() !!}
<hr>
{!! Form::open(['url' => route('customer_mail_detail', [$customer_mail->id, 'forward_fewo-email']), 'class' => 'forward-mail-form']) !!}
{{ Form::hidden('collapse_shows', '') }}
<div class="form-row">
<div class="col-sm-6">
<label for="customer_mail_forward_email" class="form-label">E-Mail weiterleiten:</label>

View file

@ -38,7 +38,18 @@
})
}
function check_collapse_shows(){
var collapse_shows = [];
$('.layout-content').find('.collapse').each(function () {
if($(this).hasClass('show')){
collapse_shows.push($(this).attr('id'));
}
});
$('input[name=collapse_shows]').val(collapse_shows.join(','));
}
$(document).ready(function() {
check_collapse_shows();
$('form.move-mail-form').each(function () {
var _form = $(this);
$(this).find('.customer_mail_dir').on('change', function () {

View file

@ -6,11 +6,15 @@
</h4>
<div class="card">
<div class="card-datatable table-responsive py-2">
<div class="table-responsive-track" id="datatables-default-scroll">
<div class="table-responsive-thumb" id="datatables-default-thumb">
</div>
</div>
<div class="card-datatable table-responsive py-2" id="datatables-default-table">
<div class="mr-4 mb-2 text-right">
<a href="{{ route('travel_user_detail', ['new']) }}" class="btn btn-sm btn-primary">Neue Kunden anlegen</a>
</div>
<table id="datatables-default" class="table table-striped table-bordered">
<table id="datatables-default" class="table table-striped table-bordered" id="datatables-default">
<thead>
<tr>
<th style="max-width: 10px;">&nbsp;</th>
@ -48,6 +52,9 @@
"iDisplayLength": 50,
"language": {
"url": "/js/German.json"
},
drawCallback: function () {
dataTableScrollTrack('#datatables-default');
}
});
});