Vacancy tweaks
This commit is contained in:
parent
7e58c3af6b
commit
3fe3df7357
@ -51,7 +51,7 @@
|
||||
|
||||
<p class="text-muted"><i class="fas fa-question-circle"></i> {{__('messages.form_consistency')}}</p>
|
||||
|
||||
<form method="POST" id="editPositionForm" action="{{ route('updatePosition', ['position' => $vacancy->id]) }}">
|
||||
<form method="POST" id="editPositionForm" action="{{ route('updatePosition', ['vacancy' => $vacancy->id]) }}">
|
||||
|
||||
@csrf
|
||||
@method('PATCH')
|
||||
|
@ -189,7 +189,7 @@
|
||||
<td>{{$vacancy->created_at}}</td>
|
||||
<td>
|
||||
|
||||
<button type="button" class="btn btn-sm btn-warning" onclick="window.location.href='{{ route('editPosition', ['position' => $vacancy->id]) }}'"><i class="fas fa-edit"></i></button>
|
||||
<button type="button" class="btn btn-sm btn-warning" onclick="window.location.href='{{ route('editPosition', ['vacancy' => $vacancy->id]) }}'"><i class="fas fa-edit"></i></button>
|
||||
|
||||
@if ($vacancy->vacancyStatus == 'OPEN')
|
||||
|
||||
|
@ -191,10 +191,10 @@ Route::group(['prefix' => LaravelLocalization::setLocale(), 'middleware' => [ 'l
|
||||
->name('savePosition');
|
||||
|
||||
|
||||
Route::get('positions/edit/{position}', 'VacancyController@edit')
|
||||
Route::get('positions/edit/{vacancy}', 'VacancyController@edit')
|
||||
->name('editPosition');
|
||||
|
||||
Route::patch('positions/update/{position}', 'VacancyController@update')
|
||||
Route::patch('positions/update/{vacancy}', 'VacancyController@update')
|
||||
->name('updatePosition');
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user