Skip to content

Commit 4eeb7cc

Browse files
committed
ECER-4383: loading declaration from dynamics instead of using static text
1 parent c738fd3 commit 4eeb7cc

File tree

2 files changed

+9
-22
lines changed

2 files changed

+9
-22
lines changed

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

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,7 @@
44
<h1 class="mb-5">Declaration and consent</h1>
55
<p>You must read and agree to the following to apply for certification.</p>
66
<br />
7-
<ul class="ml-10">
8-
<li>I understand that the ECE Registry may require additional information (including supporting documents) in connection with this application.</li>
9-
<li>
10-
I confirm that the information provided in this application is complete and accurate. I understand if inaccurate information is submitted it may result
11-
in the denial of certification.
12-
</li>
13-
<li>
14-
I understand that information in this application or subsequently provided information may be reviewed, audited, and verified for the purpose of
15-
determining or auditing my eligibility for an ECE Certificate in British Columbia.
16-
</li>
17-
<li>
18-
I understand that the ECE Registry may take disciplinary actions against me, including action to cancel my certification, if I have, by omission or
19-
commission, knowingly given false or misleading information in the course of completing this application.
20-
</li>
21-
<li>
22-
I consent the work experience and character references indicated in this application to provide the ECE Registry with this reference and other
23-
information as part of my application for certification.
24-
</li>
25-
</ul>
7+
<p class="ml-10 multiline">{{ configStore.defaultContents.find((content) => content.name == "New BC Recognized Application")?.multiText }}</p>
268

279
<v-form ref="declarationForm">
2810
<v-row>
@@ -59,7 +41,6 @@
5941
import { DateTime } from "luxon";
6042
import { defineComponent } from "vue";
6143
import type { VForm } from "vuetify/components";
62-
6344
import { getProfile } from "@/api/profile";
6445
import Breadcrumb from "@/components/Breadcrumb.vue";
6546
import EceCheckbox from "@/components/inputs/EceCheckbox.vue";
@@ -68,6 +49,7 @@ import EceDateInput from "@/components/inputs/EceDateInput.vue";
6849
import { useAlertStore } from "@/store/alert";
6950
import { useApplicationStore } from "@/store/application";
7051
import { useLoadingStore } from "@/store/loading";
52+
import { useConfigStore } from "@/store/config";
7153
import { useUserStore } from "@/store/user";
7254
import { formatDate } from "@/utils/format";
7355
import * as Rules from "@/utils/formRules";
@@ -79,6 +61,7 @@ export default defineComponent({
7961
async setup() {
8062
const userStore = useUserStore();
8163
const applicationStore = useApplicationStore();
64+
const configStore = useConfigStore();
8265
const alertStore = useAlertStore();
8366
const loadingStore = useLoadingStore();
8467
const router = useRouter();
@@ -154,7 +137,7 @@ export default defineComponent({
154137
},
155138
];
156139
157-
return { items, Rules, userStore, applicationStore, alertStore, loadingStore, router };
140+
return { items, Rules, userStore, applicationStore, alertStore, loadingStore, configStore, router };
158141
},
159142
data() {
160143
return {

src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/styles/main.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@
88
@use "v-alert.scss";
99
@use "v-list-item.scss";
1010
@use "v-stepper.scss";
11-
@use "v-label.scss";
11+
@use "v-label.scss";
12+
13+
.multiline {
14+
white-space: pre-line; /* turns \n into real line breaks */
15+
}

0 commit comments

Comments
 (0)