feat: Add work mode selection to job form
This commit is contained in:
@@ -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' },
|
||||
|
||||
Reference in New Issue
Block a user