From 3fe3df73573bc0a4583e116bddfe4e393d50cc63 Mon Sep 17 00:00:00 2001 From: Miguel Nogueira Date: Thu, 3 Sep 2020 02:26:05 +0100 Subject: [PATCH] Vacancy tweaks --- .../views/dashboard/administration/editposition.blade.php | 2 +- resources/views/dashboard/administration/positions.blade.php | 2 +- routes/web.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/views/dashboard/administration/editposition.blade.php b/resources/views/dashboard/administration/editposition.blade.php index beffcbd..b97f86b 100644 --- a/resources/views/dashboard/administration/editposition.blade.php +++ b/resources/views/dashboard/administration/editposition.blade.php @@ -51,7 +51,7 @@

{{__('messages.form_consistency')}}

-
+ @csrf @method('PATCH') diff --git a/resources/views/dashboard/administration/positions.blade.php b/resources/views/dashboard/administration/positions.blade.php index 7a255dc..001f460 100644 --- a/resources/views/dashboard/administration/positions.blade.php +++ b/resources/views/dashboard/administration/positions.blade.php @@ -189,7 +189,7 @@ {{$vacancy->created_at}} - + @if ($vacancy->vacancyStatus == 'OPEN') diff --git a/routes/web.php b/routes/web.php index 6fd88bb..ac80992 100644 --- a/routes/web.php +++ b/routes/web.php @@ -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');