feat: Add work mode selection to job form

This commit is contained in:
KerollesFathy
2025-09-24 14:24:08 +00:00
parent 7ee81d4693
commit 1a53a9f30b

View File

@@ -27,6 +27,13 @@
:options="jobTypes"
:required="true"
/>
<FormControl
v-model="job.work_mode"
:label="__('Work Mode')"
type="select"
:options="workModes"
:required="true"
/>
</div>
<div class="space-y-4">
<FormControl
@@ -225,6 +232,7 @@ const job = reactive({
location: '',
country: '',
type: 'Full Time',
work_mode: 'On-site',
status: 'Open',
company_name: '',
company_website: '',
@@ -302,6 +310,14 @@ const jobTypes = computed(() => {
]
})
const workModes = computed(() => {
return [
{ label: 'On site', value: 'On-site' },
{ label: 'Hybrid', value: 'Hybrid' },
{ label: 'Remote', value: 'Remote' },
]
})
const jobStatuses = computed(() => {
return [
{ label: 'Open', value: 'Open' },