Skip to content

Commit 2c96d13

Browse files
committed
ecer-5028 adding start and end dates to professional development
1 parent 2a3fccd commit 2c96d13

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

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

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,18 @@
66
<v-col>
77
<p class="font-weight-bold">{{ professionalDevelopment.courseName }}</p>
88
</v-col>
9+
<v-spacer></v-spacer>
10+
<v-col class="text-wrap" cols="auto">
11+
<p>
12+
{{
13+
`${formatDate(professionalDevelopment.startDate || "", "LLLL d, yyyy")} - ${formatDate(professionalDevelopment.endDate || "", "LLLL d, yyyy")}`
14+
}}
15+
</p>
16+
</v-col>
17+
<v-spacer></v-spacer>
918
<v-col>
1019
<p>{{ `${professionalDevelopment.numberOfHours} hours` }}</p>
1120
</v-col>
12-
13-
<div></div>
1421
</v-row>
1522
</v-card-title>
1623
</template>
@@ -44,6 +51,7 @@
4451
<script lang="ts">
4552
import { defineComponent } from "vue";
4653
import { useLoadingStore } from "@/store/loading";
54+
import { formatDate } from "@/utils/format";
4755
4856
import type { ProfessionalDevelopmentExtended } from "./inputs/EceProfessionalDevelopment.vue";
4957
@@ -57,7 +65,7 @@ export default defineComponent({
5765
},
5866
setup() {
5967
const loadingStore = useLoadingStore();
60-
return { loadingStore };
68+
return { loadingStore, formatDate };
6169
},
6270
emits: {
6371
edit: (_reference: ProfessionalDevelopmentExtended) => true,

0 commit comments

Comments
 (0)