1
0
forked from s421507/eOSP2

Naprawa pliku web3

This commit is contained in:
czup 2020-02-01 02:25:25 +01:00
parent fc50bcfc2a
commit 5a466ae056
2 changed files with 4 additions and 4 deletions

View File

@ -71,7 +71,7 @@
@else @else
@if(auth()->user()->accessLevel() == 50) @if(auth()->user()->accessLevel() == 50)
<form action="strazacy/pdf/all/" method="post" style="display:inline;"> <form action="{{ route('fireFighters.pdfAll') }}" method="post" style="display:inline;">
{{ csrf_field() }} {{ csrf_field() }}
<input type="hidden" class="form-control" name="fireStationID" value="{{auth()->user()->fireStationID}}"> <input type="hidden" class="form-control" name="fireStationID" value="{{auth()->user()->fireStationID}}">
<button class="btn btn-dark" type="submit">Drukuj wszystkich</button> <button class="btn btn-dark" type="submit">Drukuj wszystkich</button>
@ -115,7 +115,7 @@
<a href="{{ URL::asset('strazacy/edit/'.$user->id) }}" class="btn btn-secondary" role="button">Edytuj</a> <a href="{{ URL::asset('strazacy/edit/'.$user->id) }}" class="btn btn-secondary" role="button">Edytuj</a>
<a href="{{ URL::asset('strazacy/odznaczenia/'.$user->id) }}" class="btn btn-success" role="button">Odznaczenia</a> <a href="{{ URL::asset('strazacy/odznaczenia/'.$user->id) }}" class="btn btn-success" role="button">Odznaczenia</a>
<form action="strazacy/pdf/single/" method="post" style="display:inline;"> <form action="{{ route('fireFighters.pdfSingle') }}" method="post" style="display:inline;">
{{ csrf_field() }} {{ csrf_field() }}
<input type="hidden" class="form-control" name="userID" value="{{$user->id}}"> <input type="hidden" class="form-control" name="userID" value="{{$user->id}}">
<button class="btn btn-dark" type="submit">Drukuj</button> <button class="btn btn-dark" type="submit">Drukuj</button>

View File

@ -56,8 +56,8 @@ Route::get('/strazacy/add', 'fireFightersController@addForm');
Route::post('/strazacy', 'fireFightersController@store'); Route::post('/strazacy', 'fireFightersController@store');
Route::get('/strazacy/edit/{id}', 'fireFightersController@editForm'); Route::get('/strazacy/edit/{id}', 'fireFightersController@editForm');
Route::post('/strazacy/edit', 'fireFightersController@update'); Route::post('/strazacy/edit', 'fireFightersController@update');
Route::post('/strazacy/pdf/single/', 'fireFightersController@createSingleFireFighterPDF'); Route::post('/strazacy/pdf/single', 'fireFightersController@createSingleFireFighterPDF')->name('fireFighters.pdfSingle');
Route::post('/strazacy/pdf/all', 'fireFightersController@CreateAllFireFightersPDF'); Route::post('/strazacy/pdf/all', 'fireFightersController@CreateAllFireFightersPDF')->name('fireFighters.pdfAll');
Route::post('strazacy/activate', 'fireFightersController@activate'); Route::post('strazacy/activate', 'fireFightersController@activate');
Route::post('strazacy/deactivate', 'fireFightersController@deactivate'); Route::post('strazacy/deactivate', 'fireFightersController@deactivate');