enhanced ui and layout
This commit is contained in:
@@ -3,20 +3,25 @@
|
||||
@section('title', 'Person löschen')
|
||||
|
||||
@section('subnav')
|
||||
<a href='{{ url()->previous() }}'>Zurück</a>
|
||||
<li class="nav-item">
|
||||
<a href="{{ url()->previous() }}" class="btn btn-outline-primary">Zurück</a>
|
||||
</li>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<form action='/people/{{ $person->id }}' method='post'>
|
||||
<form action='/people/{{ $person->id }}' method='post' class="mt-4 text-center">
|
||||
{{ method_field('delete') }}
|
||||
{{ csrf_field() }}
|
||||
@if ($person->isEven())
|
||||
<p>Soll <b>{{ $person->fullName() }}</b> wirklich gelöscht werden?</p>
|
||||
<button type="submit" id="submit">Ja</button>
|
||||
<div class="alert alert-danger">
|
||||
<p>Soll <b>{{ $person->fullName() }}</b> wirklich gelöscht werden?</p>
|
||||
<button type="submit" id="submit">Ja</button>
|
||||
</div>
|
||||
@else
|
||||
<p><b>{{ $person->fullName() }}</b> kann nicht gelöscht werden, da es noch
|
||||
offene Forderungen oder Verbindlichkeiten gibt.</p>
|
||||
<div class="alert alert-warning">
|
||||
<b>{{ $person->fullName() }}</b> kann nicht gelöscht werden, da es noch
|
||||
offene Forderungen oder Verbindlichkeiten gibt.
|
||||
</div>
|
||||
@endif
|
||||
</form>
|
||||
@endsection
|
||||
|
||||
|
||||
Reference in New Issue
Block a user