Implemented deletion and creation of people.
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
@extends('layout.forms.person')
|
||||
|
||||
@section('title', 'Neue Person')
|
||||
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
@extends('layout.master')
|
||||
|
||||
@section('title', 'Person löschen')
|
||||
|
||||
@section('subnav')
|
||||
<a href='{{ url()->previous() }}'>Zurück</a>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<form action='/people/{{ $person->id }}' method='post'>
|
||||
{{ 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>
|
||||
@else
|
||||
<p><b>{{ $person->fullName() }}</b> kann nicht gelöscht werden, da es noch
|
||||
offene Forderungen oder Verbindlichkeiten gibt.</p>
|
||||
@endif
|
||||
</form>
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user