From 75e4ed82769143be8968edf9110e6e2fd5d85028 Mon Sep 17 00:00:00 2001 From: Mateja Date: Sun, 18 Oct 2020 22:09:53 +0200 Subject: forms and migrations --- app/Models/SpecialCall.php | 11 ++ ...2020_10_18_142649_create_reservations_table.php | 10 ++ ...020_10_18_183257_create_special_calls_table.php | 33 ++++ resources/views/layouts/app.blade.php | 6 +- resources/views/pages/login.blade.php | 14 ++ resources/views/pages/reserve.blade.php | 176 +++++++++++++++++++++ 6 files changed, 247 insertions(+), 3 deletions(-) create mode 100644 app/Models/SpecialCall.php create mode 100644 database/migrations/2020_10_18_183257_create_special_calls_table.php diff --git a/app/Models/SpecialCall.php b/app/Models/SpecialCall.php new file mode 100644 index 0000000..0e537fe --- /dev/null +++ b/app/Models/SpecialCall.php @@ -0,0 +1,11 @@ +id(); $table->boolean('approved')->default(false); + $table->string('specialCall'); + $table->dateTime('fromTime'); + $table->dateTime('toTime'); + $table->string('frequencies', 255); + $table->string('modes', 255); + $table->string('operatorCall'); + $table->string('operatorName'); + $table->string('operatorEmail'); + $table->string('operatorPhone', 50); + $table->integer('qso')->default(0); $table->timestamps(); }); } diff --git a/database/migrations/2020_10_18_183257_create_special_calls_table.php b/database/migrations/2020_10_18_183257_create_special_calls_table.php new file mode 100644 index 0000000..07e92be --- /dev/null +++ b/database/migrations/2020_10_18_183257_create_special_calls_table.php @@ -0,0 +1,33 @@ +id(); + $table->string('sign')->unique(); + $table->text('description'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('special_calls'); + } +} diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index 77220f9..13e2c6a 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -7,9 +7,6 @@ - - - Main page @@ -19,5 +16,8 @@
@yield('content')
+ + + diff --git a/resources/views/pages/login.blade.php b/resources/views/pages/login.blade.php index b4a9f19..f75fb78 100644 --- a/resources/views/pages/login.blade.php +++ b/resources/views/pages/login.blade.php @@ -1,4 +1,18 @@ @extends('layouts.app') @section('content') +
+ @csrf +
+ + +
+
+ + +
+
+ +
+
@endsection() diff --git a/resources/views/pages/reserve.blade.php b/resources/views/pages/reserve.blade.php index b4a9f19..777325b 100644 --- a/resources/views/pages/reserve.blade.php +++ b/resources/views/pages/reserve.blade.php @@ -1,4 +1,180 @@ @extends('layouts.app') @section('content') +
+ + +
+ + +
+ + +
+ + +
+ +
+ + +
+ + +
+ + +
+ +
+ + +
+ + +
+ I will be active on bands: +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ +
+ I will use modes: + +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ +
+
@endsection() -- cgit v1.2.3