Skip to content

Commit

Permalink
added varinat outine to batch forms
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunlumbcgov committed Nov 6, 2024
1 parent 95a7cf0 commit 378443d
Show file tree
Hide file tree
Showing 17 changed files with 89 additions and 56 deletions.
18 changes: 12 additions & 6 deletions frontend/src/components/Batch/Forms/ArchiveSchoolReportsForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<v-stepper-window>
<v-stepper-window-item value="0">
<v-row>
<v-col sm="2"> Report Type </v-col>
<v-col sm="2">Report Type </v-col>
<v-col sm="10">
<v-select
v-model="reportType"
Expand All @@ -70,15 +70,21 @@
item-title="text"
item-value="value"
label="Select a report type"
variant="outlined"
class="mt-2"
></v-select>
</v-col>
</v-row>
<v-row>
<v-select
v-model="group"
:items="['School', 'All Schools']"
label="Select a group"
></v-select>
<v-col>
<v-select
class="mt-2"
v-model="group"
:items="['School', 'All Schools']"
label="Select a group"
variant="outlined"
></v-select>
</v-col>
</v-row>
<v-row v-if="group == 'School'">
<SchoolInput>
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/components/Batch/Forms/ArchiveStudentsForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@
<v-stepper-window-item value="0">
<v-row>
<v-select
class="mt-2"
v-model="group"
:items="['School', 'All Students']"
label="Select a Group"
label="Select a group"
></v-select>
</v-row>
<v-row v-if="group == 'School'">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
<v-select
v-model="getGroup"
:items="['School Category']"
label="Select a Group"
label="Select a group"
variant="outlined"
></v-select>
</v-row>
<v-row v-if="getGroup == 'School Category'">
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/Batch/Forms/DistrunUserForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@
<v-row>
<v-col>
<v-select
class="mt-2"
variant="outlined"
v-model="group"
:items="groupItems"
label="Select group"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<v-col md="10">
<v-select
v-model="includeStudents"
variant="outlined"
:items="['Current Students', 'Date Range']"
label="Select which students to include"
class=""
Expand All @@ -16,8 +17,9 @@
<v-row v-if="includeStudents === 'Date Range'">
<v-col sm="6">
<v-text-field
variant="outlined"
label="Graduation Date From:"
class="form__input"
class="mt-4"
id="datepicker-birthdate-from"
v-model="gradDateFrom"
type="date"
Expand Down Expand Up @@ -46,8 +48,9 @@
</v-col>
<v-col sm="6">
<v-text-field
variant="outlined"
label="Graduation Date To:"
class="form__input"
class="mt-4"
id="datepicker-birthdate-from"
v-model="gradDateTo"
type="date"
Expand All @@ -67,9 +70,7 @@
new Date(gradDateTo) < new Date(gradDateFrom)
"
>
<span class="text-red"
>End Date must be greater than Start Date.</span
>
<span color="red">End Date must be greater than Start Date.</span>
</div>
<div v-if="v$.gradDateTo.$invalid && !v$.gradDateTo.$pending">
<span class="text-red">End Date is invalid or required.</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
label="Copies"
type="number"
required
variant="outlined"
></v-text-field>
</v-col> </v-row
><v-row>
Expand All @@ -23,6 +24,7 @@
item-title="title"
item-value="value"
label="Where"
variant="outlined"
require
hide-details
></v-select>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
item-value="value"
label="School Category"
class="my-2"
variant="outlined"
outlined
hide-details
></v-select>
Expand All @@ -43,7 +44,7 @@
v-if="!selectAllDistricts"
:items="getDistrictList"
label="Category"
outlined
variant="outlined"
:item-title="districtTitle"
item-value="districtNumber"
></v-autocomplete>
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/components/Batch/Forms/FormInputs/PSIInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
v-model="transmissionMode"
label="Select a Transmission Mode"
:items="[{ title: 'Paper', value: 'PAPER' }, 'FTP']"
outlined
variant="outlined"
small
hide-details
>
Expand All @@ -21,7 +21,7 @@
v-model="psiYear"
type="number"
label="Enter PSI Year"
outlined
variant="outlined"
small
>
</v-text-field>
Expand All @@ -36,7 +36,7 @@
v-model="psi"
maxlength="3"
@input="validatePSI"
outlined
variant="outlined"
/>

