Implemented projects.
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
@extends('layout.master')
|
||||
|
||||
@section('subnav')
|
||||
<a href='{{ url()->previous() }}'>Zurück</a>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<h3>@yield('title')</h3>
|
||||
<form action="/projects/@if (!is_null($project->id)) {{ $project->id }} @endif" method='post'>
|
||||
@if (!is_null($project->id))
|
||||
{{ method_field('patch') }}
|
||||
@endif
|
||||
{{ csrf_field() }}
|
||||
<table>
|
||||
<tr>
|
||||
<td>{{ Form::label('name', 'Name') }}</td>
|
||||
<td>{{ Form::text('name', $project->name) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ Form::label('start_date', 'Beginn') }}</td>
|
||||
<td>{{ Form::date('start_date', $project->start_date) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ Form::label('end_date', 'Ende') }}</td>
|
||||
<td>{{ Form::date('end_date', $project->end_date) }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
<button type="submit" id="submit">Speichern</button>
|
||||
</form>
|
||||
@endsection
|
||||
@@ -1,4 +1,5 @@
|
||||
<ul style='list-style-type: none; padding: 0'>
|
||||
<li><a href='/people'>Personen</a></li>
|
||||
<li><a href='/bookings/year-{{ date('Y') }}'>Kassenbuch</a></li>
|
||||
<li><a href='/people'>Personen</a></li>
|
||||
<li><a href='/projects/'>Projekte</a></li>
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user