-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Home Descriptions History * Removed placeholders * restyle up down chevron
- Loading branch information
1 parent
0d2b53c
commit 9f583e9
Showing
10 changed files
with
415 additions
and
47 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,7 +91,4 @@ const tab = ref(0) | |
max-height: 55px; | ||
margin: 0 2.5px; | ||
} | ||
.v-window { | ||
min-height: 400px | ||
} | ||
</style> |
200 changes: 200 additions & 0 deletions
200
ppr-ui/src/components/mhrHistory/MhrHistoryDescription.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,200 @@ | ||
<template> | ||
<section | ||
id="mhr-history-description" | ||
class="pr-4" | ||
> | ||
<v-row class="ma-0"> | ||
<v-col | ||
cols="3" | ||
class="pl-0" | ||
> | ||
<h4>Year of Manufacture</h4> | ||
</v-col> | ||
<v-col> | ||
<p>{{ content?.baseInformation?.year || '(Not Entered)' }}</p> | ||
</v-col> | ||
</v-row> | ||
|
||
<v-row | ||
v-if="content?.csaNumber" | ||
noGutters | ||
class="py-3" | ||
> | ||
<v-col cols="3"> | ||
<h4>CSA Number</h4> | ||
</v-col> | ||
<v-col | ||
cols="6" | ||
class="pl-3" | ||
> | ||
<p>{{ content?.csaNumber || '(Not Entered)' }}</p> | ||
</v-col> | ||
<v-col cols="3"> | ||
<h4>CSA Standard</h4> | ||
</v-col> | ||
<v-col | ||
cols="6" | ||
class="pl-3" | ||
> | ||
<p>{{ content?.csaStandard || '(Not Entered)' }}</p> | ||
</v-col> | ||
</v-row> | ||
|
||
<v-row | ||
v-else-if="content?.engineerName" | ||
noGutters | ||
class="py-3" | ||
> | ||
<v-col cols="3"> | ||
<h4>Engineer's Name</h4> | ||
</v-col> | ||
<v-col | ||
cols="6" | ||
class="pl-3" | ||
> | ||
<p>{{ content?.engineerName || '(Not Entered)' }}</p> | ||
</v-col> | ||
<v-col cols="3"> | ||
<h4>Date of Engineer's Report</h4> | ||
</v-col> | ||
<v-col | ||
cols="6" | ||
class="pl-3" | ||
> | ||
<p>{{ shortPacificDate(content?.engineerDate) || '(Not Entered)' }}</p> | ||
</v-col> | ||
</v-row> | ||
|
||
<v-row | ||
v-else | ||
noGutters | ||
class="py-3" | ||
> | ||
<v-col cols="3"> | ||
<h4>Home Certification</h4> | ||
</v-col> | ||
<v-col class="pl-3"> | ||
<p>{{ 'There is no certification available for this home.' }}</p> | ||
</v-col> | ||
</v-row> | ||
|
||
<v-row class="ma-0"> | ||
<v-col | ||
cols="12" | ||
class="pl-0" | ||
> | ||
<h4>Home Sections</h4> | ||
<HomeSectionsTable | ||
class="mt-n3" | ||
:homeSections="content?.sections" | ||
:isReviewMode="true" | ||
/> | ||
</v-col> | ||
</v-row> | ||
|
||
<v-row class="ma-0"> | ||
<v-col | ||
cols="3" | ||
class="pl-0" | ||
> | ||
<h4>Rebuilt Status</h4> | ||
</v-col> | ||
<v-col> | ||
<p>{{ content?.rebuiltRemarks || '(Not Entered)' }}</p> | ||
</v-col> | ||
</v-row> | ||
|
||
<v-row class="ma-0"> | ||
<v-col | ||
cols="3" | ||
class="pl-0" | ||
> | ||
<h4>Other Information</h4> | ||
</v-col> | ||
<v-col> | ||
<p>{{ content?.otherRemarks || '(Not Entered)' }}</p> | ||
</v-col> | ||
</v-row> | ||
|
||
<v-row | ||
noGutters | ||
class="py-6 condensed-row" | ||
> | ||
<v-col cols="3"> | ||
<h4>Registration Date</h4> | ||
</v-col> | ||
<v-col | ||
cols="6" | ||
class="pl-3" | ||
> | ||
<p>{{ shortPacificDate(content?.createDateTime) || '(Not Entered)' }}</p> | ||
</v-col> | ||
<v-col cols="3"> | ||
<h4>Document Type</h4> | ||
</v-col> | ||
<v-col | ||
cols="6" | ||
class="pl-3" | ||
> | ||
<p>{{ content?.registrationDescription || '(Not Entered)' }}</p> | ||
</v-col> | ||
<v-col cols="3"> | ||
<h4>Registration Number</h4> | ||
</v-col> | ||
<v-col | ||
cols="6" | ||
class="pl-3" | ||
> | ||
<p>{{ content?.documentRegistrationNumber || '(Not Entered)' }}</p> | ||
</v-col> | ||
<v-col cols="3"> | ||
<h4>Document ID</h4> | ||
</v-col> | ||
<v-col | ||
cols="6" | ||
class="pl-3" | ||
> | ||
<p>{{ content?.documentId || '(Not Entered)' }}</p> | ||
</v-col> | ||
</v-row> | ||
</section> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { HomeSectionsTable } from '@/components/tables/mhr' | ||
import { DescriptionIF } from '@/interfaces' | ||
import { shortPacificDate } from '@/utils' | ||
/** Props **/ | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
const props = withDefaults(defineProps<{ | ||
content: DescriptionIF | ||
}>(), { | ||
content: null | ||
}) | ||
</script> | ||
<style lang="scss" scoped> | ||
@import '@/assets/styles/theme'; | ||
.v-row { | ||
min-height: 65px; | ||
border-top: 1px solid $gray3; | ||
} | ||
p { | ||
line-height: 2.25rem; | ||
} | ||
.condensed-row { | ||
p, h4 { | ||
line-height: 1.5rem; | ||
} | ||
} | ||
:deep(.v-col-3) { | ||
flex: 0 0 26.25%; | ||
max-width: 26.25%; | ||
} | ||
:deep(#mh-home-sections-table) { | ||
.column-mdl { | ||
width: 26.25% | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default as MhrHistoryDescription } from './MhrHistoryDescription.vue' |
5 changes: 3 additions & 2 deletions
5
ppr-ui/src/interfaces/data-table-interfaces/table-headers-interface.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.