<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
:item-title="programTitle"
item-value="programCode"
:item-disabled="true"
variant="outlined"
></v-autocomplete>
</v-col>
<v-col sm="2" class="p-2 my-2">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
</v-col>
<v-col md="8">
<v-autocomplete
variant="outlined"
v-model="mincode"
label="Select a school to include"
:items="getSchoolsList"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
v-model="pen"
@input="validateStudent"
type="number"
class="mr-2"
variant="outlined"
class="mr-2 mt-2"
></v-text-field>
</v-col>
<v-col md="3">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
<v-row>
<v-col>
<v-select
class="mt-2"
v-model="group"
:items="[
{ title: 'Student', value: 'Student' },
Expand All @@ -73,7 +74,8 @@
),
},
]"
label="Select group"
label="Select a group"
variant="outlined"
hide-details
>
<template v-slot:item="{ props, item }">
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/components/Batch/Forms/NongradDistrunForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
<v-select
v-model="getGroup"
:items="['School Category']"
label="Select a Group"
label="Select a group"
variant="outlined"
></v-select>
</v-row>
<v-row v-if="getGroup == 'School Category'">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<v-stepper-window-item value="0">
<v-row>
<v-select
class="mt-2"
v-model="group"
:items="[
{
Expand All @@ -66,7 +67,8 @@
value: 'School Category',
},
]"
label="Select a Group"
label="Select a group"
variant="outlined"
><template v-slot:item="{ props, item }">
<v-list-item
v-bind="props"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@
<v-stepper-window>
<v-stepper-window-item value="0">
<v-row>
<v-col sm="2"> Report Type </v-col>
<v-col sm="2" class="mt-3"
><strong>Report Type</strong></v-col
>
<v-col sm="10">
<v-select
v-model="reportType"
Expand All @@ -68,12 +70,15 @@
item-title="text"
item-value="value"
label="Select a report type"
variant="outlined"
class="mt-2"
></v-select>
</v-col>
<v-col> </v-col>
</v-row>
<v-row>
<v-select
class="mt-2"
v-model="group"
:item-title="title"
:item-value="value"
Expand All @@ -83,6 +88,7 @@
{ title: 'All', value: 'All Schools' },
]"
label="Select a group"
variant="outlined"
/>
</v-row>
<v-row v-if="group == 'School'">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
<v-stepper-window-item value="0">
<v-row>
<v-select
class="mt-2"
v-model="group"
:items="[
{ title: 'Student', value: 'Student' },
Expand All @@ -68,7 +69,8 @@
disabled: !hasPermissions('BATCH', 'selectAllOption'),
},
]"
label="Select a Group"
label="Select a group"
variant="outlined"
><template v-slot:item="{ props, item }">
<v-list-item
v-bind="props"
Expand Down
69 changes: 36 additions & 33 deletions frontend/src/components/Batch/Forms/TranscriptAlgorithmForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,38 +49,41 @@
<v-stepper-window>
<v-stepper-window-item value="0">
<v-row>
<v-select
v-model="group"
:items="[
{ title: 'Student', value: 'Student' },
{ title: 'School', value: 'School' },
{
title: 'School Category',
value: 'School Category',
disabled: !this.hasPermissions(
'BATCH',
'selectSchoolCategoryGroup'
),
},
{
title: 'Program',
value: 'Program',
disabled: !this.hasPermissions(
'BATCH',
'selectProgramGroup'
),
},
]"
label="Select group"
hide-details
>
<template v-slot:item="{ props, item }">
<v-list-item
v-bind="props"
:subtitle="item.raw.department"
:disabled="item.raw.disabled"
></v-list-item> </template
></v-select>
<v-col>
<v-select
v-model="group"
:items="[
{ title: 'Student', value: 'Student' },
{ title: 'School', value: 'School' },
{
title: 'School Category',
value: 'School Category',
disabled: !this.hasPermissions(
'BATCH',
'selectSchoolCategoryGroup'
),
},
{
title: 'Program',
value: 'Program',
disabled: !this.hasPermissions(
'BATCH',
'selectProgramGroup'
),
},
]"
label="Select a group"
variant="outlined"
hide-details
>
<template v-slot:item="{ props, item }">
<v-list-item
v-bind="props"
:subtitle="item.raw.department"
:disabled="item.raw.disabled"
></v-list-item> </template
></v-select>
</v-col>
</v-row>
<v-row v-if="group == 'Student'">
<StudentInput></StudentInput>
Expand Down Expand Up @@ -252,7 +255,7 @@ export default {
},
data: () => ({
step: 0,
batchLoading: false,
dialog: false,
snackbarStore: useSnackbarStore(),
}),
Expand Down

0 comments on commit 378443d

Please sign in to comment.