Implemented projects.

This commit is contained in:
Lukas Halbritter
2018-10-08 11:14:47 +02:00
parent bcdf167b82
commit 4e601b964f
9 changed files with 315 additions and 2 deletions
@@ -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