Entrypoint: Add Application Page

This commit finally adds the dynamically rendered form that changes according to how the user builds their form.
It also fragments the header and footer for the main page into their own separate files for ease of access later.
Vacancy status has also been added to the Vacancies in DB.
All staff application endpoints have also been moved to under the user application endpoints group, for ease of use (duplicated route group).
This commit is contained in:
2020-05-08 06:06:24 +01:00
parent 49c1ed4698
commit 4c6a435e34
11 changed files with 318 additions and 121 deletions

View File

@@ -30,7 +30,11 @@
<div class="card-header text-center">
<h4 class="card-title">{{$position->vacancyName}}</h4>
@if ($position->vacancyCount == 1)
<p class="card-subtitle">There is <span class="badge badge-success">{{$position->vacancyCount}}</span> open position!</p>
@else
<p class="card-subtitle">There are <span class="badge badge-success">{{$position->vacancyCount}}</span> open positions!</p>
@endif
</div>
@@ -45,8 +49,7 @@
<div class="card-footer text-center">
<button type="button" class="btn btn-success">Apply</button>
<button type="button" class="btn btn-info">Learn More</button>
<button type="button" class="btn btn-success" onclick="window.location.href='{{route('renderApplicationForm', ['vacancySlug' => $position->vacancySlug])}}'">Apply</button>
</div>