-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Platform and Strata Details pages. Update tabs in header.
- Loading branch information
Showing
6 changed files
with
340 additions
and
168 deletions.
There are no files selected for viewing
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,120 @@ | ||
<script setup lang="ts"> | ||
const props = defineProps<{ application: HostApplicationResp }>() | ||
const { header, registration } = props.application | ||
const emit = defineEmits<{ | ||
approveApplication: [], | ||
rejectApplication: [] | ||
}>() | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<div class="mb-2 align-middle text-lg"> | ||
<strong> | ||
{{ header?.applicationNumber }} | ||
</strong> | ||
<UButton label="View History" variant="link" size="sm" class="mx-2 underline" /> | ||
</div> | ||
<div | ||
v-if="registration?.registrationType === ApplicationType.HOST" | ||
class="flex flex-row gap-x-5 divide-x text-sm" | ||
> | ||
<div> | ||
<dl class="grid grid-cols-[repeat(2,auto)] gap-x-4"> | ||
<dt>Status:</dt> | ||
<dd>{{ header?.hostStatus }}</dd> | ||
|
||
<dt>Submitted:</dt> | ||
<dd>{{ dateToString(header?.applicationDateTime || '') }}</dd> | ||
|
||
<dt>Registration Type:</dt> | ||
<dd>{{ registration?.registrationType }}</dd> | ||
</dl> | ||
</div> | ||
<div> | ||
<dl class="grid grid-cols-[repeat(2,auto)] gap-x-4 pl-5"> | ||
<dt>Unit Address:</dt> | ||
<dd class="w-[150px]"> | ||
{{ displayFullUnitAddress(registration?.unitAddress) }} | ||
</dd> | ||
|
||
<dt>Municipality:</dt> | ||
<dd>{{ registration?.strRequirements?.organizationNm }}</dd> | ||
</dl> | ||
</div> | ||
<div> | ||
<dl class="grid grid-cols-[repeat(2,auto)] gap-x-4 pl-5"> | ||
<dt>Host Address:</dt> | ||
<dd class="w-[150px]"> | ||
{{ displayFullAddress(registration?.primaryContact.mailingAddress) }} | ||
</dd> | ||
|
||
<dt>Address Type:</dt> | ||
<dd>Mailing</dd> | ||
|
||
<dt>Same as Unit Address:</dt> | ||
<dd>{{ registration?.unitDetails.hostResidence }}</dd> | ||
|
||
<dt>Host Name:</dt> | ||
<dd>{{ displayContactFullName(registration?.primaryContact || {}) }}</dd> | ||
|
||
<dt>Host Type:</dt> | ||
<dd>{{ registration?.primaryContact.contactType }}</dd> | ||
|
||
<dt>Ownership Type:</dt> | ||
<dd>{{ registration?.unitDetails.ownershipType }}</dd> | ||
</dl> | ||
</div> | ||
<div> | ||
<dl class="grid grid-cols-[repeat(2,auto)] gap-x-4 pl-5"> | ||
<dt>Property Type:</dt> | ||
<dd>{{ registration?.unitDetails.propertyType }}</dd> | ||
|
||
<dt>Configuration:</dt> | ||
<dd>{{ registration?.unitDetails.rentalUnitSpaceType }}</dd> | ||
|
||
<dt>Rooms:</dt> | ||
<dd>{{ registration?.unitDetails.numberOfRoomsForRent }}</dd> | ||
</dl> | ||
</div> | ||
</div> | ||
|
||
<!-- APPLICATION SECTIONS --> | ||
<div class="mt-6 divide-y"> | ||
<ApplicationDetailsSection label="Short-term rentals prohibited" hide-checklist> | ||
<div class="flex items-center justify-between"> | ||
<div class="flex"> | ||
{{ registration?.strRequirements?.isStrProhibited ? 'Yes' : 'No' }} | ||
</div> | ||
<div class="flex items-start justify-end gap-x-2"> | ||
<UButton label="Quick send to supervisor" color="primary" /> | ||
</div> | ||
</div> | ||
</ApplicationDetailsSection> | ||
|
||
<ApplicationDetailsSection label="Principal Residence"> | ||
<div> | ||
{{ registration?.strRequirements?.isPrincipalResidenceRequired ? | ||
'Required' : 'Not Required' }} | ||
</div> | ||
<div> | ||
<strong>STR Accommodations Act: </strong> | ||
{{ registration?.strRequirements?.isStraaExempt ? | ||
'Exempt' : 'Not Exempt' }} | ||
</div> | ||
</ApplicationDetailsSection> | ||
|
||
<ApplicationDetailsSection label="" hide-checkbox hide-checklist class="pt-8"> | ||
<div class="flex justify-end gap-x-2"> | ||
<UButton label="Approve" color="primary" @click="emit('approveApplication')" /> | ||
<UButton label="Reject" color="gray" @click="emit('rejectApplication')" /> | ||
</div> | ||
</ApplicationDetailsSection> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style scoped></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,85 @@ | ||
<script setup lang="ts"> | ||
const props = defineProps<{ application: PlatformApplicationResp }>() | ||
const { header, registration } = props.application | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<div class="mb-2 align-middle text-lg"> | ||
<strong> | ||
{{ header?.applicationNumber }} | ||
</strong> | ||
<UButton | ||
label="View History" | ||
variant="link" | ||
size="sm" | ||
class="mx-2 underline" | ||
/> | ||
</div> | ||
|
||
<div | ||
class="flex flex-row gap-x-5 divide-x text-sm" | ||
> | ||
<div> | ||
<dl class="grid grid-cols-[repeat(2,auto)] gap-x-4"> | ||
<dt>Status:</dt> | ||
<dd>{{ header?.hostStatus }}</dd> | ||
|
||
<dt>Submitted:</dt> | ||
<dd>{{ dateToString(header?.applicationDateTime || '') }}</dd> | ||
|
||
<dt>Registration Type:</dt> | ||
<dd>{{ registration?.registrationType }}</dd> | ||
</dl> | ||
</div> | ||
|
||
<div> | ||
<dl class="grid grid-cols-[repeat(2,auto)] gap-x-4 pl-5"> | ||
<dt>Completing Party</dt> | ||
<dd /> | ||
|
||
<dt>Name:</dt> | ||
<dd>{{ displayContactFullName(registration?.completingParty) }}</dd> | ||
|
||
<dt>Email:</dt> | ||
<dd>{{ registration?.completingParty.emailAddress }}</dd> | ||
|
||
<dt>Phone:</dt> | ||
<dd>{{ registration?.completingParty.phoneNumber }}</dd> | ||
</dl> | ||
</div> | ||
|
||
<div> | ||
<dl class="grid grid-cols-[repeat(2,auto)] gap-x-4 pl-5"> | ||
<dt>Platform Representative</dt> | ||
<dd /> | ||
|
||
<dt>Name:</dt> | ||
<dd>{{ displayContactFullName(registration?.platformRepresentatives[0]) }}</dd> | ||
|
||
<dt>Email:</dt> | ||
<dd>{{ registration?.completingParty.emailAddress }}</dd> | ||
</dl> | ||
</div> | ||
</div> | ||
|
||
<!-- APPLICATION SECTIONS --> | ||
<div class="mt-6 divide-y"> | ||
<ApplicationDetailsSection | ||
label="Business Details" | ||
hide-checklist | ||
> | ||
<div class="flex items-center justify-between"> | ||
<div class="flex"> | ||
{{ registration?.businessDetails?.legalName }} | | ||
{{ displayFullAddress(registration?.businessDetails.mailingAddress) }} | ||
</div> | ||
</div> | ||
</ApplicationDetailsSection> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style scoped></style> |
85 changes: 85 additions & 0 deletions
85
strr-examiner-web/app/components/StrataHotelDetailsView.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,85 @@ | ||
<script setup lang="ts"> | ||
const props = defineProps<{ application: StrataApplicationResp }>() | ||
const { header, registration } = props.application | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<div class="mb-2 align-middle text-lg"> | ||
<strong> | ||
{{ header?.applicationNumber }} | ||
</strong> | ||
<UButton | ||
label="View History" | ||
variant="link" | ||
size="sm" | ||
class="mx-2 underline" | ||
/> | ||
</div> | ||
|
||
<div | ||
class="flex flex-row gap-x-5 divide-x text-sm" | ||
> | ||
<div> | ||
<dl class="grid grid-cols-[repeat(2,auto)] gap-x-4"> | ||
<dt>Status:</dt> | ||
<dd>{{ header?.hostStatus }}</dd> | ||
|
||
<dt>Submitted:</dt> | ||
<dd>{{ dateToString(header?.applicationDateTime || '') }}</dd> | ||
|
||
<dt>Registration Type:</dt> | ||
<dd>{{ registration?.registrationType }}</dd> | ||
</dl> | ||
</div> | ||
|
||
<div> | ||
<dl class="grid grid-cols-[repeat(2,auto)] gap-x-4 pl-5"> | ||
<dt>Completing Party</dt> | ||
<dd /> | ||
|
||
<dt>Name:</dt> | ||
<dd>{{ displayContactFullName(registration?.completingParty) }}</dd> | ||
|
||
<dt>Email:</dt> | ||
<dd>{{ registration?.completingParty.emailAddress }}</dd> | ||
|
||
<dt>Phone:</dt> | ||
<dd>{{ registration?.completingParty.phoneNumber }}</dd> | ||
</dl> | ||
</div> | ||
|
||
<div> | ||
<dl class="grid grid-cols-[repeat(2,auto)] gap-x-4 pl-5"> | ||
<dt>Strata Hotel Representative</dt> | ||
<dd /> | ||
|
||
<dt>Name:</dt> | ||
<dd>{{ displayContactFullName(registration?.strataHotelRepresentatives[0]) }}</dd> | ||
|
||
<dt>Email:</dt> | ||
<dd>{{ registration?.completingParty.emailAddress }}</dd> | ||
</dl> | ||
</div> | ||
</div> | ||
|
||
<!-- APPLICATION SECTIONS --> | ||
<div class="mt-6 divide-y"> | ||
<ApplicationDetailsSection | ||
label="Business Details" | ||
hide-checklist | ||
> | ||
<div class="flex items-center justify-between"> | ||
<div class="flex"> | ||
{{ registration?.businessDetails?.legalName }} | | ||
{{ displayFullAddress(registration?.businessDetails.mailingAddress) }} | ||
</div> | ||
</div> | ||
</ApplicationDetailsSection> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style scoped></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
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.