enhanced ui and layout

This commit is contained in:
vagrant
2018-10-14 14:59:48 +00:00
parent b669cab4a7
commit e8c5ffe502
16 changed files with 376 additions and 259 deletions
+12 -7
View File
@@ -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