diff --git a/views/lot-edit.ejs b/views/lot-edit.ejs index c0c8380a..983f49a4 100644 --- a/views/lot-edit.ejs +++ b/views/lot-edit.ejs @@ -29,21 +29,21 @@

- <% if (isCreate) { %> - Create a New <%= configFunctions.getProperty("aliases.lot") %> - <% } else { %> - <%= lot.lotName %> - <% } %> + <% if (isCreate) { %> + Create a New <%= configFunctions.getProperty("aliases.lot") %> + <% } else { %> + <%= lot.lotName %> + <% } %>

- <% if (!isCreate) { %> -
+
+ <% if (!isCreate) { %> <%= lot.lotName %> -
- <% } %> + <% } %> +
<% if (!isCreate) { %>
diff --git a/views/lotOccupancy-edit.ejs b/views/lotOccupancy-edit.ejs index 9f73be4c..d771b386 100644 --- a/views/lotOccupancy-edit.ejs +++ b/views/lotOccupancy-edit.ejs @@ -1,408 +1,408 @@ <%- include('_header'); -%> <% if (isCreate) { %> -

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

+

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

<% } else { %> -

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

+

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

<% } %> -
- - -
-
-
-
- -
-
-
- -
-
-
- -
-
- - - -
-
- " id="lotOccupancy--lotName" type="button" value="<%= lotOccupancy.lotName || "(No " + configFunctions.getProperty("aliases.lot") + ")" %>" - <%= (configFunctions.getProperty("settings.lotOccupancy.lotIdIsRequired") ? " required" : "") %> - <%= (isCreate ? "" : " disabled readonly") %> /> -
-
- Field"> - - -
-
- Field"> - - -
-
- -
-
-
-
-
- -
- - - - -
-
-
- -
- /> - - - -
-
-
-
-
- <% if (isCreate) { %> -
-

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

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

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

-
- <% } else { %> - <% let occupancyTypeFieldIds = ""; %> - <% for (const lotOccupancyField of lotOccupancy.lotOccupancyFields) { %> - <% occupancyTypeFieldIds += "," + lotOccupancyField.occupancyTypeFieldId; %> -
- -
- <% if (!lotOccupancyField.occupancyTypeFieldValues || lotOccupancyField.occupancyTypeFieldValues === "") { %> - - pattern="<%= lotOccupancyField.pattern %>" - <% } %> - minlength="<%= lotOccupancyField.minimumLength %>" - maxlength="<%= lotOccupancyField.maximumLength %>" - <%= lotOccupancyField.isRequired ? " required" : "" %> /> - <% } else { %> - <% - const fieldValues = lotOccupancyField.occupancyTypeFieldValues.split("\n"); - let valueFound = false; - %> -
- -
- <% } %> -
-
- <% } %> - - <% } %> -
-
-
+
+
+ <% if (!isCreate) { %> + + <%= configFunctions.getProperty("aliases.occupancy") %> #<%= lotOccupancy.lotOccupancyId %>: + <%= lotOccupancy.lotName || ("(No " + configFunctions.getProperty("aliases.lot") + ")") %> + + <% } %> +
+
+ <% if (!isCreate && occupancyTypePrints.length > 0) { %> + <% if (occupancyTypePrints.length === 1) { %> + - <% if (isCreate) { %> -
-

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

-
-
-
- -
-
- -
-
-
-
- -
- -
-
-
- -
- -
-
-
-
- -
-
-
-
-
- -
- " disabled /> -
-
-
-
-
- -
- " disabled /> -
-
-
-
-
- -
- -
-
-
-
-
-
-
- -
- -
-
-
-
-
- -
- -
-
-
-
-
- -
- -
-
-
-
-
-

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

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

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

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

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

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

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

+
+
+
+ +
+
+ +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ +
+
+
+
+
+ +
+ " disabled /> +
+
+
+
+
+ +
+ " disabled /> +
+
+
+
+
+ +
+ +
+
+
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+

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

+
+
+
+ +
+ <% } %> +
<% if (!isCreate) { %> diff --git a/views/map-edit.ejs b/views/map-edit.ejs index db23ea62..553fdffb 100644 --- a/views/map-edit.ejs +++ b/views/map-edit.ejs @@ -37,13 +37,13 @@
- <% if (!isCreate) { %> -
+
+ <% if (!isCreate) { %> <%= map.mapName || "(No Name)" %> -
- <% } %> + <% } %> +
<% if (!isCreate) { %>
diff --git a/views/workOrder-edit.ejs b/views/workOrder-edit.ejs index c3f97b41..9bab6e3d 100644 --- a/views/workOrder-edit.ejs +++ b/views/workOrder-edit.ejs @@ -41,14 +41,14 @@ <% } %>
- <% if (!isCreate) { %> -
+
+ <% if (!isCreate) { %> Work Order #<%= workOrder.workOrderNumber || "(No Number)" %> -
- <% } %> + <% } %> +
<% if (!isCreate && configFunctions.getProperty("settings.workOrders.prints").length > 0) { %> <% if (configFunctions.getProperty("settings.workOrders.prints").length === 1) { %>