Implemented deletion and creation of people.

This commit is contained in:
Lukas Halbritter
2018-09-25 15:24:31 +02:00
parent 494c5cf47c
commit 377230ef73
4 changed files with 116 additions and 14 deletions
+7 -7
View File
@@ -1,8 +1,8 @@
<ul>
<li><a href='/people'>Personen</a><br /></li>
<li><a href='/people'>Kassenbuch</a><br /></li>
<li><a href='/people'>F / V</a><br /></li>
<li><a href='/people'>Personen</a><br /></li>
<li><a href='/people'>Personen</a><br /></li>
<li><a href='/people'>Personen</a><br /></li>
<ul style='list-style-type: none; padding: 0'>
<li><a href='/people'>Personen</a></li>
<li><a href='/people'>Kassenbuch</a></li>
<li><a href='/people'>F / V</a></li>
<li><a href='/people'>Personen</a></li>
<li><a href='/people'>Personen</a></li>
<li><a href='/people'>Personen</a></li>
</ul>
+4
View File
@@ -0,0 +1,4 @@
@extends('layout.forms.person')
@section('title', 'Neue Person')
+22
View File
@@ -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