Added tooltips. Fixed style issues with delete dialogs. Edited bookings index style.
This commit is contained in:
@@ -3,41 +3,53 @@
|
||||
@section('title', 'Buchung löschen')
|
||||
|
||||
@section('subnav')
|
||||
<a href='{{ url()->previous() }}'>Zurück</a>
|
||||
<a href='{{ url()->previous() }}' class='btn btn-outline-secondary'>Zurück</a>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<h2>@yield('title')</h2>
|
||||
<form action='/bookings/{{ $booking->id }}' method='post'>
|
||||
<form action='/bookings/{{ $booking->id }}' method='post' class='mt-4 text-center'>
|
||||
{{ method_field('delete') }}
|
||||
{{ csrf_field() }}
|
||||
<p>Soll folgende Buchung und alle ihre Teilbuchungen wirklich gelöscht
|
||||
werden?</p>
|
||||
<div class='alert alert-danger'>
|
||||
<p>
|
||||
Soll folgende Buchung und alle ihre Teilbuchungen wirklich
|
||||
gelöscht werden?
|
||||
</p>
|
||||
|
||||
<table border='1'>
|
||||
<tr>
|
||||
<th>Datum</th>
|
||||
<th>Positionen</th>
|
||||
<th>Person / Firma</th>
|
||||
<th>Betrag</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $booking->date }}</td>
|
||||
<td>{{ $booking->reference }}</td>
|
||||
<td>{{ $booking->person_or_company }}</td>
|
||||
<td align='right'>{{ formatAmount($booking->signedAmount(), true, true) }}</td>
|
||||
</tr>
|
||||
@foreach($booking->subBookings as $subBooking)
|
||||
<table class='table'>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>{{ $subBooking->reference }}</td>
|
||||
<td></td>
|
||||
<td align='right'>{{ formatAmount($subBooking->signedAmount(), true, true) }}</td>
|
||||
<th>Datum</th>
|
||||
<th>Positionen</th>
|
||||
<th>Person / Firma</th>
|
||||
<th>Betrag</th>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
<tr>
|
||||
<td>{{ formatDate($booking->date) }}</td>
|
||||
<td>{{ $booking->reference }}</td>
|
||||
<td>{{ $booking->person_or_company }}</td>
|
||||
<td align='right'>
|
||||
{{
|
||||
formatAmount($booking->signedAmount(), true, true)
|
||||
}}
|
||||
</td>
|
||||
</tr>
|
||||
@foreach($booking->subBookings as $subBooking)
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>{{ $subBooking->reference }}</td>
|
||||
<td></td>
|
||||
<td align='right'>
|
||||
{{
|
||||
formatAmount($subBooking->signedAmount(), true, true)
|
||||
}}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
|
||||
<button type="submit" id="submit">Ja</button>
|
||||
<button class='btn btn-primary' type="submit" id="submit">Ja</button>
|
||||
<a href="{{ url()->previous() }}" class="btn btn-outline-secondary">Nein</a>
|
||||
</div>
|
||||
</form>
|
||||
@endsection
|
||||
|
||||
|
||||
Reference in New Issue
Block a user