Naprawa routingu web4

This commit is contained in:
czup 2020-02-01 02:33:06 +01:00
parent 543a98f6c9
commit 4788f3f62d
3 changed files with 6 additions and 6 deletions

View File

@ -23,7 +23,7 @@
Jednostka nie istnieje
@else
<form action="wyjazdy/pdf/all/" method="post" style="display:inline;">
<form action="{{ route('operations.allPDF') }}" method="post" style="display:inline;">
{{ csrf_field() }}
<input type="hidden" class="form-control" name="fireStationID" value="{{auth()->user()->fireStationID}}">
<button class="btn btn-dark" type="submit">Drukuj wszystkie</button>
@ -65,7 +65,7 @@
<td>
<a href="{{ URL::asset('wyjazdy/edit/'.$operation->id) }}" class="btn btn-secondary" role="button">Edytuj</a>
<button class="btn btn-danger" type="submit" id="{{$operation->id}}" onclick="deleteButton('{{$operation->id}}')">Usuń</button>
<form action="wyjazdy/pdf/single/" method="post" style="display:inline;">
<form action="{{ route('operations.singlePDF') }}" method="post" style="display:inline;">
{{ csrf_field() }}
<input type="hidden" class="form-control" name="operationID" value="{{$operation->id}}">
<button class="btn btn-dark" type="submit">Drukuj</button>

View File

@ -22,7 +22,7 @@
@else
<div>
<form action="jednostka/pdf/single/" method="post" style="display:inline;">
<form action="{{ route('fireStation.singlePDF') }}" method="post" style="display:inline;">
{{ csrf_field() }}
<input type="hidden" class="form-control" name="fireStationID" value="{{auth()->user()->fireStationID}}">
<button class="btn btn-dark" type="submit">Drukuj informacje</button>

View File

@ -38,8 +38,8 @@ Route::post('/wyjazdy', 'operationsController@store')->name('operationController
Route::post('/wyjazdy/edit/', 'operationsController@update')->name('operationController.update');
Route::get('/wyjazdy/edit/{id}', 'operationsController@editForm');
Route::delete('wyjazdy/{id}', 'operationsController@destroy')->name('operationController.destroy');
Route::post('wyjazdy/pdf/single/', 'operationsController@createSingleOperationPDF');
Route::post('wyjazdy/pdf/all/', 'operationsController@createAllOperationsPDF');
Route::post('wyjazdy/pdf/single/', 'operationsController@createSingleOperationPDF')->name('operations.singlePDF');
Route::post('wyjazdy/pdf/all/', 'operationsController@createAllOperationsPDF')->name('operations.allPDF');
Route::get('/register', 'RegistrationController@create');
Route::post('/register', 'RegistrationController@store');
@ -71,7 +71,7 @@ Route::get('/jednostka', 'fireStationController@create');
Route::post('/jednostka', 'fireStationController@store');
Route::get('/jednostka/edit', 'fireStationController@editForm');
Route::post('/jednostka/edit', 'fireStationController@update');
Route::post('/jednostka/pdf/single', 'fireStationController@createSingleUnitPDF');
Route::post('/jednostka/pdf/single', 'fireStationController@createSingleUnitPDF')->name('fireStation.singlePDF');
Route::get('/jednostka/getcounties/{id}','DataController@getCounties');
Route::get('/jednostka/getcommunities/{id}','DataController@getCommunities');