<%- include('_header'); -%>

<%= lot.lotName %>

<%= lot.lotName %>
<% if (user.userProperties.canUpdate) { %> <% } %>

<%= configFunctions.getProperty("aliases.map") %>
<%= lot.mapName || "(No Name)" %>

<%= configFunctions.getProperty("aliases.lot") %> Type
<%= lot.lotType %>

Status
<%= lot.lotStatus %>

<% if (lot.lotFields.length > 0) { %>
<% for (const lotField of lot.lotFields) { %>

<%= lotField.lotTypeField %>
<% if (lotField.lotFieldValue) { %> <%= lotField.lotFieldValue %> <% } else { %> (No Value) <% } %>

<% } %>
<% } %>
<% if (lot.mapSVG) { %>

Image

<% const imageURL = urlPrefix + "/images/maps/" + lot.mapSVG %>
<%- include('../public/images/maps/' + lot.mapSVG); -%>
<% } %>
<% if (lot.lotComments.length > 0) { %>

Comments

<% for (const lotComment of lot.lotComments) { %> <% } %>
Commentor Comment Date Comment
<%= lotComment.recordCreate_userName %> <%= lotComment.lotCommentDateString %> <%= (lotComment.lotCommentTime === 0 ? "" : lotComment.lotCommentTimeString) %> <%= lotComment.lotComment %>
<% } %>

<%= configFunctions.getProperty("aliases.occupancies") %> <%= lot.lotOccupancies.length %>

<% if (lot.lotOccupancies.length === 0) { %>

There are no occupancy records asscociated with this <%= configFunctions.getProperty("aliases.lot") %>.

<% } else { %> <% const currentDate = dateTimeFunctions.dateToInteger(new Date()); %> <% for (const lotOccupancy of lot.lotOccupancies) { %> <% const isActive = !(lotOccupancy.occupancyEndDate && lotOccupancy.occupancyEndDate < currentDate); %> <% } %>
  <%= configFunctions.getProperty("aliases.occupancy") %> Type <%= configFunctions.getProperty("aliases.occupancyStartDate") %> End Date <%= configFunctions.getProperty("aliases.occupants") %>
<% if (isActive) { %> "> <% } else { %> "> <% } %> <%= lotOccupancy.occupancyType %>
#<%= lotOccupancy.lotOccupancyId %>
<%= lotOccupancy.occupancyStartDateString %> <% if (lotOccupancy.occupancyEndDate) { %> <%= lotOccupancy.occupancyEndDateString %> <% } else { %> (No End Date) <% } %> <% if (lotOccupancy.lotOccupancyOccupants.length === 0) { %> (No <%= configFunctions.getProperty("aliases.occupants") %>) <% } else { %> <% for (const occupant of lotOccupancy.lotOccupancyOccupants) { %> <%= occupant.occupantName + ' ' + occupant.occupantFamilyName %>
<% } %> <% } %>
<% } %>
<%- include('_footerA'); -%> <%- include('_footerB'); -%>