Skip to content

Commit f95dab7

Browse files
authored
Merge pull request #1416 from bcgov/support/ecer-5383
ecer-5383 fixing up professional development
2 parents 4dce86c + bf1ee11 commit f95dab7

File tree

3 files changed

+71
-73
lines changed

3 files changed

+71
-73
lines changed

src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/AddProfessionalDevelopment.vue

Lines changed: 29 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -49,24 +49,16 @@
4949
></EceTextField>
5050
</v-col>
5151
</v-row>
52-
<v-row>
53-
<v-col md="8" lg="6" xl="4">
54-
<EceTextField
55-
id="txtNumberOfHours"
56-
v-model="professionalDevelopment.numberOfHours"
57-
label="How many hours was it?"
58-
:rules="[Rules.required('Enter your course or workshop hours'), Rules.numberToDecimalPlaces()]"
59-
></EceTextField>
60-
</v-col>
61-
</v-row>
6252
<v-row>
6353
<v-col md="8" lg="6" xl="4">
6454
<EceTextField
6555
id="txtOrganizationName"
6656
v-model="professionalDevelopment.organizationName"
67-
label="Name of place that hosted the course or workshop"
57+
label="Name of the organization who offered this training"
58+
tooltip-text="Provide the name of the school, organization, or instructor that offered the training or issued the certificate.
59+
They should be able to confirm you completed the course or workshop."
6860
maxlength="300"
69-
:rules="[Rules.required('Enter the name of the place that hosted the course or workshop')]"
61+
:rules="[Rules.required('Enter the name of the organization that offered this training')]"
7062
></EceTextField>
7163
</v-col>
7264
</v-row>
@@ -82,9 +74,19 @@
8274
></EceTextField>
8375
</v-col>
8476
</v-row>
77+
<v-row>
78+
<v-col cmd="8" lg="6" xl="4">
79+
<EceTextField
80+
id="txtInstructorName"
81+
v-model="professionalDevelopment.instructorName"
82+
label="Name of instructor or facilitator (if known)"
83+
maxlength="100"
84+
></EceTextField>
85+
</v-col>
86+
</v-row>
8587
<v-row>
8688
<v-col>
87-
<h3>When did you take it?</h3>
89+
<h3>Dates and duration</h3>
8890
</v-col>
8991
</v-row>
9092
<v-row>
@@ -152,9 +154,19 @@
152154
></EceDateInput>
153155
</v-col>
154156
</v-row>
157+
<v-row>
158+
<v-col md="8" lg="6" xl="4">
159+
<EceTextField
160+
id="txtNumberOfHours"
161+
v-model="professionalDevelopment.numberOfHours"
162+
label="How many hours was this course or workshop?"
163+
:rules="[Rules.required('Enter your course or workshop hours'), Rules.numberToDecimalPlaces()]"
164+
></EceTextField>
165+
</v-col>
166+
</v-row>
155167
<v-row>
156168
<v-col>
157-
<h3>Proof of course or workshop</h3>
169+
<h3>Proof of completion</h3>
158170
<br />
159171
<p>We may need to verify you took this course. You'll need to provide at least one option below</p>
160172
<br />
@@ -166,7 +178,7 @@
166178
<v-checkbox
167179
id="chkInstructorPhoneNumber"
168180
v-model="professionalDevelopment.selection"
169-
label="Phone number for instructor of course or workshop"
181+
label="Phone number of host organization, instructor or facilitator"
170182
:hide-details="true"
171183
density="compact"
172184
value="phone"
@@ -175,7 +187,7 @@
175187
<v-checkbox
176188
id="chkInstructorEmailAddress"
177189
v-model="professionalDevelopment.selection"
178-
label="Email address for instructor of course or workshop"
190+
label="Email address of host organization, instructor or facilitator"
179191
:hide-details="true"
180192
value="email"
181193
density="compact"
@@ -184,7 +196,7 @@
184196
<v-checkbox
185197
id="chkCourseCompletionDocument"
186198
v-model="professionalDevelopment.selection"
187-
label="A certificate or document that shows I completed the course"
199+
label="I can't provide contact information"
188200
hide-details="auto"
189201
value="file"
190202
density="compact"
@@ -193,17 +205,6 @@
193205
></v-checkbox>
194206
</v-col>
195207
</v-row>
196-
<v-row v-if="showInstructorNameInput">
197-
<v-col cmd="8" lg="6" xl="4">
198-
<EceTextField
199-
id="txtInstructorName"
200-
v-model="professionalDevelopment.instructorName"
201-
label="Instructor name"
202-
maxlength="100"
203-
:rules="[Rules.required('Enter the instructor name of your course or workshop')]"
204-
></EceTextField>
205-
</v-col>
206-
</v-row>
207208
<v-row v-if="showPhoneNumberInput">
208209
<v-col md="8" lg="6" xl="4">
209210
<EceTextField
@@ -322,9 +323,6 @@ export default defineComponent({
322323
today() {
323324
return formatDate(DateTime.now().toString());
324325
},
325-
showInstructorNameInput() {
326-
return this.professionalDevelopment.selection.includes("email") || this.professionalDevelopment.selection.includes("phone");
327-
},
328326
showPhoneNumberInput() {
329327
return this.professionalDevelopment.selection.includes("phone");
330328
},
@@ -356,11 +354,6 @@ export default defineComponent({
356354
},
357355
isNumber,
358356
selectionChanged() {
359-
if (!this.professionalDevelopment.selection.includes("phone") && !this.professionalDevelopment.selection.includes("email")) {
360-
//no email or phone clear out instructor name
361-
this.professionalDevelopment.instructorName = "";
362-
}
363-
364357
if (!this.professionalDevelopment.selection.includes("phone")) {
365358
this.professionalDevelopment.organizationContactInformation = "";
366359
}

src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/inputs/EceProfessionalDevelopment.vue

Lines changed: 24 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -48,24 +48,16 @@
4848
></EceTextField>
4949
</v-col>
5050
</v-row>
51-
<v-row>
52-
<v-col md="8" lg="6" xl="4">
53-
<EceTextField
54-
id="txtNumberOfHours"
55-
v-model="numberOfHours"
56-
label="How many hours was it?"
57-
:rules="[Rules.required('Enter your course or workshop hours'), Rules.numberToDecimalPlaces()]"
58-
></EceTextField>
59-
</v-col>
60-
</v-row>
6151
<v-row>
6252
<v-col md="8" lg="6" xl="4">
6353
<EceTextField
6454
id="txtOrganizationName"
6555
v-model="organizationName"
66-
label="Name of place that hosted the course or workshop"
56+
label="Name of the organization who offered this training"
57+
tooltip-text="Provide the name of the school, organization, or instructor that offered the training or issued the certificate.
58+
They should be able to confirm you completed the course or workshop."
6759
maxlength="300"
68-
:rules="[Rules.required('Enter the name of the place that hosted the course or workshop')]"
60+
:rules="[Rules.required('Enter the name of the organization that offered this training')]"
6961
></EceTextField>
7062
</v-col>
7163
</v-row>
@@ -80,9 +72,14 @@
8072
></EceTextField>
8173
</v-col>
8274
</v-row>
75+
<v-row>
76+
<v-col md="8" lg="6" xl="4">
77+
<EceTextField id="txtInstructorName" v-model="instructorName" label="Name of instructor or facilitator (if known)" maxlength="100"></EceTextField>
78+
</v-col>
79+
</v-row>
8380
<v-row>
8481
<v-col>
85-
<h3>When did you take it?</h3>
82+
<h3>Dates and duration</h3>
8683
</v-col>
8784
</v-row>
8885
<v-row>
@@ -150,9 +147,19 @@
150147
></EceDateInput>
151148
</v-col>
152149
</v-row>
150+
<v-row>
151+
<v-col md="8" lg="6" xl="4">
152+
<EceTextField
153+
id="txtNumberOfHours"
154+
v-model="numberOfHours"
155+
label="How many hours was this course or workshop?"
156+
:rules="[Rules.required('Enter your course or workshop hours'), Rules.numberToDecimalPlaces()]"
157+
></EceTextField>
158+
</v-col>
159+
</v-row>
153160
<v-row>
154161
<v-col>
155-
<h3>Proof of course or workshop</h3>
162+
<h3>Proof of completion</h3>
156163
<br />
157164
<p>We may need to verify you took this course. You'll need to provide at least one option below</p>
158165
<br />
@@ -164,7 +171,7 @@
164171
<v-checkbox
165172
id="chkInstructorPhoneNumber"
166173
v-model="selection"
167-
label="Phone number for instructor of course or workshop"
174+
label="Phone number of host organization, instructor or facilitator"
168175
:hide-details="true"
169176
density="compact"
170177
value="phone"
@@ -173,7 +180,7 @@
173180
<v-checkbox
174181
id="chkInstructorEmailAddress"
175182
v-model="selection"
176-
label="Email address for instructor of course or workshop"
183+
label="Email address of host organization, instructor or facilitator"
177184
:hide-details="true"
178185
value="email"
179186
density="compact"
@@ -182,7 +189,7 @@
182189
<v-checkbox
183190
id="chkCourseCompletionDocument"
184191
v-model="selection"
185-
label="A certificate or document that shows I completed the course"
192+
label="I can't provide contact information"
186193
hide-details="auto"
187194
value="file"
188195
density="compact"
@@ -191,17 +198,6 @@
191198
></v-checkbox>
192199
</v-col>
193200
</v-row>
194-
<v-row v-if="showInstructorNameInput">
195-
<v-col md="8" lg="6" xl="4">
196-
<EceTextField
197-
id="txtInstructorName"
198-
v-model="instructorName"
199-
label="Instructor name"
200-
maxlength="100"
201-
:rules="[Rules.required('Enter the instructor name of your course or workshop')]"
202-
></EceTextField>
203-
</v-col>
204-
</v-row>
205201
<v-row v-if="showPhoneNumberInput">
206202
<v-col md="8" lg="6" xl="4">
207203
<EceTextField
@@ -455,9 +451,6 @@ export default defineComponent({
455451
return acc + Number(professionalDevelopment.numberOfHours!);
456452
}, 0);
457453
},
458-
showInstructorNameInput() {
459-
return this.selection.includes("email") || this.selection.includes("phone");
460-
},
461454
showPhoneNumberInput() {
462455
return this.selection.includes("phone");
463456
},
@@ -669,11 +662,6 @@ export default defineComponent({
669662
this.professionalDevelopmentFormMode = "add";
670663
},
671664
selectionChanged() {
672-
if (!this.selection.includes("phone") && !this.selection.includes("email")) {
673-
//no email or phone clear out instructor name
674-
this.instructorName = "";
675-
}
676-
677665
if (!this.selection.includes("phone")) {
678666
this.organizationContactInformation = "";
679667
}

src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/inputs/EceTextField.vue

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
<template>
22
<label>
3-
{{ label }}
3+
<div>
4+
{{ label }}
5+
<v-tooltip v-if="tooltipText !== ''" :text="tooltipText" location="top">
6+
<template #activator="{ props }">
7+
<v-icon v-bind="props" :icon="tooltipIcon" variant="plain" />
8+
</template>
9+
</v-tooltip>
10+
</div>
411
<v-text-field
512
ref="textField"
613
v-bind="$attrs"
@@ -37,6 +44,16 @@ export default defineComponent({
3744
type: Boolean,
3845
default: false,
3946
},
47+
tooltipText: {
48+
type: String,
49+
required: false,
50+
default: "",
51+
},
52+
tooltipIcon: {
53+
type: String,
54+
required: false,
55+
default: "mdi-information-slab-circle",
56+
},
4057
},
4158
emits: ["input"],
4259
methods: {

0 commit comments

Comments
 (0)