From 4e3e3eecc106ce73eb05a4be67348a015563da56 Mon Sep 17 00:00:00 2001 From: s421507 Date: Wed, 25 Mar 2020 00:20:45 +0100 Subject: [PATCH] =?UTF-8?q?Push=20mi=C4=99dzy=20komputerami?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/.gitignore | 2 + .idea/dataSources.xml | 11 ++ .idea/php.xml | 3 + .idea/workspace.xml | 146 ++++++++++++++++-- .../Controllers/RegistrationController.php | 6 +- app/Http/Controllers/a.pdf | Bin 0 -> 90204 bytes .../documentApplicationController.php | 28 ++++ app/Http/Controllers/documentCreators.php | 1 - .../Controllers/documentOverlayController.php | 50 ++++++ app/Http/Controllers/documentTemplates/a.pdf | Bin 0 -> 96046 bytes .../wniosek_o_nadanie_odznaczenia.pdf | Bin 0 -> 90204 bytes .../wniosek_o_nadanie_odznaczenia.pdf | Bin 0 -> 90204 bytes composer.json | 1 + composer.lock | 146 +++++++++++++++++- database/seeds/DatabaseSeeder.php | 8 +- .../views/documentApplicationForm.blade.php | 33 ++++ resources/views/documents.blade.php | 5 + resources/views/inc/menu.blade.php | 2 +- routes/web.php | 4 + 19 files changed, 420 insertions(+), 26 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/dataSources.xml create mode 100644 app/Http/Controllers/a.pdf create mode 100644 app/Http/Controllers/documentApplicationController.php create mode 100644 app/Http/Controllers/documentOverlayController.php create mode 100644 app/Http/Controllers/documentTemplates/a.pdf create mode 100644 app/Http/Controllers/documentTemplates/wniosek_o_nadanie_odznaczenia.pdf create mode 100644 app/Http/Controllers/wniosek_o_nadanie_odznaczenia.pdf create mode 100644 resources/views/documentApplicationForm.blade.php diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..cd04992 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,2 @@ +# Datasource local storage ignored files +/dataSources.local.xml \ No newline at end of file diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml new file mode 100644 index 0000000..a3b10be --- /dev/null +++ b/.idea/dataSources.xml @@ -0,0 +1,11 @@ + + + + + mysql.8 + true + com.mysql.cj.jdbc.Driver + jdbc:mysql://127.0.0.1:3306/homestead + + + \ No newline at end of file diff --git a/.idea/php.xml b/.idea/php.xml index 8afe83c..42fbc2e 100644 --- a/.idea/php.xml +++ b/.idea/php.xml @@ -101,6 +101,9 @@ + + + diff --git a/.idea/workspace.xml b/.idea/workspace.xml index b0db4a4..217a262 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,8 +2,20 @@ + + + + + - + + + + + + + + + + + + + + + + + + + @foreach ($fireFighters as $fireFighter) + + @endforeach + + + + +
+ +
+ @include('inc.formerrors') + + @endif + @else + Brak autoryzacji + @endif + +@stop diff --git a/resources/views/documents.blade.php b/resources/views/documents.blade.php index cc35612..bb53c33 100644 --- a/resources/views/documents.blade.php +++ b/resources/views/documents.blade.php @@ -23,6 +23,11 @@ {{ csrf_field() }} + +
+ {{ csrf_field() }} + +
@endif @endif @stop diff --git a/resources/views/inc/menu.blade.php b/resources/views/inc/menu.blade.php index 1f22eb2..6f905aa 100644 --- a/resources/views/inc/menu.blade.php +++ b/resources/views/inc/menu.blade.php @@ -6,6 +6,6 @@
  • Pojazdy
  • Strażnica
  • Wyjazdy
  • -{{--
  • Dokumentacja
  • --}} +
  • Dokumentacja
  • diff --git a/routes/web.php b/routes/web.php index 6fff8a4..d8d4a56 100644 --- a/routes/web.php +++ b/routes/web.php @@ -132,3 +132,7 @@ Route::post('/pdf/strazacy', 'pdfController@createViewFireFighters'); Route::get('/forgottenPassword', 'resetPasswordController@create'); Route::post('/forgottenPassword', 'resetPasswordController@reset'); + +Route::get('/pdf/test', 'documentOverlayController@testPdf'); +Route::post('/dokumentacja/wniosek', 'documentApplicationController@create'); +Route::post('/dokumentacja/wniosek/pdf', 'documentApplicationController@printPDF');