forked from s421507/eOSP2
Próbwa naprawy web2
This commit is contained in:
parent
742fc3f7fe
commit
fc50bcfc2a
@ -195,7 +195,7 @@ class documentCreators extends Fpdf
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function createSingleUnitPDF(){
|
public function createSingleUnitPDF2(){
|
||||||
$fireStation = fireStation::find(auth()->user()->fireStationID);
|
$fireStation = fireStation::find(auth()->user()->fireStationID);
|
||||||
$pdf = new AlphaPDF();
|
$pdf = new AlphaPDF();
|
||||||
$fill = false;
|
$fill = false;
|
||||||
|
@ -34,7 +34,7 @@ class fireStationController extends Controller
|
|||||||
return view('fireStationEdit', ["fireStation" => $fireStation], compact('voivodeships'));
|
return view('fireStationEdit', ["fireStation" => $fireStation], compact('voivodeships'));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return redirect()->to('/jednostka');
|
return redirect()->to('/jednostka');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function store()
|
public function store()
|
||||||
@ -160,7 +160,7 @@ class fireStationController extends Controller
|
|||||||
if (auth()->user() != null && auth()->user()->fireStationID != null) {
|
if (auth()->user() != null && auth()->user()->fireStationID != null) {
|
||||||
$request = request();
|
$request = request();
|
||||||
$test = new documentCreators();
|
$test = new documentCreators();
|
||||||
$test->createSingleUnitPDF($request->fireStationID);
|
$test->createSingleUnitPDF2($request->fireStationID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,7 @@ 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');
|
||||||
Route::post('/strazacy/pdf/all/', 'fireFightersController@CreateAllFireFightersPDF');
|
Route::post('/strazacy/pdf/all', 'fireFightersController@CreateAllFireFightersPDF');
|
||||||
Route::post('strazacy/activate', 'fireFightersController@activate');
|
Route::post('strazacy/activate', 'fireFightersController@activate');
|
||||||
Route::post('strazacy/deactivate', 'fireFightersController@deactivate');
|
Route::post('strazacy/deactivate', 'fireFightersController@deactivate');
|
||||||
|
|
||||||
@ -71,7 +71,7 @@ Route::get('/jednostka', 'fireStationController@create');
|
|||||||
Route::post('/jednostka', 'fireStationController@store');
|
Route::post('/jednostka', 'fireStationController@store');
|
||||||
Route::get('/jednostka/edit', 'fireStationController@editForm');
|
Route::get('/jednostka/edit', 'fireStationController@editForm');
|
||||||
Route::post('/jednostka/edit', 'fireStationController@update');
|
Route::post('/jednostka/edit', 'fireStationController@update');
|
||||||
Route::post('/jednostka/pdf/single/', 'fireStationController@createSingleUnitPDF');
|
Route::post('/jednostka/pdf/single', 'fireStationController@createSingleUnitPDF');
|
||||||
|
|
||||||
Route::get('/jednostka/getcounties/{id}','DataController@getCounties');
|
Route::get('/jednostka/getcounties/{id}','DataController@getCounties');
|
||||||
Route::get('/jednostka/getcommunities/{id}','DataController@getCommunities');
|
Route::get('/jednostka/getcommunities/{id}','DataController@getCommunities');
|
||||||
|
Loading…
Reference in New Issue
Block a user