Mails + Upload
This commit is contained in:
parent
767e84e640
commit
a3bef8d1aa
19 changed files with 151 additions and 200 deletions
|
|
@ -25,7 +25,7 @@
|
|||
{{ Form::text('service_total', $booking->getServiceTotal(), array('placeholder'=>__('Gesamtpreis Vermittlung'), 'class'=>'form-control', 'id'=>'service_total', 'readonly')) }}
|
||||
</div>
|
||||
</div>
|
||||
@if($booking->isCanceled() > 0)
|
||||
@if($booking->isCanceled())
|
||||
<div class="form-group ">
|
||||
<label class="form-label" for="price_canceled">{{ __('Storno Betrag') }} <span class="text-muted">{{ __('(Forderung)') }}</span></label>
|
||||
<div class="input-group">
|
||||
|
|
@ -78,7 +78,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
@if($booking->isCanceled() > 0)
|
||||
@if($booking->isCanceled())
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="canceled">{{ __('Storno in %') }}</label>
|
||||
<div class="input-group">
|
||||
|
|
|
|||
|
|
@ -34,6 +34,15 @@
|
|||
|
||||
<script type="text/javascript">
|
||||
|
||||
var responseReaload = false;
|
||||
$('#modals-load-content').on('hide.bs.modal', function (event) {
|
||||
$(this).off('hide.bs.modal');
|
||||
if(responseReaload){
|
||||
responseReaload = false;
|
||||
window.location.reload();
|
||||
}
|
||||
});
|
||||
|
||||
$( document ).ready(function() {
|
||||
Dropzone.autoDiscover = false;
|
||||
$("#uploadBookingFile").dropzone({
|
||||
|
|
@ -75,15 +84,18 @@
|
|||
message = response.message;
|
||||
var _ele = $('.alert-danger');
|
||||
_ele.fadeIn();
|
||||
console.log(message);
|
||||
$(file.previewElement).find('.dz-error-message').text(message);
|
||||
$(file.previewElement).addClass('dz-error');
|
||||
_ele.text(message);
|
||||
},
|
||||
success: function(file, response) {
|
||||
console.log(file);
|
||||
console.log(response);
|
||||
// console.log(file);
|
||||
// console.log(response);
|
||||
$(file.previewElement).addClass('dz-success');
|
||||
if(response.error === false){
|
||||
responseReaload = true;
|
||||
//window.location.href = window.location.href; //This is a possibility
|
||||
window.location.reload(); //Another possiblity
|
||||
// window.location.reload(); //Another possiblity
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue