diff --git a/helpers/lotOccupancyDB/getReportData.ts b/helpers/lotOccupancyDB/getReportData.ts index 5566de7e..b19d7dc0 100644 --- a/helpers/lotOccupancyDB/getReportData.ts +++ b/helpers/lotOccupancyDB/getReportData.ts @@ -17,7 +17,6 @@ export interface ReportParameters { const mapCamelCase = camelCase(configFunctions.getProperty("aliases.map")); - const mapNameAlias = mapCamelCase + "Name"; const mapDescriptionAlias = mapCamelCase + "Description"; const mapAddress1Alias = mapCamelCase + "Address1"; @@ -27,6 +26,7 @@ const mapProvinceAlias = mapCamelCase + "Province"; const mapPostalCodeAlias = mapCamelCase + "PostalCode"; const mapPhoneNumberAlias = mapCamelCase + "PhoneNumber"; + export const getReportData = (reportName: string, reportParameters ? : ReportParameters): unknown[] => { let sql: string; diff --git a/views/map-search.ejs b/views/map-search.ejs index 3f26dd79..dfd7f26e 100644 --- a/views/map-search.ejs +++ b/views/map-search.ejs @@ -1,53 +1,51 @@ <%- include('_header'); -%> -
- -
- -

- Find a <%= configFunctions.getProperty("aliases.map") %> -

+

+ Find a <%= configFunctions.getProperty("aliases.map") %> +

- <% if (user.userProperties.canUpdate) { %> - - <% } %> - -
-
-
-
- name, description, and address" /> - - - -
-
-
-
- -
-
+<% if (user.userProperties.canUpdate) { %> +
+ " + href="<%= urlPrefix %>/maps/new"> + + Create a New <%= configFunctions.getProperty("aliases.map") %> +
+<% } %> + +
+
+
+
+ name, description, and address" /> + + + +
+
+
+
+ +
<%- include('_footerA'); -%> -<%- include('_footerB'); -%> +<%- include('_footerB'); -%> \ No newline at end of file