Hackspace: add location

This commit is contained in:
He4eT 2025-03-31 17:58:47 +02:00
commit bccbdee349
3 changed files with 59 additions and 0 deletions

View file

@ -32,6 +32,11 @@
"repeatable": false, "repeatable": false,
"component": "hackspace.contacts", "component": "hackspace.contacts",
"required": true "required": true
},
"location": {
"type": "component",
"repeatable": false,
"component": "hackspace.location"
} }
} }
} }

View file

@ -0,0 +1,34 @@
{
"collectionName": "components_hackspace_locations",
"info": {
"displayName": "location",
"icon": "pinMap",
"description": ""
},
"options": {},
"attributes": {
"address": {
"type": "string"
},
"lat": {
"type": "decimal"
},
"lon": {
"type": "decimal"
},
"timezone": {
"type": "string"
},
"country_code": {
"type": "string"
},
"hint": {
"type": "text"
},
"areas": {
"type": "component",
"repeatable": true,
"component": "location.area"
}
}
}

View file

@ -0,0 +1,20 @@
{
"collectionName": "components_location_areas",
"info": {
"displayName": "area",
"icon": "layout"
},
"options": {},
"attributes": {
"name": {
"type": "string"
},
"description": {
"type": "text"
},
"square_meters": {
"type": "decimal",
"required": true
}
}
}