forked from s421507/eOSP2
Naprawa routingu web4
This commit is contained in:
parent
543a98f6c9
commit
4788f3f62d
@ -23,7 +23,7 @@
|
|||||||
Jednostka nie istnieje
|
Jednostka nie istnieje
|
||||||
@else
|
@else
|
||||||
|
|
||||||
<form action="wyjazdy/pdf/all/" method="post" style="display:inline;">
|
<form action="{{ route('operations.allPDF') }}" 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 wszystkie</button>
|
<button class="btn btn-dark" type="submit">Drukuj wszystkie</button>
|
||||||
@ -65,7 +65,7 @@
|
|||||||
<td>
|
<td>
|
||||||
<a href="{{ URL::asset('wyjazdy/edit/'.$operation->id) }}" class="btn btn-secondary" role="button">Edytuj</a>
|
<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>
|
<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() }}
|
{{ csrf_field() }}
|
||||||
<input type="hidden" class="form-control" name="operationID" value="{{$operation->id}}">
|
<input type="hidden" class="form-control" name="operationID" value="{{$operation->id}}">
|
||||||
<button class="btn btn-dark" type="submit">Drukuj</button>
|
<button class="btn btn-dark" type="submit">Drukuj</button>
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
@else
|
@else
|
||||||
<div>
|
<div>
|
||||||
|
|
||||||
<form action="jednostka/pdf/single/" method="post" style="display:inline;">
|
<form action="{{ route('fireStation.singlePDF') }}" 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 informacje</button>
|
<button class="btn btn-dark" type="submit">Drukuj informacje</button>
|
||||||
|
@ -38,8 +38,8 @@ Route::post('/wyjazdy', 'operationsController@store')->name('operationController
|
|||||||
Route::post('/wyjazdy/edit/', 'operationsController@update')->name('operationController.update');
|
Route::post('/wyjazdy/edit/', 'operationsController@update')->name('operationController.update');
|
||||||
Route::get('/wyjazdy/edit/{id}', 'operationsController@editForm');
|
Route::get('/wyjazdy/edit/{id}', 'operationsController@editForm');
|
||||||
Route::delete('wyjazdy/{id}', 'operationsController@destroy')->name('operationController.destroy');
|
Route::delete('wyjazdy/{id}', 'operationsController@destroy')->name('operationController.destroy');
|
||||||
Route::post('wyjazdy/pdf/single/', 'operationsController@createSingleOperationPDF');
|
Route::post('wyjazdy/pdf/single/', 'operationsController@createSingleOperationPDF')->name('operations.singlePDF');
|
||||||
Route::post('wyjazdy/pdf/all/', 'operationsController@createAllOperationsPDF');
|
Route::post('wyjazdy/pdf/all/', 'operationsController@createAllOperationsPDF')->name('operations.allPDF');
|
||||||
|
|
||||||
Route::get('/register', 'RegistrationController@create');
|
Route::get('/register', 'RegistrationController@create');
|
||||||
Route::post('/register', 'RegistrationController@store');
|
Route::post('/register', 'RegistrationController@store');
|
||||||
@ -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')->name('fireStation.singlePDF');
|
||||||
|
|
||||||
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