@tradle/models
Version:
models for tradle apps
65 lines (64 loc) • 1.29 kB
JSON
{
"id": "tradle.ContractSigning",
"type": "tradle.Model",
"title": "Contract Signing",
"subClassOf": "tradle.Form",
"properties": {
"title": {
"type": "string",
"skipLabel": true,
"displayName": true
},
"contractText": {
"type": "string",
"skipLabel": true,
"readOnly": true,
"markdown": true
},
"signature": {
"type": "object",
"ref": "tradle.Photo",
"inlined": true,
"skipLabel": true,
"signature": true
},
"daysTillFirstScheduledPayment": {
"type": "number",
"readOnly": true
},
"term": {
"type": "number",
"units": "months",
"readOnly": true
},
"firstScheduledPaymentDue": {
"type": "date",
"readOnly": true,
"set": "Date.now() + daysTillFirstScheduledPayment * 24 * 60 * 60 * 1000"
},
"contract_group": {
"type": "string",
"title": "Contract Information",
"list": [
"title",
"contractText",
"signature",
"term",
"firstScheduledPaymentDue"
]
}
},
"required": [
"title",
"contractText",
"signature"
],
"editCols": [
"title",
"signature",
"contractText"
],
"viewCols": [
"contract_group"
]
}