fix page titles
parent
d0b9027789
commit
e4175bb3e2
|
|
@ -16,10 +16,7 @@ export const handler = (request, response) => {
|
||||||
const maps = getMaps();
|
const maps = getMaps();
|
||||||
const workOrderTypes = getWorkOrderTypes();
|
const workOrderTypes = getWorkOrderTypes();
|
||||||
return response.render("lotOccupancy-edit", {
|
return response.render("lotOccupancy-edit", {
|
||||||
headTitle: configFunctions.getProperty("aliases.lot") +
|
headTitle: `${configFunctions.getProperty("aliases.occupancy")} Update`,
|
||||||
" " +
|
|
||||||
configFunctions.getProperty("aliases.occupancy") +
|
|
||||||
" Update",
|
|
||||||
lotOccupancy,
|
lotOccupancy,
|
||||||
occupancyTypePrints,
|
occupancyTypePrints,
|
||||||
occupancyTypes,
|
occupancyTypes,
|
||||||
|
|
|
||||||
|
|
@ -34,11 +34,7 @@ export const handler: RequestHandler = (request, response) => {
|
||||||
const workOrderTypes = getWorkOrderTypes();
|
const workOrderTypes = getWorkOrderTypes();
|
||||||
|
|
||||||
return response.render("lotOccupancy-edit", {
|
return response.render("lotOccupancy-edit", {
|
||||||
headTitle:
|
headTitle: `${configFunctions.getProperty("aliases.occupancy")} Update`,
|
||||||
configFunctions.getProperty("aliases.lot") +
|
|
||||||
" " +
|
|
||||||
configFunctions.getProperty("aliases.occupancy") +
|
|
||||||
" Update",
|
|
||||||
lotOccupancy,
|
lotOccupancy,
|
||||||
occupancyTypePrints,
|
occupancyTypePrints,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,11 +22,7 @@ export const handler = (request, response) => {
|
||||||
const lotStatuses = getLotStatuses();
|
const lotStatuses = getLotStatuses();
|
||||||
const maps = getMaps();
|
const maps = getMaps();
|
||||||
return response.render("lotOccupancy-edit", {
|
return response.render("lotOccupancy-edit", {
|
||||||
headTitle: "Create a New " +
|
headTitle: `Create a New ${configFunctions.getProperty("aliases.occupancy")} Record`,
|
||||||
configFunctions.getProperty("aliases.lot") +
|
|
||||||
" " +
|
|
||||||
configFunctions.getProperty("aliases.occupancy") +
|
|
||||||
" Record",
|
|
||||||
lotOccupancy,
|
lotOccupancy,
|
||||||
occupancyTypes,
|
occupancyTypes,
|
||||||
lotOccupantTypes,
|
lotOccupantTypes,
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,12 @@ import type { RequestHandler } from "express";
|
||||||
|
|
||||||
import { dateToInteger, dateToString } from "@cityssm/expressjs-server-js/dateTimeFns.js";
|
import { dateToInteger, dateToString } from "@cityssm/expressjs-server-js/dateTimeFns.js";
|
||||||
|
|
||||||
import { getLotOccupantTypes, getLotStatuses, getLotTypes, getOccupancyTypes } from "../../helpers/functions.cache.js";
|
import {
|
||||||
|
getLotOccupantTypes,
|
||||||
|
getLotStatuses,
|
||||||
|
getLotTypes,
|
||||||
|
getOccupancyTypes
|
||||||
|
} from "../../helpers/functions.cache.js";
|
||||||
|
|
||||||
import { getLot } from "../../helpers/lotOccupancyDB/getLot.js";
|
import { getLot } from "../../helpers/lotOccupancyDB/getLot.js";
|
||||||
import { getMaps } from "../../helpers/lotOccupancyDB/getMaps.js";
|
import { getMaps } from "../../helpers/lotOccupancyDB/getMaps.js";
|
||||||
|
|
@ -34,12 +39,7 @@ export const handler: RequestHandler = (request, response) => {
|
||||||
const maps = getMaps();
|
const maps = getMaps();
|
||||||
|
|
||||||
return response.render("lotOccupancy-edit", {
|
return response.render("lotOccupancy-edit", {
|
||||||
headTitle:
|
headTitle: `Create a New ${configFunctions.getProperty("aliases.occupancy")} Record`,
|
||||||
"Create a New " +
|
|
||||||
configFunctions.getProperty("aliases.lot") +
|
|
||||||
" " +
|
|
||||||
configFunctions.getProperty("aliases.occupancy") +
|
|
||||||
" Record",
|
|
||||||
lotOccupancy,
|
lotOccupancy,
|
||||||
|
|
||||||
occupancyTypes,
|
occupancyTypes,
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ export const handler = (request, response) => {
|
||||||
const lotTypes = getLotTypes();
|
const lotTypes = getLotTypes();
|
||||||
const occupancyTypes = getOccupancyTypes();
|
const occupancyTypes = getOccupancyTypes();
|
||||||
response.render("lotOccupancy-search", {
|
response.render("lotOccupancy-search", {
|
||||||
headTitle: configFunctions.getProperty("aliases.lot") + " Occupancy Search",
|
headTitle: configFunctions.getProperty("aliases.occupancy") + " Search",
|
||||||
maps,
|
maps,
|
||||||
lotTypes,
|
lotTypes,
|
||||||
occupancyTypes,
|
occupancyTypes,
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ export const handler: RequestHandler = (request, response) => {
|
||||||
const occupancyTypes = getOccupancyTypes();
|
const occupancyTypes = getOccupancyTypes();
|
||||||
|
|
||||||
response.render("lotOccupancy-search", {
|
response.render("lotOccupancy-search", {
|
||||||
headTitle: configFunctions.getProperty("aliases.lot") + " Occupancy Search",
|
headTitle: configFunctions.getProperty("aliases.occupancy") + " Search",
|
||||||
maps,
|
maps,
|
||||||
lotTypes,
|
lotTypes,
|
||||||
occupancyTypes,
|
occupancyTypes,
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,7 @@ export const handler = (request, response) => {
|
||||||
}
|
}
|
||||||
const occupancyTypePrints = getOccupancyTypePrintsById(lotOccupancy.occupancyTypeId);
|
const occupancyTypePrints = getOccupancyTypePrintsById(lotOccupancy.occupancyTypeId);
|
||||||
return response.render("lotOccupancy-view", {
|
return response.render("lotOccupancy-view", {
|
||||||
headTitle: configFunctions.getProperty("aliases.lot") +
|
headTitle: `${configFunctions.getProperty("aliases.occupancy")} View`,
|
||||||
" " +
|
|
||||||
configFunctions.getProperty("aliases.occupancy") +
|
|
||||||
" View",
|
|
||||||
lotOccupancy,
|
lotOccupancy,
|
||||||
occupancyTypePrints
|
occupancyTypePrints
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -18,11 +18,7 @@ export const handler: RequestHandler = (request, response) => {
|
||||||
const occupancyTypePrints = getOccupancyTypePrintsById(lotOccupancy.occupancyTypeId);
|
const occupancyTypePrints = getOccupancyTypePrintsById(lotOccupancy.occupancyTypeId);
|
||||||
|
|
||||||
return response.render("lotOccupancy-view", {
|
return response.render("lotOccupancy-view", {
|
||||||
headTitle:
|
headTitle: `${configFunctions.getProperty("aliases.occupancy")} View`,
|
||||||
configFunctions.getProperty("aliases.lot") +
|
|
||||||
" " +
|
|
||||||
configFunctions.getProperty("aliases.occupancy") +
|
|
||||||
" View",
|
|
||||||
lotOccupancy,
|
lotOccupancy,
|
||||||
occupancyTypePrints
|
occupancyTypePrints
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue