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

<%= lot.lotName %>

" href="<%= urlPrefix %>/lots/<%= lot.lotId %>/previous" accesskey=","> Previous <%= configFunctions.getProperty("aliases.lot") %> " href="<%= urlPrefix %>/lots/<%= lot.lotId %>/next" accesskey="."> Next <%= configFunctions.getProperty("aliases.lot") %> <% if (user.userProperties.canUpdate) { %> " href="<%= urlPrefix %>/lots/<%= lot.lotId %>/edit" accesskey="e"> Update <%= configFunctions.getProperty("aliases.lot") %> <% } %>

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

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

Status
<%= lot.lotStatus %>

Image

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

There are no image associated with this <%= configFunctions.getProperty("aliases.lot").toLowerCase() %>.

<% } %>
<% 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.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 %>
<% } %> <% } %>
<% } %>
<%- include('_footerA'); -%> <%- include('_footerB'); -%>