From e5386fe7e7055f396f07d6fed3d2d92662239739 Mon Sep 17 00:00:00 2001 From: Lukas Halbritter Date: Thu, 4 Oct 2018 20:38:02 +0200 Subject: [PATCH] Added view for creating a new booking. --- resources/views/bookings/create.blade.php | 4 ++ .../layout/forms/bookings/create.blade.php | 51 +++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 resources/views/bookings/create.blade.php create mode 100644 resources/views/layout/forms/bookings/create.blade.php diff --git a/resources/views/bookings/create.blade.php b/resources/views/bookings/create.blade.php new file mode 100644 index 0000000..9481f50 --- /dev/null +++ b/resources/views/bookings/create.blade.php @@ -0,0 +1,4 @@ +@extends('layout.forms.bookings.create') + +@section('title', 'Neue Buchung') + diff --git a/resources/views/layout/forms/bookings/create.blade.php b/resources/views/layout/forms/bookings/create.blade.php new file mode 100644 index 0000000..5e26cb7 --- /dev/null +++ b/resources/views/layout/forms/bookings/create.blade.php @@ -0,0 +1,51 @@ +@extends('layout.master') + +@section('subnav') + Zurück +@endsection + +@section('content') +

@yield('title')

+
+ {{ csrf_field() }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{{ Form::label('date', 'Datum') }}{{ Form::date('date') }}
{{ Form::label('reference', 'Buchungstext') }}{{ Form::text('reference') }}
{{ Form::label('person_or_company', 'Person / Firma') }}{{ Form::text('person_or_company') }}
{{ Form::label('amount', 'Betrag') }}{{ Form::text('amount') }}
{{ Form::label('account_type_id', 'Konto') }}{{ Form::select('account_type_id', $accountTypeArray, 'placeholder', + ['placeholder' => 'Hier auswählen ...']) }}
{{ Form::label('person_target_id', 'Personenkonto') }}{{ Form::select('person_target_id', $openTargetsArray, 'placeholder', + ['placeholder' => 'Hier auswählen ...']) }}
{{ Form::label('project_id', 'Projekt') }}{{ Form::select('project_id', $projectsArray, 'placeholder', + ['placeholder' => 'Hier auswählen ...']) }}
{{ Form::label('note', 'Anmerkung') }}{{ Form::textarea('note') }}
+ + +
+@endsection