Vacancy tweaks

This commit is contained in:
Miguel Nogueira 2020-09-03 02:26:05 +01:00
parent 7e58c3af6b
commit 3fe3df7357
3 changed files with 4 additions and 4 deletions

View File

@ -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')

View File

@ -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')

View File

@ -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');