<%- include('_header'); -%> <% if (isCreate) { %>

Create a New <%= configFunctions.getConfigProperty("aliases.occupancy") %> Record

<% } else { %>

Update <%= configFunctions.getConfigProperty("aliases.occupancy") %> #<%= lotOccupancy.lotOccupancyId %>

<% } %>
<% if (!isCreate) { %> <%= configFunctions.getConfigProperty("aliases.occupancy") %> #<%= lotOccupancy.lotOccupancyId %>: <%= lotOccupancy.lotName || ("(No " + configFunctions.getConfigProperty("aliases.lot") + ")") %> <% } %>
<% if (!isCreate && occupancyTypePrints.length > 0) { %> <% if (occupancyTypePrints.length === 1) { %> <% } else { %>
<% } %> <% } %> <% if (isCreate) { %> <% } else { %> <% } %>
" id="lotOccupancy--lotName" type="button" value="<%= lotOccupancy.lotName || "(No " + configFunctions.getConfigProperty("aliases.lot") + ")" %>" <%= (configFunctions.getConfigProperty("settings.lotOccupancy.lotIdIsRequired") ? " required" : "") %> <%= (isCreate ? "" : " disabled readonly") %> />
Field">
Field">
/>
<% if (isCreate) { %>

Select the <%= configFunctions.getConfigProperty("aliases.occupancy").toLowerCase() %> type to load the available fields.

<% } else if (lotOccupancy.lotOccupancyFields.length === 0) { %>

The current <%= configFunctions.getConfigProperty("aliases.occupancy").toLowerCase() %> type has no additional fields.

<% } else { %> <% let occupancyTypeFieldIds = ""; %> <% for (const lotOccupancyField of lotOccupancy.lotOccupancyFields) { %> <% occupancyTypeFieldIds += "," + lotOccupancyField.occupancyTypeFieldId; %>
<% if (lotOccupancyField.fieldType === 'select' || (lotOccupancyField.occupancyTypeFieldValues ?? '') !== "") { %> <% const fieldValues = lotOccupancyField.occupancyTypeFieldValues.split("\n"); let valueFound = false; %>
<% } else { %> pattern="<%= lotOccupancyField.pattern %>" <% } %> minlength="<%= lotOccupancyField.minimumLength %>" maxlength="<%= lotOccupancyField.maximumLength %>" <%= lotOccupancyField.isRequired ? " required" : "" %> /> <% } %>
<% } %> <% } %>
<% if (isCreate) { %>

<%= configFunctions.getConfigProperty("aliases.occupant") %>

" disabled />
" disabled />

Additional <%= configFunctions.getConfigProperty("aliases.occupants").toLowerCase() %> can be added after the record has been created.

<% } %>
<% if (!isCreate) { %>

<%= configFunctions.getConfigProperty("aliases.occupants") %>

Comments

<% const workOrderOpenDateAlias = configFunctions.getConfigProperty("aliases.workOrderOpenDate"); const workOrderCloseDateAlias = configFunctions.getConfigProperty("aliases.workOrderCloseDate"); %>

Work Orders

<% if (lotOccupancy.workOrders.length === 0) { %>

There are no work orders associated with this record.

<% } else { %> <% for (const workOrder of lotOccupancy.workOrders) { %> <% } %>
Work Order Number Description Date
<%= workOrder.workOrderNumber %> <%= workOrder.workOrderType %>
<%= workOrder.workOrderDescription %>
<%= workOrder.workOrderOpenDateString %>
<% if (workOrder.workOrderCloseDate) { %> <%= workOrder.workOrderCloseDateString %> <% } else { %> (No <%= workOrderCloseDateAlias %>) <% } %>
<% } %>

Fees

Transactions

<% } %> <%- include('_footerA'); -%> <%- include('_footerB'); -%>