Berater bestellungen kleine Änderungen
This commit is contained in:
parent
c4ed6b39db
commit
74923859d1
8 changed files with 64 additions and 49 deletions
|
|
@ -58,7 +58,7 @@
|
|||
@endif
|
||||
<div class="show-is-for-customer">
|
||||
<h4>An diesen Kunde versenden</h4>
|
||||
<p>Sollten unten stehend Angaben nicht korrekt sein oder aktualisiert werden müssen, ändere diese bitte vorerst unter:
|
||||
<p>Sollten unten stehende Angaben nicht korrekt sein oder aktualisiert werden müssen, ändere diese bitte vorerst unter:
|
||||
<a href="{{route('user_customers')}}">Meine Kunden -> Übersicht</a> -> <a href="{{route('user_customer_detail', $shopping_user->id)}}"><i class="fa fa-edit"></i> Kunde</a></a></p>
|
||||
@include('admin.customer._customer_detail')
|
||||
</div>
|
||||
|
|
@ -66,11 +66,21 @@
|
|||
|
||||
</div>
|
||||
@if($shopping_user)
|
||||
<div class="float-right">
|
||||
<div class="" id="hide_for_me">
|
||||
<hr>
|
||||
<div class="form-group">
|
||||
<label class="custom-control custom-checkbox m-2 ">
|
||||
<input type="checkbox" class="custom-control-input" name="check_for_ot" id="checkbox_for_me" required>
|
||||
<span class="custom-control-label secondary">{{__('Mir ist bekannt, dass dieser Bestellvorgang nur für Kundenbestellungen ist und nicht für meine eigenen Bestellungen')}}</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="float-rights">
|
||||
<button type="submit" class="btn btn-secondary" name="action" value="next">bestätigen und weiter zur Bestellung</button>
|
||||
</div>
|
||||
@else
|
||||
<div class="float-right" id="hide_for_ot">
|
||||
<div class="float-rights" id="hide_for_ot">
|
||||
<button type="submit" class="btn btn-secondary" name="action" value="next">bestätigen und weiter zur Bestellung</button>
|
||||
</div>
|
||||
@endif
|
||||
|
|
@ -86,9 +96,16 @@
|
|||
if($(this).val() === 'ot'){
|
||||
$('#show-is-for-customer').show('slow');
|
||||
$('#hide_for_ot').hide('slow');
|
||||
$('#hide_for_me').show('slow');
|
||||
$('#checkbox_for_me').attr('required', true);
|
||||
|
||||
}else{
|
||||
$('#show-is-for-customer').hide('slow');
|
||||
$('#hide_for_ot').show('slow');
|
||||
$('#hide_for_me').hide('slow');
|
||||
$('#checkbox_for_me').attr('required', false);
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue