Skip to content

Commit

Permalink
chore(candidature form): add Allow Incoming checkbox to form manage…
Browse files Browse the repository at this point in the history
…ment dashboard
  • Loading branch information
harshtandiya committed Oct 23, 2024
1 parent 1517869 commit 75220f1
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions frontend/src/pages/election/ManageNominationForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,24 @@
/>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4 m-4">
<div class="flex items-start col-span-2 gap-2 mb-3">
<Checkbox
id="accept_incoming_applications"
v-model="candidateForm.data.accept_incoming_applications"
binary
/>
<div class="flex flex-col items-start">
<label
for="accept_incoming_applications"
class="text-base font-medium"
>
Accept All Incoming Applications
</label>
<small class="text-primary-600">
Accept all the incoming candidature applications automatically
</small>
</div>
</div>
<FloatLabel variant="on">
<Select
id="formStatus"
Expand Down Expand Up @@ -87,6 +105,7 @@ import FloatLabel from 'primevue/floatlabel'
import Select from 'primevue/select'
import Editor from 'primevue/editor'
import Chip from 'primevue/chip'
import Checkbox from 'primevue/checkbox'
import Sidebar from '@/components/Sidebar.vue'
import FormBaseFields from '@/components/candidature/FormBaseFields.vue'
import FormBuilder from '@/components/form/Builder.vue'
Expand Down Expand Up @@ -156,6 +175,8 @@ const saveForm = createResource({
doctype: 'Election Nomination Form',
name: route.params.id,
fieldname: {
accept_incoming_applications:
candidateForm.data.accept_incoming_applications,
status: candidateForm.data.status,
description: candidateForm.data.description,
fields_meta: JSON.stringify(fields.value),
Expand Down

0 comments on commit 75220f1

Please sign in to comment.