feat: add age requirement field to vacancies, defaulting to 16
Signed-off-by: miguel456 <me@nogueira.codes>
This commit is contained in:
@@ -110,6 +110,10 @@
|
||||
<label for="remainingSlots">{{__('Remaining slots')}}</label>
|
||||
<input type="text" class="form-control" value="{{ $vacancy->vacancyCount }}" id="remainingSlots" name="vacancyCount" />
|
||||
|
||||
<label for="requiredAge">{{__('Minimum age')}}</label>
|
||||
<input type="number" min="13" max="100" class="form-control" value="{{ $vacancy->requiredAge }}" id="requiredAge" name="requiredAge" />
|
||||
|
||||
|
||||
<div class="form-check mt-4">
|
||||
<input type="hidden" value="off" name="requireDiscordAccount">
|
||||
<input class="form-check-input" type="checkbox" id="requireDiscordAccount" name="requireDiscordAccount" @if($vacancy->requiresDiscord) checked @endif>
|
||||
|
@@ -88,6 +88,10 @@
|
||||
<label for="vacancyCount">{{__('Free slots')}}</label>
|
||||
<input rel="txtTooltip" title="{{__('The number of free slots decreases each time an applicant is approved for this vacancy.')}}" data-toggle="tooltip" data-placement="bottom" type="text" id="vacancyCount" name="vacancyCount" class="form-control">
|
||||
|
||||
<label for="requiredAge">{{__('Minimum age')}}</label>
|
||||
<input rel="txtTooltip" title="{{__('How old must users be to apply for this vacancy?')}}" data-toggle="tooltip" data-placement="bottom" type="number" min="13" max="100" id="requiredAge" name="requiredAge" class="form-control">
|
||||
|
||||
|
||||
<div class="form-check mt-4">
|
||||
<input type="hidden" value="off" name="requireDiscordAccount">
|
||||
<input class="form-check-input" type="checkbox" value="" id="requireDiscordAccount" name="requireDiscordAccount">
|
||||
|
@@ -80,7 +80,7 @@
|
||||
<p class="text-bold">{{__('You are applying for: :vacancyNameValue', ['vacancyNameValue' => $vacancy->vacancyName])}}</p>
|
||||
|
||||
<p>{{__("We're glad you've decided to apply. Generally, applications take 48 hours to be processed and reviewed. Depending on the circumstances and the volume of applications, you may receive an answer in a shorter time.")}}</p>
|
||||
<p>{{__('Please fill out the form below. Keep all answers concise and complete. Please keep in mind that the age requirement is at least :ageUpperLimitSettingValue years old.', ['ageUpperLimitSettingValue' => '16']) }}.</p>
|
||||
<p>{{__('Please fill out the form below. Keep all answers concise and complete. Please keep in mind that you must be at least :ageUpperLimitSettingValue years old to apply.', ['ageUpperLimitSettingValue' => $vacancy->requiredAge]) }}</p>
|
||||
<p class="text-bold">{{__('Asking about your application will result in instant denial. Everything you need to know is here.')}}.</p>
|
||||
|
||||
<p><i class="fab fa-markdown"></i> {!! __('All fields support <a target="_blank" href="https://www.markdownguide.org/cheat-sheet/">Markdown</a>') !!}</p>
|
||||
|
Reference in New Issue
Block a user