parent
dd6ac7114c
commit
8da22d137a
|
|
@ -1,7 +1,20 @@
|
|||
import { dateToInteger, dateToString } from "@cityssm/expressjs-server-js/dateTimeFns.js";
|
||||
import { getOccupancyTypes } from "../../helpers/functions.cache.js";
|
||||
import { getLot } from "../../helpers/lotOccupancyDB/getLot.js";
|
||||
import * as configFunctions from "../../helpers/functions.config.js";
|
||||
export const handler = (request, response) => {
|
||||
const lotOccupancy = {};
|
||||
const startDate = new Date();
|
||||
const lotOccupancy = {
|
||||
occupancyStartDate: dateToInteger(startDate),
|
||||
occupancyStartDateString: dateToString(startDate)
|
||||
};
|
||||
if (request.query.lotId) {
|
||||
const lot = getLot(request.query.lotId);
|
||||
lotOccupancy.lotId = lot.lotId;
|
||||
lotOccupancy.lotName = lot.lotName;
|
||||
lotOccupancy.mapId = lot.mapId;
|
||||
lotOccupancy.mapName = lot.mapName;
|
||||
}
|
||||
const occupancyTypes = getOccupancyTypes();
|
||||
return response.render("lotOccupancy-edit", {
|
||||
headTitle: "Create a New " + configFunctions.getProperty("aliases.lot") + " " + configFunctions.getProperty("aliases.occupancy") + " Record",
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
import {
|
||||
dateToInteger,
|
||||
dateToString
|
||||
} from "@cityssm/expressjs-server-js/dateTimeFns.js";
|
||||
import type {
|
||||
RequestHandler
|
||||
} from "express";
|
||||
|
|
@ -6,6 +10,10 @@ import {
|
|||
getOccupancyTypes
|
||||
} from "../../helpers/functions.cache.js";
|
||||
|
||||
import {
|
||||
getLot
|
||||
} from "../../helpers/lotOccupancyDB/getLot.js";
|
||||
|
||||
import * as configFunctions from "../../helpers/functions.config.js";
|
||||
|
||||
import type * as recordTypes from "../../types/recordTypes";
|
||||
|
|
@ -13,10 +21,21 @@ import type * as recordTypes from "../../types/recordTypes";
|
|||
|
||||
export const handler: RequestHandler = (request, response) => {
|
||||
|
||||
const startDate = new Date();
|
||||
|
||||
const lotOccupancy: recordTypes.LotOccupancy = {
|
||||
|
||||
occupancyStartDate: dateToInteger(startDate),
|
||||
occupancyStartDateString: dateToString(startDate)
|
||||
};
|
||||
|
||||
if (request.query.lotId) {
|
||||
const lot = getLot(request.query.lotId as string);
|
||||
lotOccupancy.lotId = lot.lotId;
|
||||
lotOccupancy.lotName = lot.lotName;
|
||||
lotOccupancy.mapId = lot.mapId;
|
||||
lotOccupancy.mapName = lot.mapName;
|
||||
}
|
||||
|
||||
const occupancyTypes = getOccupancyTypes();
|
||||
|
||||
return response.render("lotOccupancy-edit", {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,24 @@
|
|||
import { getReportData } from "../../helpers/lotOccupancyDB/getReportData.js";
|
||||
import papaparse from "papaparse";
|
||||
export const handler = (request, response) => {
|
||||
const reportName = request.params.reportName;
|
||||
let rows;
|
||||
switch (reportName) {
|
||||
default:
|
||||
rows = getReportData(reportName, request.query);
|
||||
break;
|
||||
}
|
||||
if (!rows) {
|
||||
return response
|
||||
.status(404)
|
||||
.json({
|
||||
success: false,
|
||||
message: "Report Not Found"
|
||||
});
|
||||
}
|
||||
const csv = papaparse.unparse(rows);
|
||||
response.setHeader("Content-Disposition", "attachment; filename=" + reportName + "-" + Date.now().toString() + ".csv");
|
||||
response.setHeader("Content-Type", "text/csv");
|
||||
response.send(csv);
|
||||
};
|
||||
export default handler;
|
||||
|
|
|
|||
|
|
@ -1,23 +1,46 @@
|
|||
import type { RequestHandler } from "express";
|
||||
import type {
|
||||
RequestHandler
|
||||
} from "express";
|
||||
|
||||
// import * as configFunctions from "../../helpers/functions.config.js";
|
||||
import {
|
||||
getReportData,
|
||||
ReportParameters
|
||||
} from "../../helpers/lotOccupancyDB/getReportData.js";
|
||||
|
||||
import papaparse from "papaparse";
|
||||
|
||||
|
||||
export const handler: RequestHandler = (request, response) => {
|
||||
|
||||
// const reportName = request.params.reportName;
|
||||
const reportName = request.params.reportName;
|
||||
|
||||
/*
|
||||
const csv = rawToCSV(rowsColumnsObject);
|
||||
let rows: unknown[];
|
||||
|
||||
response.setHeader("Content-Disposition",
|
||||
"attachment; filename=" + reportName + "-" + Date.now().toString() + ".csv");
|
||||
switch (reportName) {
|
||||
|
||||
response.setHeader("Content-Type", "text/csv");
|
||||
default:
|
||||
rows = getReportData(reportName, request.query as ReportParameters);
|
||||
break;
|
||||
}
|
||||
|
||||
response.send(csv);
|
||||
*/
|
||||
if (!rows) {
|
||||
return response
|
||||
.status(404)
|
||||
.json({
|
||||
success: false,
|
||||
message: "Report Not Found"
|
||||
});
|
||||
}
|
||||
|
||||
const csv = papaparse.unparse(rows);
|
||||
|
||||
response.setHeader("Content-Disposition",
|
||||
"attachment; filename=" + reportName + "-" + Date.now().toString() + ".csv");
|
||||
|
||||
response.setHeader("Content-Type", "text/csv");
|
||||
|
||||
response.send(csv);
|
||||
};
|
||||
|
||||
|
||||
export default handler;
|
||||
export default handler;
|
||||
|
|
@ -6,7 +6,7 @@ export const addLotOccupancyOccupant = (lotOccupancyOccupantForm, requestSession
|
|||
const maxIndexResult = database.prepare("select lotOccupantIndex" +
|
||||
" from LotOccupancyOccupants" +
|
||||
" where lotOccupancyId = ?" +
|
||||
" order by lotOccupantIndex" +
|
||||
" order by lotOccupantIndex desc" +
|
||||
" limit 1")
|
||||
.get(lotOccupancyOccupantForm.lotOccupancyId);
|
||||
if (maxIndexResult) {
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ export const addLotOccupancyOccupant =
|
|||
const maxIndexResult = database.prepare("select lotOccupantIndex" +
|
||||
" from LotOccupancyOccupants" +
|
||||
" where lotOccupancyId = ?" +
|
||||
" order by lotOccupantIndex" +
|
||||
" order by lotOccupantIndex desc" +
|
||||
" limit 1")
|
||||
.get(lotOccupancyOccupantForm.lotOccupancyId);
|
||||
|
||||
|
|
|
|||
|
|
@ -7,12 +7,13 @@ export const addLotOccupancyTransaction = (lotOccupancyTransactionForm, requestS
|
|||
const maxIndexResult = database.prepare("select transactionIndex" +
|
||||
" from LotOccupancyTransactions" +
|
||||
" where lotOccupancyId = ?" +
|
||||
" order by transactionIndex" +
|
||||
" order by transactionIndex desc" +
|
||||
" limit 1")
|
||||
.get(lotOccupancyTransactionForm.lotOccupancyId);
|
||||
if (maxIndexResult) {
|
||||
transactionIndex = maxIndexResult.transactionIndex + 1;
|
||||
}
|
||||
console.log("transactionIndex = " + transactionIndex);
|
||||
const rightNow = new Date();
|
||||
const transactionDate = lotOccupancyTransactionForm.transactionDateString ?
|
||||
dateStringToInteger(lotOccupancyTransactionForm.transactionDateString) :
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ export const addLotOccupancyTransaction =
|
|||
const maxIndexResult = database.prepare("select transactionIndex" +
|
||||
" from LotOccupancyTransactions" +
|
||||
" where lotOccupancyId = ?" +
|
||||
" order by transactionIndex" +
|
||||
" order by transactionIndex desc" +
|
||||
" limit 1")
|
||||
.get(lotOccupancyTransactionForm.lotOccupancyId);
|
||||
|
||||
|
|
@ -41,6 +41,8 @@ export const addLotOccupancyTransaction =
|
|||
transactionIndex = maxIndexResult.transactionIndex + 1;
|
||||
}
|
||||
|
||||
console.log("transactionIndex = " + transactionIndex);
|
||||
|
||||
const rightNow = new Date();
|
||||
|
||||
const transactionDate = lotOccupancyTransactionForm.transactionDateString ?
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
export interface ReportParameters {
|
||||
[parameterName: string]: string | number;
|
||||
}
|
||||
export declare const getReportData: (reportName: string, reportParameters?: ReportParameters) => unknown[];
|
||||
export default getReportData;
|
||||
|
|
@ -0,0 +1,51 @@
|
|||
import sqlite from "better-sqlite3";
|
||||
import { lotOccupancyDB as databasePath } from "../../data/databasePaths.js";
|
||||
import * as configFunctions from "../functions.config.js";
|
||||
import * as dateTimeFunctions from "@cityssm/expressjs-server-js/dateTimeFns.js";
|
||||
import camelCase from "camelcase";
|
||||
const mapCamelCase = camelCase(configFunctions.getProperty("aliases.map"));
|
||||
const mapNameAlias = mapCamelCase + "Name";
|
||||
const mapDescriptionAlias = mapCamelCase + "Description";
|
||||
const mapAddress1Alias = mapCamelCase + "Address1";
|
||||
const mapAddress2Alias = mapCamelCase + "Address2";
|
||||
const mapCityAlias = mapCamelCase + "City";
|
||||
const mapProvinceAlias = mapCamelCase + "Province";
|
||||
const mapPostalCodeAlias = mapCamelCase + "PostalCode";
|
||||
const mapPhoneNumberAlias = mapCamelCase + "PhoneNumber";
|
||||
export const getReportData = (reportName, reportParameters) => {
|
||||
let sql;
|
||||
const sqlParameters = [];
|
||||
switch (reportName) {
|
||||
case "maps-all":
|
||||
sql = "select * from Maps";
|
||||
break;
|
||||
case "maps-formatted":
|
||||
sql = "select mapName as " + mapNameAlias + "," +
|
||||
" mapDescription as " + mapDescriptionAlias + "," +
|
||||
" mapAddress1 as " + mapAddress1Alias + "," +
|
||||
" mapAddress2 as " + mapAddress2Alias + "," +
|
||||
" mapCity as " + mapCityAlias + "," +
|
||||
" mapProvince as " + mapProvinceAlias + "," +
|
||||
" mapPostalCode as " + mapPostalCodeAlias + "," +
|
||||
" mapPhoneNumber as " + mapPhoneNumberAlias +
|
||||
" from Maps" +
|
||||
" where recordDelete_timeMillis is null" +
|
||||
" order by mapName";
|
||||
break;
|
||||
case "lots-all":
|
||||
sql = "select * from Lots";
|
||||
break;
|
||||
default:
|
||||
return undefined;
|
||||
}
|
||||
const database = sqlite(databasePath, {
|
||||
readonly: true
|
||||
});
|
||||
database.function("userFn_dateIntegerToString", dateTimeFunctions.dateIntegerToString);
|
||||
database.function("userFn_timeIntegerToString", dateTimeFunctions.timeIntegerToString);
|
||||
const rows = database.prepare(sql)
|
||||
.all(sqlParameters);
|
||||
database.close();
|
||||
return rows;
|
||||
};
|
||||
export default getReportData;
|
||||
|
|
@ -0,0 +1,84 @@
|
|||
/* eslint-disable no-case-declarations */
|
||||
|
||||
import sqlite from "better-sqlite3";
|
||||
|
||||
import {
|
||||
lotOccupancyDB as databasePath
|
||||
} from "../../data/databasePaths.js";
|
||||
|
||||
import * as configFunctions from "../functions.config.js";
|
||||
import * as dateTimeFunctions from "@cityssm/expressjs-server-js/dateTimeFns.js";
|
||||
|
||||
import camelCase from "camelcase";
|
||||
|
||||
export interface ReportParameters {
|
||||
[parameterName: string]: string | number;
|
||||
}
|
||||
|
||||
|
||||
const mapCamelCase = camelCase(configFunctions.getProperty("aliases.map"));
|
||||
|
||||
const mapNameAlias = mapCamelCase + "Name";
|
||||
const mapDescriptionAlias = mapCamelCase + "Description";
|
||||
const mapAddress1Alias = mapCamelCase + "Address1";
|
||||
const mapAddress2Alias = mapCamelCase + "Address2";
|
||||
const mapCityAlias = mapCamelCase + "City";
|
||||
const mapProvinceAlias = mapCamelCase + "Province";
|
||||
const mapPostalCodeAlias = mapCamelCase + "PostalCode";
|
||||
const mapPhoneNumberAlias = mapCamelCase + "PhoneNumber";
|
||||
|
||||
export const getReportData = (reportName: string, reportParameters ? : ReportParameters): unknown[] => {
|
||||
|
||||
let sql: string;
|
||||
const sqlParameters = [];
|
||||
|
||||
switch (reportName) {
|
||||
|
||||
case "maps-all":
|
||||
|
||||
sql = "select * from Maps";
|
||||
break;
|
||||
|
||||
case "maps-formatted":
|
||||
|
||||
sql = "select mapName as " + mapNameAlias + "," +
|
||||
" mapDescription as " + mapDescriptionAlias + "," +
|
||||
" mapAddress1 as " + mapAddress1Alias + "," +
|
||||
" mapAddress2 as " + mapAddress2Alias + "," +
|
||||
" mapCity as " + mapCityAlias + "," +
|
||||
" mapProvince as " + mapProvinceAlias + "," +
|
||||
" mapPostalCode as " + mapPostalCodeAlias + "," +
|
||||
" mapPhoneNumber as " + mapPhoneNumberAlias +
|
||||
" from Maps" +
|
||||
" where recordDelete_timeMillis is null" +
|
||||
" order by mapName";
|
||||
|
||||
break;
|
||||
|
||||
case "lots-all":
|
||||
|
||||
sql = "select * from Lots";
|
||||
break;
|
||||
|
||||
default:
|
||||
return undefined;
|
||||
}
|
||||
|
||||
const database = sqlite(databasePath, {
|
||||
readonly: true
|
||||
});
|
||||
|
||||
database.function("userFn_dateIntegerToString", dateTimeFunctions.dateIntegerToString);
|
||||
database.function("userFn_timeIntegerToString", dateTimeFunctions.timeIntegerToString);
|
||||
|
||||
const rows =
|
||||
database.prepare(sql)
|
||||
.all(sqlParameters);
|
||||
|
||||
database.close();
|
||||
|
||||
return rows;
|
||||
};
|
||||
|
||||
|
||||
export default getReportData;
|
||||
|
|
@ -16,6 +16,7 @@
|
|||
"@fortawesome/fontawesome-free": "^5.15.4",
|
||||
"activedirectory2": "^2.1.0",
|
||||
"better-sqlite3": "^7.6.2",
|
||||
"camelcase": "^7.0.0",
|
||||
"compression": "^1.7.4",
|
||||
"cookie-parser": "^1.4.6",
|
||||
"cross-env": "^7.0.3",
|
||||
|
|
@ -28,6 +29,7 @@
|
|||
"express-session": "^1.17.3",
|
||||
"http-errors": "^2.0.0",
|
||||
"leaflet": "^1.8.0",
|
||||
"papaparse": "^5.3.2",
|
||||
"session-file-store": "^1.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
@ -65,7 +67,6 @@
|
|||
"gulp-minify": "^3.1.0",
|
||||
"gulp-sass": "^5.1.0",
|
||||
"nodemon": "^2.0.19",
|
||||
"papaparse": "^5.3.2",
|
||||
"sass": "^1.54.5"
|
||||
},
|
||||
"engines": {
|
||||
|
|
@ -2105,12 +2106,14 @@
|
|||
}
|
||||
},
|
||||
"node_modules/camelcase": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz",
|
||||
"integrity": "sha512-4nhGqUkc4BqbBBB4Q6zLuD7lzzrHYrjKGeYaEji/3tFR5VdJu9v+LilhGIVe8wxEJPPOeWo7eg8dwY13TZ1BNg==",
|
||||
"dev": true,
|
||||
"version": "7.0.0",
|
||||
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-7.0.0.tgz",
|
||||
"integrity": "sha512-JToIvOmz6nhGsUhAYScbo2d6Py5wojjNfoxoc2mEVLUdJ70gJK2gnd+ABY1Tc3sVMyK7QDPtN0T/XdlCQWITyQ==",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
"node": ">=14.16"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/chalk": {
|
||||
|
|
@ -7621,8 +7624,7 @@
|
|||
"node_modules/papaparse": {
|
||||
"version": "5.3.2",
|
||||
"resolved": "https://registry.npmjs.org/papaparse/-/papaparse-5.3.2.tgz",
|
||||
"integrity": "sha512-6dNZu0Ki+gyV0eBsFKJhYr+MdQYAzFUGlBMNj3GNrmHxmz1lfRa24CjFObPXtjcetlOv5Ad299MhIK0znp3afw==",
|
||||
"dev": true
|
||||
"integrity": "sha512-6dNZu0Ki+gyV0eBsFKJhYr+MdQYAzFUGlBMNj3GNrmHxmz1lfRa24CjFObPXtjcetlOv5Ad299MhIK0znp3afw=="
|
||||
},
|
||||
"node_modules/parent-module": {
|
||||
"version": "1.0.1",
|
||||
|
|
@ -10502,6 +10504,15 @@
|
|||
"object.assign": "^4.1.0"
|
||||
}
|
||||
},
|
||||
"node_modules/yargs-parser/node_modules/camelcase": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz",
|
||||
"integrity": "sha512-4nhGqUkc4BqbBBB4Q6zLuD7lzzrHYrjKGeYaEji/3tFR5VdJu9v+LilhGIVe8wxEJPPOeWo7eg8dwY13TZ1BNg==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/yargs/node_modules/ansi-regex": {
|
||||
"version": "2.1.1",
|
||||
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
|
||||
|
|
@ -10511,6 +10522,15 @@
|
|||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/yargs/node_modules/camelcase": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz",
|
||||
"integrity": "sha512-4nhGqUkc4BqbBBB4Q6zLuD7lzzrHYrjKGeYaEji/3tFR5VdJu9v+LilhGIVe8wxEJPPOeWo7eg8dwY13TZ1BNg==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/yargs/node_modules/find-up": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz",
|
||||
|
|
@ -12293,10 +12313,9 @@
|
|||
"dev": true
|
||||
},
|
||||
"camelcase": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz",
|
||||
"integrity": "sha512-4nhGqUkc4BqbBBB4Q6zLuD7lzzrHYrjKGeYaEji/3tFR5VdJu9v+LilhGIVe8wxEJPPOeWo7eg8dwY13TZ1BNg==",
|
||||
"dev": true
|
||||
"version": "7.0.0",
|
||||
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-7.0.0.tgz",
|
||||
"integrity": "sha512-JToIvOmz6nhGsUhAYScbo2d6Py5wojjNfoxoc2mEVLUdJ70gJK2gnd+ABY1Tc3sVMyK7QDPtN0T/XdlCQWITyQ=="
|
||||
},
|
||||
"chalk": {
|
||||
"version": "4.1.2",
|
||||
|
|
@ -16588,8 +16607,7 @@
|
|||
"papaparse": {
|
||||
"version": "5.3.2",
|
||||
"resolved": "https://registry.npmjs.org/papaparse/-/papaparse-5.3.2.tgz",
|
||||
"integrity": "sha512-6dNZu0Ki+gyV0eBsFKJhYr+MdQYAzFUGlBMNj3GNrmHxmz1lfRa24CjFObPXtjcetlOv5Ad299MhIK0znp3afw==",
|
||||
"dev": true
|
||||
"integrity": "sha512-6dNZu0Ki+gyV0eBsFKJhYr+MdQYAzFUGlBMNj3GNrmHxmz1lfRa24CjFObPXtjcetlOv5Ad299MhIK0znp3afw=="
|
||||
},
|
||||
"parent-module": {
|
||||
"version": "1.0.1",
|
||||
|
|
@ -18850,6 +18868,12 @@
|
|||
"integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==",
|
||||
"dev": true
|
||||
},
|
||||
"camelcase": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz",
|
||||
"integrity": "sha512-4nhGqUkc4BqbBBB4Q6zLuD7lzzrHYrjKGeYaEji/3tFR5VdJu9v+LilhGIVe8wxEJPPOeWo7eg8dwY13TZ1BNg==",
|
||||
"dev": true
|
||||
},
|
||||
"find-up": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz",
|
||||
|
|
@ -18940,6 +18964,14 @@
|
|||
"requires": {
|
||||
"camelcase": "^3.0.0",
|
||||
"object.assign": "^4.1.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"camelcase": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz",
|
||||
"integrity": "sha512-4nhGqUkc4BqbBBB4Q6zLuD7lzzrHYrjKGeYaEji/3tFR5VdJu9v+LilhGIVe8wxEJPPOeWo7eg8dwY13TZ1BNg==",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"yocto-queue": {
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@
|
|||
"@fortawesome/fontawesome-free": "^5.15.4",
|
||||
"activedirectory2": "^2.1.0",
|
||||
"better-sqlite3": "^7.6.2",
|
||||
"camelcase": "^7.0.0",
|
||||
"compression": "^1.7.4",
|
||||
"cookie-parser": "^1.4.6",
|
||||
"cross-env": "^7.0.3",
|
||||
|
|
@ -49,6 +50,7 @@
|
|||
"express-session": "^1.17.3",
|
||||
"http-errors": "^2.0.0",
|
||||
"leaflet": "^1.8.0",
|
||||
"papaparse": "^5.3.2",
|
||||
"session-file-store": "^1.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
@ -86,7 +88,6 @@
|
|||
"gulp-minify": "^3.1.0",
|
||||
"gulp-sass": "^5.1.0",
|
||||
"nodemon": "^2.0.19",
|
||||
"papaparse": "^5.3.2",
|
||||
"sass": "^1.54.5"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -896,6 +896,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
lotOccupancyTransactionsContainerElement.querySelector("#lotOccupancyTransactions--grandTotal").textContent = "$" + transactionGrandTotal.toFixed(2);
|
||||
const feeGrandTotal = getFeeGrandTotal();
|
||||
if (feeGrandTotal > transactionGrandTotal) {
|
||||
lotOccupancyTransactionsContainerElement.insertAdjacentHTML("afterbegin", "<div class=\"message is-warning\">" +
|
||||
"<div class=\"message-body\">" +
|
||||
"<div class=\"level\">" +
|
||||
"<div class=\"level-left\"><div class=\"level-item\">Outstanding Balance</div></div>" +
|
||||
"<div class=\"level-right\"><div class=\"level-item\">$" + (feeGrandTotal - transactionGrandTotal).toFixed(2) + "</div></div>" +
|
||||
"</div>" +
|
||||
"</div>" +
|
||||
"</div>");
|
||||
}
|
||||
};
|
||||
document.querySelector("#button--addTransaction").addEventListener("click", () => {
|
||||
|
|
|
|||
|
|
@ -1247,10 +1247,15 @@ declare const bulmaJS: BulmaJS;
|
|||
|
||||
if (feeGrandTotal > transactionGrandTotal) {
|
||||
|
||||
/*
|
||||
lotOccupancyTransactionsContainerElement.insertAdjacentHTML("afterbegin",
|
||||
"<div ")
|
||||
*/
|
||||
"<div class=\"message is-warning\">" +
|
||||
"<div class=\"message-body\">" +
|
||||
"<div class=\"level\">" +
|
||||
"<div class=\"level-left\"><div class=\"level-item\">Outstanding Balance</div></div>" +
|
||||
"<div class=\"level-right\"><div class=\"level-item\">$" + (feeGrandTotal - transactionGrandTotal).toFixed(2) + "</div></div>" +
|
||||
"</div>" +
|
||||
"</div>" +
|
||||
"</div>");
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -301,12 +301,16 @@ function importFromCSV() {
|
|||
}, user);
|
||||
}
|
||||
if (masterRow.CM_COMMITTAL_TYPE !== "") {
|
||||
let commitalType = masterRow.CM_COMMITTAL_TYPE;
|
||||
if (commitalType === "GS") {
|
||||
commitalType = "Graveside";
|
||||
}
|
||||
addOrUpdateLotOccupancyField({
|
||||
lotOccupancyId,
|
||||
occupancyTypeFieldId: deceasedOccupancyType.occupancyTypeFields.find((occupancyTypeField) => {
|
||||
return occupancyTypeField.occupancyTypeField === "Committal Type";
|
||||
}).occupancyTypeFieldId,
|
||||
lotOccupancyFieldValue: masterRow.CM_COMMITTAL_TYPE
|
||||
lotOccupancyFieldValue: commitalType
|
||||
}, user);
|
||||
}
|
||||
if (masterRow.CM_REMARK1 !== "") {
|
||||
|
|
|
|||
|
|
@ -487,12 +487,18 @@ function importFromCSV() {
|
|||
|
||||
if (masterRow.CM_COMMITTAL_TYPE !== "") {
|
||||
|
||||
let commitalType = masterRow.CM_COMMITTAL_TYPE;
|
||||
|
||||
if (commitalType === "GS") {
|
||||
commitalType = "Graveside";
|
||||
}
|
||||
|
||||
addOrUpdateLotOccupancyField({
|
||||
lotOccupancyId,
|
||||
occupancyTypeFieldId: deceasedOccupancyType.occupancyTypeFields.find((occupancyTypeField) => {
|
||||
return occupancyTypeField.occupancyTypeField === "Committal Type"
|
||||
}).occupancyTypeFieldId,
|
||||
lotOccupancyFieldValue: masterRow.CM_COMMITTAL_TYPE
|
||||
lotOccupancyFieldValue: commitalType
|
||||
}, user);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -42,83 +42,87 @@
|
|||
</button>
|
||||
</div>
|
||||
|
||||
<div class="columns">
|
||||
<div class="column">
|
||||
<div class="field">
|
||||
<label class="label" for="lot--lotName">
|
||||
<%= configFunctions.getProperty("aliases.lot") %> Name
|
||||
</label>
|
||||
<div class="control">
|
||||
<input class="input" id="lot--lotName" name="lotName" value="<%= lot.lotName %>" maxlength="100" required />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column">
|
||||
<label class="label" for="lot--lotTypeId">
|
||||
<%= configFunctions.getProperty("aliases.lot") %> Type
|
||||
</label>
|
||||
<div class="field has-addons">
|
||||
<div class="control is-expanded">
|
||||
<div class="select is-fullwidth">
|
||||
<select id="lot--lotTypeId" name="lotTypeId" required>
|
||||
<% if (isCreate) { %>
|
||||
<option value="">(No Type)</option>
|
||||
<% } %>
|
||||
<% let typeIsFound = false; %>
|
||||
<% for (const lotType of lotTypes) { %>
|
||||
<%
|
||||
if (lot.lotTypeId === lotType.lotTypeId) {
|
||||
typeIsFound = true;
|
||||
}
|
||||
%>
|
||||
<option value="<%= lotType.lotTypeId %>"
|
||||
<%= (lot.lotTypeId === lotType.lotTypeId ? " selected" : "") %>
|
||||
<%= (!isCreate && lot.lotTypeId !== lotType.lotTypeId ? " disabled" : "") %>>
|
||||
<%= lotType.lotType %>
|
||||
</option>
|
||||
<% } %>
|
||||
<% if (lot.lotTypeId && !typeIsFound) { %>
|
||||
<option value="<%= lot.lotTypeId %>" selected>
|
||||
<%= lot.lotType %>
|
||||
</option>
|
||||
<% } %>
|
||||
</select>
|
||||
<div class="panel">
|
||||
<div class="panel-block is-block">
|
||||
<div class="columns">
|
||||
<div class="column">
|
||||
<div class="field">
|
||||
<label class="label" for="lot--lotName">
|
||||
<%= configFunctions.getProperty("aliases.lot") %> Name
|
||||
</label>
|
||||
<div class="control">
|
||||
<input class="input" id="lot--lotName" name="lotName" value="<%= lot.lotName %>" maxlength="100" required />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control">
|
||||
<button class="button is-unlock-field-button" type="button" title="Unlock Field">
|
||||
<i class="fas fa-unlock" aria-hidden="true"></i>
|
||||
</button>
|
||||
<div class="column">
|
||||
<label class="label" for="lot--lotTypeId">
|
||||
<%= configFunctions.getProperty("aliases.lot") %> Type
|
||||
</label>
|
||||
<div class="field has-addons">
|
||||
<div class="control is-expanded">
|
||||
<div class="select is-fullwidth">
|
||||
<select id="lot--lotTypeId" name="lotTypeId" required>
|
||||
<% if (isCreate) { %>
|
||||
<option value="">(No Type)</option>
|
||||
<% } %>
|
||||
<% let typeIsFound = false; %>
|
||||
<% for (const lotType of lotTypes) { %>
|
||||
<%
|
||||
if (lot.lotTypeId === lotType.lotTypeId) {
|
||||
typeIsFound = true;
|
||||
}
|
||||
%>
|
||||
<option value="<%= lotType.lotTypeId %>"
|
||||
<%= (lot.lotTypeId === lotType.lotTypeId ? " selected" : "") %>
|
||||
<%= (!isCreate && lot.lotTypeId !== lotType.lotTypeId ? " disabled" : "") %>>
|
||||
<%= lotType.lotType %>
|
||||
</option>
|
||||
<% } %>
|
||||
<% if (lot.lotTypeId && !typeIsFound) { %>
|
||||
<option value="<%= lot.lotTypeId %>" selected>
|
||||
<%= lot.lotType %>
|
||||
</option>
|
||||
<% } %>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control">
|
||||
<button class="button is-unlock-field-button" data-tooltip="Unlock Field" type="button" aria-label="Unlock Field">
|
||||
<i class="fas fa-unlock" aria-hidden="true"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column">
|
||||
<label class="label" for="lot--lotStatusId">
|
||||
<%= configFunctions.getProperty("aliases.lot") %> Status
|
||||
</label>
|
||||
<div class="field">
|
||||
<div class="control">
|
||||
<div class="select is-fullwidth">
|
||||
<select id="lot--lotStatusId" name="lotStatusId">
|
||||
<option value="">(No Status)</option>
|
||||
<% let statusIsFound = false; %>
|
||||
<% for (const lotStatus of lotStatuses) { %>
|
||||
<%
|
||||
if (lot.lotStatusId === lotStatus.lotStatusId) {
|
||||
statusIsFound = true;
|
||||
}
|
||||
%>
|
||||
<option value="<%= lotStatus.lotStatusId %>"
|
||||
<%= (lot.lotStatusId === lotStatus.lotStatusId ? " selected" : "") %>>
|
||||
<%= lotStatus.lotStatus %>
|
||||
</option>
|
||||
<% } %>
|
||||
<% if (lot.lotStatusId && !statusIsFound) { %>
|
||||
<option value="<%= lot.lotStatusId %>" selected>
|
||||
<%= lot.lotStatus %>
|
||||
</option>
|
||||
<% } %>
|
||||
</select>
|
||||
<div class="column">
|
||||
<label class="label" for="lot--lotStatusId">
|
||||
<%= configFunctions.getProperty("aliases.lot") %> Status
|
||||
</label>
|
||||
<div class="field">
|
||||
<div class="control">
|
||||
<div class="select is-fullwidth">
|
||||
<select id="lot--lotStatusId" name="lotStatusId">
|
||||
<option value="">(No Status)</option>
|
||||
<% let statusIsFound = false; %>
|
||||
<% for (const lotStatus of lotStatuses) { %>
|
||||
<%
|
||||
if (lot.lotStatusId === lotStatus.lotStatusId) {
|
||||
statusIsFound = true;
|
||||
}
|
||||
%>
|
||||
<option value="<%= lotStatus.lotStatusId %>"
|
||||
<%= (lot.lotStatusId === lotStatus.lotStatusId ? " selected" : "") %>>
|
||||
<%= lotStatus.lotStatus %>
|
||||
</option>
|
||||
<% } %>
|
||||
<% if (lot.lotStatusId && !statusIsFound) { %>
|
||||
<option value="<%= lot.lotStatusId %>" selected>
|
||||
<%= lot.lotStatus %>
|
||||
</option>
|
||||
<% } %>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -127,81 +131,88 @@
|
|||
|
||||
<div class="columns">
|
||||
<div class="column">
|
||||
<h2 class="title is-4">Geographic Location</h2>
|
||||
<div class="field">
|
||||
<label class="label" for="lot--lotLatitude">Latitude</label>
|
||||
<div class="control">
|
||||
<input class="input" id="lot--lotLatitude" name="lotLatitude" type="number" min="-90" max="90" step="0.00000001" value="<%= lot.lotLatitude %>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label class="label" for="lot--lotLongitude">Longitude</label>
|
||||
<div class="control">
|
||||
<input class="input" id="lot--lotLongitude" name="lotLongitude" type="number" min="-180" max="180" step="0.00000001" value="<%= lot.lotLongitude %>" />
|
||||
<div class="panel">
|
||||
<h2 class="panel-heading">Geographic Location</h2>
|
||||
<div class="panel-block is-block">
|
||||
<div class="field">
|
||||
<label class="label" for="lot--lotLatitude">Latitude</label>
|
||||
<div class="control">
|
||||
<input class="input" id="lot--lotLatitude" name="lotLatitude" type="number" min="-90" max="90" step="0.00000001" value="<%= lot.lotLatitude %>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label class="label" for="lot--lotLongitude">Longitude</label>
|
||||
<div class="control">
|
||||
<input class="input" id="lot--lotLongitude" name="lotLongitude" type="number" min="-180" max="180" step="0.00000001" value="<%= lot.lotLongitude %>" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column">
|
||||
<h2 class="title is-4">Image</h2>
|
||||
<label class="label" for="lot--mapId"><%= configFunctions.getProperty("aliases.map") %></label>
|
||||
<div class="field has-addons">
|
||||
<div class="control is-expanded">
|
||||
<div class="select is-fullwidth">
|
||||
<select id="lot--mapId" name="mapId">
|
||||
<option value="" <%= (!isCreate && lot.mapId ? " disabled" : "") %>>
|
||||
(No <%= configFunctions.getProperty("aliases.map") %> Selected)
|
||||
</option>
|
||||
<% let mapIsFound = false; %>
|
||||
<% for (const map of maps) { %>
|
||||
<%
|
||||
if (lot.mapId === map.mapId) {
|
||||
mapIsFound = true;
|
||||
}
|
||||
%>
|
||||
<option value="<%= map.mapId %>"
|
||||
<%= (lot.mapId === map.mapId ? " selected" : "") %>
|
||||
<%= (!isCreate && lot.mapId !== map.mapId ? " disabled" : "") %>>
|
||||
<%= map.mapName %>
|
||||
</option>
|
||||
<% } %>
|
||||
<% if (lot.mapId && !mapIsFound) { %>
|
||||
<option value="<%= lot.mapId %>" selected>
|
||||
<%= lot.mapName %>
|
||||
</option>
|
||||
<% } %>
|
||||
</select>
|
||||
<div class="panel">
|
||||
<h2 class="panel-heading">Image</h2>
|
||||
<div class="panel-block is-block">
|
||||
<label class="label" for="lot--mapId"><%= configFunctions.getProperty("aliases.map") %></label>
|
||||
<div class="field has-addons">
|
||||
<div class="control is-expanded">
|
||||
<div class="select is-fullwidth">
|
||||
<select id="lot--mapId" name="mapId">
|
||||
<option value="" <%= (!isCreate && lot.mapId ? " disabled" : "") %>>
|
||||
(No <%= configFunctions.getProperty("aliases.map") %> Selected)
|
||||
</option>
|
||||
<% let mapIsFound = false; %>
|
||||
<% for (const map of maps) { %>
|
||||
<%
|
||||
if (lot.mapId === map.mapId) {
|
||||
mapIsFound = true;
|
||||
}
|
||||
%>
|
||||
<option value="<%= map.mapId %>"
|
||||
<%= (lot.mapId === map.mapId ? " selected" : "") %>
|
||||
<%= (!isCreate && lot.mapId !== map.mapId ? " disabled" : "") %>>
|
||||
<%= map.mapName %>
|
||||
</option>
|
||||
<% } %>
|
||||
<% if (lot.mapId && !mapIsFound) { %>
|
||||
<option value="<%= lot.mapId %>" selected>
|
||||
<%= lot.mapName %>
|
||||
</option>
|
||||
<% } %>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control">
|
||||
<button class="button is-unlock-field-button" data-tooltip="Unlock Field" type="button" aria-label="Unlock Field">
|
||||
<i class="fas fa-unlock" aria-hidden="true"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="field">
|
||||
<label class="label" for="lot--mapKey">
|
||||
<%= configFunctions.getProperty("aliases.map") %> SVG Key
|
||||
</label>
|
||||
<div class="control">
|
||||
<input class="input" id="lot--mapKey" name="mapKey" value="<%= lot.mapKey %>" maxlength="100" />
|
||||
</div>
|
||||
<p class="help">
|
||||
<a href="https://cityssm.github.io/lot-occupancy-system/docs/" target="_blank" rel="noreferrer">
|
||||
<i class="fa fa-question-circle" aria-hidden="true"></i>
|
||||
What is the SVG key?
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control">
|
||||
<button class="button is-unlock-field-button" type="button" title="Unlock Field">
|
||||
<i class="fas fa-unlock" aria-hidden="true"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="field">
|
||||
<label class="label" for="lot--mapKey">
|
||||
<%= configFunctions.getProperty("aliases.map") %> SVG Key
|
||||
</label>
|
||||
<div class="control">
|
||||
<input class="input" id="lot--mapKey" name="mapKey" value="<%= lot.mapKey %>" maxlength="100" />
|
||||
</div>
|
||||
<p class="help">
|
||||
<a href="https://cityssm.github.io/lot-occupancy-system/docs/" target="_blank" rel="noreferrer">
|
||||
<i class="fa fa-question-circle" aria-hidden="true"></i>
|
||||
What is the SVG key?
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="columns">
|
||||
<div class="panel mb-5">
|
||||
<h2 class="panel-heading">
|
||||
Additional Details
|
||||
</h2>
|
||||
<div class="panel-block"></div>
|
||||
</div>
|
||||
|
||||
<h2 class="title is-4">
|
||||
Additional Details
|
||||
</h2>
|
||||
</form>
|
||||
|
||||
<% if (isCreate) { %>
|
||||
|
|
@ -211,25 +222,51 @@
|
|||
</p>
|
||||
</div>
|
||||
<% } else { %>
|
||||
<div class="columns is-mobile mt-2">
|
||||
<div class="column">
|
||||
<h2 class="title is-4">
|
||||
Comments
|
||||
</h2>
|
||||
<div class="panel">
|
||||
<div class="panel-heading">
|
||||
<div class="level is-mobile">
|
||||
<div class="level-left">
|
||||
<div class="level-item">
|
||||
<h2 class="has-text-weight-bold is-size-5">
|
||||
Comments
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="level-right">
|
||||
<div class="level-item">
|
||||
<button class="button is-small is-success" id="lotComments--add" type="button">
|
||||
<span class="icon is-small"><i class="fas fa-plus" aria-hidden="true"></i></span>
|
||||
<span>Add a Comment</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column is-narrow has-text-right">
|
||||
<button class="button is-small is-success" id="lotComments--add" type="button">
|
||||
<span class="icon is-small"><i class="fas fa-plus" aria-hidden="true"></i></span>
|
||||
<span>Add a Comment</span>
|
||||
</button>
|
||||
<div class="panel-block is-block" id="container--lotComments"></div>
|
||||
</div>
|
||||
|
||||
<div class="panel">
|
||||
<div class="panel-heading">
|
||||
<div class="level is-mobile">
|
||||
<div class="level-left">
|
||||
<div class="level-item">
|
||||
<h2 class="has-text-weight-bold is-size-5">
|
||||
<%= configFunctions.getProperty("aliases.occupancies") %>
|
||||
<span class="tag"><%= lot.lotOccupancies.length %></span>
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="level-right">
|
||||
<div class="level-item">
|
||||
<a class="button is-success is-small has-text-weight-normal" href="<%= urlPrefix %>/lotOccupancies/new?lotId=<%= lot.lotId %>">
|
||||
<span class="icon is-small"><i class="fas fa-plus" aria-hidden="true"></i></span>
|
||||
<span>Create New <%= configFunctions.getProperty("aliases.occupancy") %></span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="container--lotComments"></div>
|
||||
|
||||
<h2 class="title is-4 mt-2">
|
||||
<%= configFunctions.getProperty("aliases.occupancies") %>
|
||||
<span class="tag"><%= lot.lotOccupancies.length %></span>
|
||||
</h2>
|
||||
|
||||
<% if (lot.lotOccupancies.length === 0) { %>
|
||||
<div class="message is-info">
|
||||
|
|
|
|||
|
|
@ -1,127 +1,143 @@
|
|||
<%- include('_header'); -%>
|
||||
|
||||
<nav class="breadcrumb">
|
||||
<ul>
|
||||
<li><a href="<%= urlPrefix %>/dashboard">Home</a></li>
|
||||
<li>
|
||||
<a href="<%= urlPrefix %>/lots">
|
||||
<span class="icon is-small"><i class="fas fa-vector-square" aria-hidden="true"></i></span>
|
||||
<span><%= configFunctions.getProperty("aliases.lots") %></span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="is-active"><a href="#" aria-current="page">
|
||||
<%= lot.lotName %>
|
||||
</a></li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><a href="<%= urlPrefix %>/dashboard">Home</a></li>
|
||||
<li>
|
||||
<a href="<%= urlPrefix %>/lots">
|
||||
<span class="icon is-small"><i class="fas fa-vector-square" aria-hidden="true"></i></span>
|
||||
<span><%= configFunctions.getProperty("aliases.lots") %></span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="is-active"><a href="#" aria-current="page">
|
||||
<%= lot.lotName %>
|
||||
</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<h1 class="title is-1">
|
||||
<%= lot.lotName %>
|
||||
<%= lot.lotName %>
|
||||
</h1>
|
||||
|
||||
<% if (user.userProperties.canUpdate) { %>
|
||||
<div class="fixed-container is-fixed-bottom-right mx-4 my-4 has-text-right is-hidden-print">
|
||||
<a class="button is-circle is-primary has-tooltip-left" data-tooltip="Update <%= configFunctions.getProperty("aliases.lot") %>" href="<%= urlPrefix %>/lots/<%= lot.lotId %>/edit">
|
||||
<i class="fas fa-pencil-alt" aria-hidden="true"></i>
|
||||
<span class="sr-only">Update <%= configFunctions.getProperty("aliases.lot") %></span>
|
||||
<div class="fixed-container is-fixed-bottom-right mx-4 my-4 has-text-right is-hidden-print">
|
||||
<a class="button is-circle is-primary has-tooltip-left"
|
||||
data-tooltip="Update <%= configFunctions.getProperty("aliases.lot") %>"
|
||||
href="<%= urlPrefix %>/lots/<%= lot.lotId %>/edit">
|
||||
<i class="fas fa-pencil-alt" aria-hidden="true"></i>
|
||||
<span class="sr-only">Update <%= configFunctions.getProperty("aliases.lot") %></span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
<div class="columns">
|
||||
<div class="column">
|
||||
<div>
|
||||
<strong><%= configFunctions.getProperty("aliases.map") %></strong><br />
|
||||
<a href="<%= urlPrefix %>/maps/<%= lot.mapId %>">
|
||||
<%= lot.mapName %>
|
||||
</a>
|
||||
</div>
|
||||
<div class="mt-2">
|
||||
<strong><%= configFunctions.getProperty("aliases.lot") %> Type</strong><br />
|
||||
<%= lot.lotType %>
|
||||
</div>
|
||||
<div class="mt-2">
|
||||
<strong>Status</strong><br />
|
||||
<%= lot.lotStatus %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column">
|
||||
<h2 class="title is-4">Image</h2>
|
||||
<% if (lot.mapSVG) { %>
|
||||
<% const imageURL = urlPrefix + "/images/maps/" + lot.mapSVG %>
|
||||
<div class="image" id="lot--map" data-map-key="<%= lot.mapKey %>">
|
||||
<%- include('../public/images/maps/' + lot.mapSVG); -%>
|
||||
<div class="column">
|
||||
<div class="panel">
|
||||
<div class="panel-block is-block">
|
||||
<div>
|
||||
<strong><%= configFunctions.getProperty("aliases.map") %></strong><br />
|
||||
<a href="<%= urlPrefix %>/maps/<%= lot.mapId %>">
|
||||
<%= lot.mapName %>
|
||||
</a>
|
||||
</div>
|
||||
<div class="mt-2">
|
||||
<strong><%= configFunctions.getProperty("aliases.lot") %> Type</strong><br />
|
||||
<%= lot.lotType %>
|
||||
</div>
|
||||
<div class="mt-2">
|
||||
<strong>Status</strong><br />
|
||||
<%= lot.lotStatus %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<% } else { %>
|
||||
<div class="message is-info">
|
||||
<p class="message-body">There are no image associated with this <%= configFunctions.getProperty("aliases.lot").toLowerCase() %>.</p>
|
||||
</div>
|
||||
<div class="column">
|
||||
<div class="panel">
|
||||
<h2 class="panel-heading">Image</h2>
|
||||
<div class="panel-block is-block">
|
||||
<% if (lot.mapSVG) { %>
|
||||
<% const imageURL = urlPrefix + "/images/maps/" + lot.mapSVG %>
|
||||
<div class="image" id="lot--map" data-map-key="<%= lot.mapKey %>">
|
||||
<%- include('../public/images/maps/' + lot.mapSVG); -%>
|
||||
</div>
|
||||
<% } else { %>
|
||||
<div class="message is-info">
|
||||
<p class="message-body">There are no image associated with this
|
||||
<%= configFunctions.getProperty("aliases.lot").toLowerCase() %>.</p>
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2 class="title is-4">
|
||||
<%= configFunctions.getProperty("aliases.occupancies") %>
|
||||
<span class="tag"><%= lot.lotOccupancies.length %></span>
|
||||
</h2>
|
||||
|
||||
<% if (lot.lotOccupancies.length === 0) { %>
|
||||
<div class="message is-info">
|
||||
<p class="message-body">There are no occupancy records asscociated with this <%= configFunctions.getProperty("aliases.lot") %>.</p>
|
||||
</div>
|
||||
<% } else { %>
|
||||
<table class="table is-fullwidth is-striped is-hoverable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="has-width-10"> </th>
|
||||
<th><%= configFunctions.getProperty("aliases.occupancy") %> Type</th>
|
||||
<th>Start Date</th>
|
||||
<th>End Date</th>
|
||||
<th><%= configFunctions.getProperty("aliases.occupants") %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% const currentDate = dateTimeFunctions.dateToInteger(new Date()); %>
|
||||
<% for (const lotOccupancy of lot.lotOccupancies) { %>
|
||||
<% const isActive = !(lotOccupancy.occupancyEndDate && lotOccupancy.occupancyEndDate < currentDate); %>
|
||||
<tr>
|
||||
<td class="has-text-centered">
|
||||
<% if (isActive) { %>
|
||||
<i class="fas fa-play" title="Current <%= configFunctions.getProperty("aliases.occupancy") %>"></i>
|
||||
<% } else { %>
|
||||
<i class="fas fa-stop" title="Previous <%= configFunctions.getProperty("aliases.occupancy") %>"></i>
|
||||
<% } %>
|
||||
</td>
|
||||
<td>
|
||||
<a class="has-text-weight-bold" href="<%= urlPrefix %>/lotOccupancies/<%= lotOccupancy.lotOccupancyId %>">
|
||||
<%= lotOccupancy.occupancyType %>
|
||||
</a>
|
||||
</td>
|
||||
<td><%= lotOccupancy.occupancyStartDateString %></td>
|
||||
<td>
|
||||
<% if (lotOccupancy.occupancyEndDate) { %>
|
||||
<%= lotOccupancy.occupancyEndDateString %>
|
||||
<% } else { %>
|
||||
(No End Date)
|
||||
<% } %>
|
||||
</td>
|
||||
<td>
|
||||
<% if (lotOccupancy.lotOccupancyOccupants.length === 0) { %>
|
||||
(No <%= configFunctions.getProperty("aliases.occupants") %>)
|
||||
<% } else { %>
|
||||
<% const occupant = lotOccupancy.lotOccupancyOccupants[0]; %>
|
||||
<%= occupant.occupantName %>
|
||||
<%= (lotOccupancy.lotOccupancyOccupants.length > 1 ? " plus " + (lotOccupancy.lotOccupancyOccupants.length - 1) : "") %>
|
||||
<% } %>
|
||||
</td>
|
||||
</tr>
|
||||
<% } %>
|
||||
</tbody>
|
||||
</table>
|
||||
<% } %>
|
||||
<div class="panel">
|
||||
<h2 class="panel-heading">
|
||||
<%= configFunctions.getProperty("aliases.occupancies") %>
|
||||
<span class="tag"><%= lot.lotOccupancies.length %></span>
|
||||
</h2>
|
||||
<div class="panel-block is-block">
|
||||
<% if (lot.lotOccupancies.length === 0) { %>
|
||||
<div class="message is-info">
|
||||
<p class="message-body">There are no occupancy records asscociated with this
|
||||
<%= configFunctions.getProperty("aliases.lot") %>.</p>
|
||||
</div>
|
||||
<% } else { %>
|
||||
<table class="table is-fullwidth is-striped is-hoverable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="has-width-10"> </th>
|
||||
<th><%= configFunctions.getProperty("aliases.occupancy") %> Type</th>
|
||||
<th>Start Date</th>
|
||||
<th>End Date</th>
|
||||
<th><%= configFunctions.getProperty("aliases.occupants") %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% const currentDate = dateTimeFunctions.dateToInteger(new Date()); %>
|
||||
<% for (const lotOccupancy of lot.lotOccupancies) { %>
|
||||
<% const isActive = !(lotOccupancy.occupancyEndDate && lotOccupancy.occupancyEndDate < currentDate); %>
|
||||
<tr>
|
||||
<td class="has-text-centered">
|
||||
<% if (isActive) { %>
|
||||
<i class="fas fa-play" title="Current <%= configFunctions.getProperty("aliases.occupancy") %>"></i>
|
||||
<% } else { %>
|
||||
<i class="fas fa-stop" title="Previous <%= configFunctions.getProperty("aliases.occupancy") %>"></i>
|
||||
<% } %>
|
||||
</td>
|
||||
<td>
|
||||
<a class="has-text-weight-bold"
|
||||
href="<%= urlPrefix %>/lotOccupancies/<%= lotOccupancy.lotOccupancyId %>">
|
||||
<%= lotOccupancy.occupancyType %>
|
||||
</a>
|
||||
</td>
|
||||
<td><%= lotOccupancy.occupancyStartDateString %></td>
|
||||
<td>
|
||||
<% if (lotOccupancy.occupancyEndDate) { %>
|
||||
<%= lotOccupancy.occupancyEndDateString %>
|
||||
<% } else { %>
|
||||
(No End Date)
|
||||
<% } %>
|
||||
</td>
|
||||
<td>
|
||||
<% if (lotOccupancy.lotOccupancyOccupants.length === 0) { %>
|
||||
(No <%= configFunctions.getProperty("aliases.occupants") %>)
|
||||
<% } else { %>
|
||||
<% const occupant = lotOccupancy.lotOccupancyOccupants[0]; %>
|
||||
<%= occupant.occupantName %>
|
||||
<%= (lotOccupancy.lotOccupancyOccupants.length > 1 ? " plus " + (lotOccupancy.lotOccupancyOccupants.length - 1) : "") %>
|
||||
<% } %>
|
||||
</td>
|
||||
</tr>
|
||||
<% } %>
|
||||
</tbody>
|
||||
</table>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%- include('_footerA'); -%>
|
||||
|
||||
<script src="<%= urlPrefix %>/javascripts/lotView.min.js"></script>
|
||||
|
||||
<%- include('_footerB'); -%>
|
||||
<%- include('_footerB'); -%>
|
||||
|
|
@ -234,7 +234,29 @@
|
|||
</p>
|
||||
</div>
|
||||
<% } else { %>
|
||||
|
||||
<table class="table is-fullwidth is-striped is-hoverable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th><%= configFunctions.getProperty("aliases.externalReceiptNumber") %></th>
|
||||
<th class="has-text-right">Amount</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% for (const lotOccupancyTransaction of lotOccupancy.lotOccupancyTransactions) { %>
|
||||
<tr>
|
||||
<td><%= lotOccupancyTransaction.transactionDateString %></td>
|
||||
<td>
|
||||
<%= lotOccupancyTransaction.externalReceiptNumber %><br />
|
||||
<small><%= lotOccupancyTransaction.transactionNote %></small>
|
||||
</td>
|
||||
<td class="has-text-right">
|
||||
$<%= lotOccupancyTransaction.transactionAmount.toFixed(2) %>
|
||||
</td>
|
||||
</tr>
|
||||
<% } %>
|
||||
</tbody>
|
||||
</table>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -40,65 +40,72 @@
|
|||
|
||||
<div class="columns">
|
||||
<div class="column">
|
||||
<div class="field">
|
||||
<label class="label" for="map--mapName"><%= configFunctions.getProperty("aliases.map") %> Name</label>
|
||||
<div class="control">
|
||||
<input class="input" id="map--mapName" name="mapName" type="text" value="<%= map.mapName %>" maxlength="200" required />
|
||||
</div>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label class="label" for="map--mapDescription"><%= configFunctions.getProperty("aliases.map") %> Description</label>
|
||||
<div class="control">
|
||||
<textarea class="textarea" id="map--mapDescription" name="mapDescription"><%= map.mapDescription %></textarea>
|
||||
<div class="panel">
|
||||
<div class="panel-block is-block">
|
||||
<div class="field">
|
||||
<label class="label" for="map--mapName"><%= configFunctions.getProperty("aliases.map") %> Name</label>
|
||||
<div class="control">
|
||||
<input class="input" id="map--mapName" name="mapName" type="text" value="<%= map.mapName %>" maxlength="200" required />
|
||||
</div>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label class="label" for="map--mapDescription"><%= configFunctions.getProperty("aliases.map") %> Description</label>
|
||||
<div class="control">
|
||||
<textarea class="textarea" id="map--mapDescription" name="mapDescription"><%= map.mapDescription %></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column">
|
||||
<h2 class="title is-4">Address</h2>
|
||||
|
||||
<div class="field">
|
||||
<label class="label" for="map--mapAddress1">Address</label>
|
||||
<div class="control">
|
||||
<input class="input" id="map--mapAddress1" name="mapAddress1" type="text" value="<%= map.mapAddress1 %>" maxlength="50" placeholder="Line 1" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="field">
|
||||
<div class="control">
|
||||
<input class="input" id="map--mapAddress2" name="mapAddress2" type="text" value="<%= map.mapAddress2 %>" maxlength="50" placeholder="Line 2" aria-label="Address Line 2" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="columns">
|
||||
<div class="column is-8">
|
||||
<div class="panel">
|
||||
<h2 class="panel-heading">Address</h2>
|
||||
<div class="panel-block is-block">
|
||||
<div class="field">
|
||||
<label class="label" for="map--mapCity">City</label>
|
||||
<label class="label" for="map--mapAddress1">Address</label>
|
||||
<div class="control">
|
||||
<input class="input" id="map--mapCity" name="mapCity" value="<%= map.mapCity %>" maxlength="20" />
|
||||
<input class="input" id="map--mapAddress1" name="mapAddress1" type="text" value="<%= map.mapAddress1 %>" maxlength="50" placeholder="Line 1" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column">
|
||||
<div class="field">
|
||||
<label class="label" for="map--mapProvince">Province</label>
|
||||
<div class="control">
|
||||
<input class="input" id="map--mapProvince" name="mapProvince" value="<%= map.mapProvince %>" maxlength="2" />
|
||||
<input class="input" id="map--mapAddress2" name="mapAddress2" type="text" value="<%= map.mapAddress2 %>" maxlength="50" placeholder="Line 2" aria-label="Address Line 2" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="columns">
|
||||
<div class="column">
|
||||
<div class="field">
|
||||
<label class="label" for="map--mapPostalCode">Postal Code</label>
|
||||
<div class="control">
|
||||
<input class="input" id="map--mapPostalCode" name="mapPostalCode" value="<%= map.mapPostalCode %>" maxlength="7" />
|
||||
<div class="columns">
|
||||
<div class="column is-8">
|
||||
<div class="field">
|
||||
<label class="label" for="map--mapCity">City</label>
|
||||
<div class="control">
|
||||
<input class="input" id="map--mapCity" name="mapCity" value="<%= map.mapCity %>" maxlength="20" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column">
|
||||
<div class="field">
|
||||
<label class="label" for="map--mapProvince">Province</label>
|
||||
<div class="control">
|
||||
<input class="input" id="map--mapProvince" name="mapProvince" value="<%= map.mapProvince %>" maxlength="2" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column">
|
||||
<div class="field">
|
||||
<label class="label" for="map--mapPhoneNumber">Phone Number</label>
|
||||
<div class="control">
|
||||
<input class="input" id="map--mapPhoneNumber" name="mapPhoneNumber" value="<%= map.mapPhoneNumber %>" maxlength="30" />
|
||||
<div class="columns">
|
||||
<div class="column">
|
||||
<div class="field">
|
||||
<label class="label" for="map--mapPostalCode">Postal Code</label>
|
||||
<div class="control">
|
||||
<input class="input" id="map--mapPostalCode" name="mapPostalCode" value="<%= map.mapPostalCode %>" maxlength="7" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column">
|
||||
<div class="field">
|
||||
<label class="label" for="map--mapPhoneNumber">Phone Number</label>
|
||||
<div class="control">
|
||||
<input class="input" id="map--mapPhoneNumber" name="mapPhoneNumber" value="<%= map.mapPhoneNumber %>" maxlength="30" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -107,37 +114,46 @@
|
|||
</div>
|
||||
<div class="columns">
|
||||
<div class="column">
|
||||
<h2 class="title is-4">Geographic Location</h2>
|
||||
<div class="field">
|
||||
<label class="label" for="map--mapLatitude">Latitude</label>
|
||||
<div class="control">
|
||||
<input class="input" id="map--mapLatitude" name="mapLatitude" type="number" min="-90" max="90" step="0.00000001" value="<%= map.mapLatitude %>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label class="label" for="map--mapLongitude">Longitude</label>
|
||||
<div class="control">
|
||||
<input class="input" id="map--mapLongitude" name="mapLongitude" type="number" min="-180" max="180" step="0.00000001" value="<%= map.mapLongitude %>" />
|
||||
<div class="panel">
|
||||
<h2 class="panel-heading">Geographic Location</h2>
|
||||
<div class="panel-block is-block">
|
||||
<div class="field">
|
||||
<label class="label" for="map--mapLatitude">Latitude</label>
|
||||
<div class="control">
|
||||
<input class="input" id="map--mapLatitude" name="mapLatitude" type="number" min="-90" max="90" step="0.00000001" value="<%= map.mapLatitude %>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label class="label" for="map--mapLongitude">Longitude</label>
|
||||
<div class="control">
|
||||
<input class="input" id="map--mapLongitude" name="mapLongitude" type="number" min="-180" max="180" step="0.00000001" value="<%= map.mapLongitude %>" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column">
|
||||
<h2 class="title is-4">Image</h2>
|
||||
<div class="field">
|
||||
<label class="label" for="map--mapSVG">SVG File</label>
|
||||
<div class="control">
|
||||
<div class="select is-fullwidth">
|
||||
<select id="map--mapSVG" name="mapSVG">
|
||||
<option value="">(Select a File)</option>
|
||||
<% for (const mapSVG of mapSVGs) { %>
|
||||
<option value="<%= mapSVG %>" <%= (map.mapSVG === mapSVG) ? " selected" : "" %>>
|
||||
<%= mapSVG %>
|
||||
</option>
|
||||
<% } %>
|
||||
</select>
|
||||
<div class="panel">
|
||||
<h2 class="panel-heading">Image</h2>
|
||||
<div class="panel-block is-block">
|
||||
<div class="field">
|
||||
<label class="label" for="map--mapSVG">SVG File</label>
|
||||
<div class="control">
|
||||
<div class="select is-fullwidth">
|
||||
<select id="map--mapSVG" name="mapSVG">
|
||||
<option value="">(Select a File)</option>
|
||||
<% for (const mapSVG of mapSVGs) { %>
|
||||
<option value="<%= mapSVG %>" <%= (map.mapSVG === mapSVG) ? " selected" : "" %>>
|
||||
<%= mapSVG %>
|
||||
</option>
|
||||
<% } %>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -33,68 +33,83 @@
|
|||
</div>
|
||||
<% } %>
|
||||
|
||||
<div class="columns">
|
||||
<% if (map.mapDescription && map.mapDescription !== "") { %>
|
||||
<div class="column">
|
||||
<strong>Description</strong><br />
|
||||
<%= map.mapDescription %>
|
||||
<div class="panel">
|
||||
<div class="panel-block is-block">
|
||||
<div class="columns">
|
||||
<% if (map.mapDescription && map.mapDescription !== "") { %>
|
||||
<div class="column">
|
||||
<strong>Description</strong><br />
|
||||
<%= map.mapDescription %>
|
||||
</div>
|
||||
<% } %>
|
||||
<div class="column">
|
||||
<strong>Address</strong><br />
|
||||
<% if (map.mapAddress1 !== "") { %>
|
||||
<%= map.mapAddress1 %><br />
|
||||
<% } %>
|
||||
<% if (map.mapAddress2 !== "") { %>
|
||||
<%= map.mapAddress2 %><br />
|
||||
<% } %>
|
||||
<%= map.mapCity %>, <%= map.mapProvince %><br />
|
||||
<%= map.mapPostalCode %>
|
||||
</div>
|
||||
</div>
|
||||
<% } %>
|
||||
<div class="column">
|
||||
<strong>Address</strong><br />
|
||||
<% if (map.mapAddress1 !== "") { %>
|
||||
<%= map.mapAddress1 %><br />
|
||||
<% if (map.mapPhoneNumber !== "") { %>
|
||||
<div class="column">
|
||||
<strong>Phone Number</strong><br />
|
||||
<%= map.mapPhoneNumber %>
|
||||
</div>
|
||||
<% } %>
|
||||
<% if (map.mapAddress2 !== "") { %>
|
||||
<%= map.mapAddress2 %><br />
|
||||
<% } %>
|
||||
<%= map.mapCity %>, <%= map.mapProvince %><br />
|
||||
<%= map.mapPostalCode %>
|
||||
</div>
|
||||
</div>
|
||||
<% if (map.mapPhoneNumber !== "") { %>
|
||||
<div class="column">
|
||||
<strong>Phone Number</strong><br />
|
||||
<%= map.mapPhoneNumber %>
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
<div class="columns">
|
||||
<div class="column">
|
||||
<h2 class="title is-4">Geographic Location</h2>
|
||||
|
||||
<% if (map.mapLatitude && map.mapLongitude) { %>
|
||||
<div id="map--leaflet" data-map-latitude="<%= map.mapLatitude %>" data-map-longitude="<%= map.mapLongitude %>" style="height:300px"></div>
|
||||
<% } else { %>
|
||||
<div class="message is-info">
|
||||
<p class="message-body">There are no geographic coordinates associated with this <%= configFunctions.getProperty("aliases.map").toLowerCase() %>.</p>
|
||||
<div class="panel">
|
||||
<h2 class="panel-heading">Geographic Location</h2>
|
||||
<div class="panel-block is-block">
|
||||
<% if (map.mapLatitude && map.mapLongitude) { %>
|
||||
<div id="map--leaflet" data-map-latitude="<%= map.mapLatitude %>" data-map-longitude="<%= map.mapLongitude %>" style="height:300px"></div>
|
||||
<% } else { %>
|
||||
<div class="message is-info">
|
||||
<p class="message-body">There are no geographic coordinates associated with this <%= configFunctions.getProperty("aliases.map").toLowerCase() %>.</p>
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column">
|
||||
<h2 class="title is-4">Image</h2>
|
||||
<% if (map.mapSVG) { %>
|
||||
<% const imageURL = urlPrefix + "/images/maps/" + map.mapSVG %>
|
||||
<a class="image" href="<%= urlPrefix %>/images/maps/<%= map.mapSVG %>" target="_blank">
|
||||
<%- include('../public/images/maps/' + map.mapSVG); -%>
|
||||
</a>
|
||||
<% } else { %>
|
||||
<div class="message is-info">
|
||||
<p class="message-body">There are no image associated with this <%= configFunctions.getProperty("aliases.map").toLowerCase() %>.</p>
|
||||
<div class="panel">
|
||||
<h2 class="panel-heading">Image</h2>
|
||||
<div class="panel-block is-block">
|
||||
<% if (map.mapSVG) { %>
|
||||
<% const imageURL = urlPrefix + "/images/maps/" + map.mapSVG %>
|
||||
<a class="image" href="<%= urlPrefix %>/images/maps/<%= map.mapSVG %>" target="_blank">
|
||||
<%- include('../public/images/maps/' + map.mapSVG); -%>
|
||||
</a>
|
||||
<% } else { %>
|
||||
<div class="message is-info">
|
||||
<p class="message-body">There are no image associated with this <%= configFunctions.getProperty("aliases.map").toLowerCase() %>.</p>
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2 class="title is-4">
|
||||
Related Searches
|
||||
</h2>
|
||||
<div class="panel">
|
||||
<h2 class="panel-heading">
|
||||
Related Searches
|
||||
</h2>
|
||||
<div class="panel-block">
|
||||
<a class="button is-link" href="<%= urlPrefix %>/lots?mapId=<%= map.mapId %>">
|
||||
<span class="icon is-small"><i class="fas fa-vector-square" aria-hidden="true"></i></span>
|
||||
<span class="mr-2"><%= configFunctions.getProperty("aliases.lots") %></span>
|
||||
<span class="tag"><%= map.lotCount %></span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<a class="button is-link" href="<%= urlPrefix %>/lots?mapId=<%= map.mapId %>">
|
||||
<span class="icon is-small"><i class="fas fa-vector-square" aria-hidden="true"></i></span>
|
||||
<span class="mr-2"><%= configFunctions.getProperty("aliases.lots") %></span>
|
||||
<span class="tag"><%= map.lotCount %></span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,81 +1,83 @@
|
|||
<%- include('_header'); -%>
|
||||
|
||||
<nav class="breadcrumb">
|
||||
<ul>
|
||||
<li><a href="<%= urlPrefix %>/dashboard">Home</a></li>
|
||||
<li class="is-active"><a href="#" aria-current="page">
|
||||
<span class="icon is-small"><i class="fas fa-file" aria-hidden="true"></i></span>
|
||||
<span>Reports</span>
|
||||
</a></li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><a href="<%= urlPrefix %>/dashboard">Home</a></li>
|
||||
<li class="is-active">
|
||||
<a href="#" aria-current="page">
|
||||
<span class="icon is-small"><i class="fas fa-file" aria-hidden="true"></i></span>
|
||||
<span>Reports</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<h1 class="title is-1">
|
||||
Licence Reports
|
||||
Reports
|
||||
</h1>
|
||||
|
||||
<div class="columns">
|
||||
<div class="column">
|
||||
<div class="panel">
|
||||
<h2 class="panel-heading">Licences</h2>
|
||||
<a class="panel-block align-items-flex-start" href="<%= urlPrefix %>/reports/licences-formatted" download>
|
||||
<div class="has-text-centered my-2 ml-2 mr-3">
|
||||
<span class="icon has-text-info">
|
||||
<i class="fas fa-2x fa-file" aria-hidden="true"></i>
|
||||
</span><br />
|
||||
<span class="tag is-info">CSV</span>
|
||||
<div class="column">
|
||||
<div class="panel">
|
||||
<h2 class="panel-heading"><%= configFunctions.getProperty("aliases.maps") %></h2>
|
||||
<a class="panel-block align-items-flex-start" href="<%= urlPrefix %>/reports/maps-formatted" download>
|
||||
<div class="has-text-centered my-2 ml-2 mr-3">
|
||||
<span class="icon has-text-info">
|
||||
<i class="fas fa-2x fa-file" aria-hidden="true"></i>
|
||||
</span><br />
|
||||
<span class="tag is-info">CSV</span>
|
||||
</div>
|
||||
<div>
|
||||
<h3 class="title is-5 is-marginless">Full <%= configFunctions.getProperty("aliases.map") %> List</h3>
|
||||
<p>
|
||||
All active <%= configFunctions.getProperty("aliases.maps").toLowerCase() %>.
|
||||
</p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
<h3 class="title is-5 is-marginless">Full Licence List</h3>
|
||||
<p>
|
||||
All active licences.
|
||||
</p>
|
||||
</div>
|
||||
</a>
|
||||
<a class="panel-block align-items-flex-start" href="<%= urlPrefix %>/reports/licences-notIssued" download>
|
||||
<div class="has-text-centered my-2 ml-2 mr-3">
|
||||
<span class="icon has-text-info">
|
||||
<i class="fas fa-2x fa-file" aria-hidden="true"></i>
|
||||
</span><br />
|
||||
<span class="tag is-info">CSV</span>
|
||||
</div>
|
||||
<div>
|
||||
<h3 class="title is-5 is-marginless">Licences Not Issued</h3>
|
||||
<p>
|
||||
All licences in the system that have not been issued.
|
||||
</p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column">
|
||||
<div class="panel">
|
||||
<h2 class="panel-heading">Table Exports</h2>
|
||||
<div class="panel-block">
|
||||
<div class="message is-info">
|
||||
<p class="message-body is-size-7">
|
||||
Note that table exports are full, unfiltered, and unformatted exports.
|
||||
They may contain deleted records that have not been fully purged.
|
||||
</p>
|
||||
<div class="column">
|
||||
<div class="panel">
|
||||
<h2 class="panel-heading">Table Exports</h2>
|
||||
<div class="panel-block">
|
||||
<div class="message is-info">
|
||||
<p class="message-body is-size-7">
|
||||
Note that table exports are full, unfiltered, and unformatted exports.
|
||||
They may contain deleted records that have not been fully purged.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<a class="panel-block align-items-flex-start" href="<%= urlPrefix %>/reports/maps-all" download>
|
||||
<div class="has-text-centered my-2 ml-2 mr-3">
|
||||
<span class="icon has-text-info">
|
||||
<i class="fas fa-2x fa-table" aria-hidden="true"></i>
|
||||
</span><br />
|
||||
<span class="tag is-info">CSV</span>
|
||||
</div>
|
||||
<div>
|
||||
<h3 class="title is-5 is-marginless">Full Maps Table</h3>
|
||||
<p>
|
||||
All the data from the Maps (<%= configFunctions.getProperty("aliases.maps") %>) table unfiltered.
|
||||
</p>
|
||||
</div>
|
||||
</a>
|
||||
<a class="panel-block align-items-flex-start" href="<%= urlPrefix %>/reports/lots-all" download>
|
||||
<div class="has-text-centered my-2 ml-2 mr-3">
|
||||
<span class="icon has-text-info">
|
||||
<i class="fas fa-2x fa-table" aria-hidden="true"></i>
|
||||
</span><br />
|
||||
<span class="tag is-info">CSV</span>
|
||||
</div>
|
||||
<div>
|
||||
<h3 class="title is-5 is-marginless">Full Lots Table</h3>
|
||||
<p>
|
||||
All the data from the Lots (<%= configFunctions.getProperty("aliases.lots") %>) table unfiltered.
|
||||
</p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<a class="panel-block align-items-flex-start" href="<%= urlPrefix %>/reports/licences-all" download>
|
||||
<div class="has-text-centered my-2 ml-2 mr-3">
|
||||
<span class="icon has-text-info">
|
||||
<i class="fas fa-2x fa-table" aria-hidden="true"></i>
|
||||
</span><br />
|
||||
<span class="tag is-info">CSV</span>
|
||||
</div>
|
||||
<div>
|
||||
<h3 class="title is-5 is-marginless">Full Licences Table</h3>
|
||||
<p>
|
||||
All the data from the Licences table unfiltered.
|
||||
</p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%- include('_footerA'); -%>
|
||||
<%- include('_footerB'); -%>
|
||||
<%- include('_footerB'); -%>
|
||||
Loading…
Reference in New Issue