Add new operator info fields

This commit is contained in:
Rafael Taranto 2019-05-22 16:28:53 -03:00 committed by Josh Harvey
parent 15c8e0d862
commit 8330b95de1
2 changed files with 22 additions and 11 deletions

View file

@ -143,7 +143,9 @@
"operatorInfoActive", "operatorInfoActive",
"operatorInfoEmail", "operatorInfoEmail",
"operatorInfoName", "operatorInfoName",
"operatorInfoPhone" "operatorInfoPhone",
"operatorInfoWebsite",
"operatorInfoCompanyNumber"
] ]
} }
], ],
@ -949,9 +951,6 @@
"fieldType": "string", "fieldType": "string",
"fieldClass": null, "fieldClass": null,
"default": "", "default": "",
"enabledIfAny": [
"operatorInfoActive"
],
"fieldValidation": [] "fieldValidation": []
}, },
{ {
@ -960,9 +959,6 @@
"displayTopCount": 0, "displayTopCount": 0,
"fieldType": "string", "fieldType": "string",
"fieldClass": "email", "fieldClass": "email",
"enabledIfAny": [
"operatorInfoActive"
],
"fieldValidation": [] "fieldValidation": []
}, },
{ {
@ -971,9 +967,22 @@
"displayTopCount": 0, "displayTopCount": 0,
"fieldType": "string", "fieldType": "string",
"fieldClass": null, "fieldClass": null,
"enabledIfAny": [ "fieldValidation": []
"operatorInfoActive" },
], {
"code": "operatorInfoWebsite",
"displayBottom": "Website",
"displayTopCount": 0,
"fieldType": "string",
"fieldClass": null,
"fieldValidation": []
},
{
"code": "operatorInfoCompanyNumber",
"displayBottom": "Company Number",
"displayTopCount": 0,
"fieldType": "string",
"fieldClass": null,
"fieldValidation": [] "fieldValidation": []
} }
] ]

View file

@ -95,7 +95,9 @@ function poll (req, res, next) {
active: config.operatorInfoActive, active: config.operatorInfoActive,
name: config.operatorInfoName, name: config.operatorInfoName,
phone: config.operatorInfoPhone, phone: config.operatorInfoPhone,
email: config.operatorInfoEmail email: config.operatorInfoEmail,
website: config.operatorInfoWebsite,
companyNumber: config.operatorInfoCompanyNumber
} }
} }