From 9778434772de72f0926f71666617fe9600028921 Mon Sep 17 00:00:00 2001 From: EwelinaLasowy Date: Thu, 28 Apr 2022 07:56:11 +0200 Subject: [PATCH] wip --- .../Http/Controllers/ResumeController.php | 29 +++ resources/js/Pages/Resumes/Create.vue | 219 ++++++++++++++++++ resources/js/Pages/Resumes/Index.vue | 139 +++++++++++ resources/js/Shared/MainMenu.vue | 8 + routes/web.php | 4 + 5 files changed, 399 insertions(+) create mode 100644 app/Infrastructure/Http/Controllers/ResumeController.php create mode 100644 resources/js/Pages/Resumes/Create.vue create mode 100644 resources/js/Pages/Resumes/Index.vue diff --git a/app/Infrastructure/Http/Controllers/ResumeController.php b/app/Infrastructure/Http/Controllers/ResumeController.php new file mode 100644 index 0000000..6426eb0 --- /dev/null +++ b/app/Infrastructure/Http/Controllers/ResumeController.php @@ -0,0 +1,29 @@ + + +
+
+

+ Dodaj CV +

+
+
+

Informacje podstawowe

+
+ +
+ +

+ {{ form.errors.firstName }} +

+
+
+
+ +
+ +

+ {{ form.errors.lastName }} +

+
+
+
+ +
+

Języki - taki bajer jak na JustJoinIT

+
+
+

Wykształcenie

+
+ + Dodaj wykształcenie + +
+ +
+ +
+ +

+ {{ form.errors.firstName }} +

+
+
+
+ +
+ +

+ {{ form.errors.firstName }} +

+
+
+
+ +
+ +

+ {{ form.errors.firstName }} +

+
+
+
+ +
+ +

+ {{ form.errors.firstName }} +

+
+
+
+
+ + Anuluj + + +
+
+
+
+ + + diff --git a/resources/js/Pages/Resumes/Index.vue b/resources/js/Pages/Resumes/Index.vue new file mode 100644 index 0000000..2b5da05 --- /dev/null +++ b/resources/js/Pages/Resumes/Index.vue @@ -0,0 +1,139 @@ + + + diff --git a/resources/js/Shared/MainMenu.vue b/resources/js/Shared/MainMenu.vue index dc7305e..9a0042d 100644 --- a/resources/js/Shared/MainMenu.vue +++ b/resources/js/Shared/MainMenu.vue @@ -295,6 +295,7 @@ import { DocumentTextIcon, AdjustmentsIcon, KeyIcon, + TemplateIcon, } from '@heroicons/vue/outline' import { CheckIcon, ChevronDownIcon } from '@heroicons/vue/solid' @@ -372,6 +373,13 @@ const navigation = computed(() => icon: KeyIcon, can: true, }, + { + name: 'CV', + href: '/resumes', + section: 'Resumes', + icon: TemplateIcon, + can: true, + } ].filter(item => item.can)) diff --git a/routes/web.php b/routes/web.php index f35e8f6..3a43f81 100644 --- a/routes/web.php +++ b/routes/web.php @@ -10,6 +10,7 @@ use Toby\Infrastructure\Http\Controllers\HolidayController; use Toby\Infrastructure\Http\Controllers\KeysController; use Toby\Infrastructure\Http\Controllers\LogoutController; use Toby\Infrastructure\Http\Controllers\MonthlyUsageController; +use Toby\Infrastructure\Http\Controllers\ResumeController; use Toby\Infrastructure\Http\Controllers\SelectYearPeriodController; use Toby\Infrastructure\Http\Controllers\TimesheetController; use Toby\Infrastructure\Http\Controllers\UserController; @@ -34,6 +35,9 @@ Route::middleware(["auth", TrackUserLastActivity::class])->group(function (): vo ->except("show") ->whereNumber("holiday"); + Route::resource("resumes", ResumeController::class) + ->whereNumber("resume"); + Route::get("/keys", [KeysController::class, "index"]); Route::post("/keys", [KeysController::class, "store"]); Route::delete("/keys/{key}", [KeysController::class, "destroy"]);