Added view for creating a new booking.

This commit is contained in:
Lukas Halbritter
2018-10-04 20:38:02 +02:00
parent e6ef75e59d
commit e5386fe7e7
2 changed files with 55 additions and 0 deletions
@@ -0,0 +1,51 @@
@extends('layout.master')
@section('subnav')
<a href='{{ url()->previous() }}'>Zurück</a>
@endsection
@section('content')
<h1>@yield('title')</h1>
<form action="/bookings" method='post'>
{{ csrf_field() }}
<table>
<tr>
<td>{{ Form::label('date', 'Datum') }}</td>
<td>{{ Form::date('date') }}</td>
</tr>
<tr>
<td>{{ Form::label('reference', 'Buchungstext') }}</td>
<td>{{ Form::text('reference') }}</td>
</tr>
<tr>
<td>{{ Form::label('person_or_company', 'Person / Firma') }}</td>
<td>{{ Form::text('person_or_company') }}</td>
</tr>
<tr>
<td>{{ Form::label('amount', 'Betrag') }}</td>
<td>{{ Form::text('amount') }}</td>
</tr>
<tr>
<td>{{ Form::label('account_type_id', 'Konto') }}</td>
<td>{{ Form::select('account_type_id', $accountTypeArray, 'placeholder',
['placeholder' => 'Hier auswählen ...']) }}</td>
</tr>
<tr>
<td>{{ Form::label('person_target_id', 'Personenkonto') }}</td>
<td>{{ Form::select('person_target_id', $openTargetsArray, 'placeholder',
['placeholder' => 'Hier auswählen ...']) }}</td>
</tr>
<tr>
<td>{{ Form::label('project_id', 'Projekt') }}</td>
<td>{{ Form::select('project_id', $projectsArray, 'placeholder',
['placeholder' => 'Hier auswählen ...']) }}</td>
</tr>
<tr>
<td>{{ Form::label('note', 'Anmerkung') }}</td>
<td>{{ Form::textarea('note') }}</td>
</tr>
</table>
<button type="submit" id="submit">Speichern</button>
</form>
@endsection