Merge pull request #1008 from pietervdvn/feature/hailhydrant-diameters

Add diameters and couplings to hydrants
This commit is contained in:
Pieter Vander Vennet 2022-07-31 07:00:39 +02:00 committed by GitHub
commit 1c85e61395
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 124 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

View file

@ -325,6 +325,82 @@
}
]
},
{
"id": "hydrant-diameter",
"question": {
"en": "What is the pipe diameter of this hydrant?"
},
"freeform": {
"key": "fire_hydrant:diameter",
"placeholder": {
"en": "Pipe diameter"
},
"type": "int"
},
"render": {
"en": "Pipe diameter: {canonical(fire_hydrant:diameter)}"
}
},
{
"id": "hydrant-couplings",
"question": {
"en": "What kind of couplings does this hydrant have?"
},
"freeform": {
"key": "couplings:type",
"placeholder": {
"en": "Coupling type"
},
"type": "string"
},
"mappings": [
{
"if": "couplings:type=Storz",
"then": {
"en": "Storz coupling"
},
"icon": {
"path": "./assets/layers/hydrant/storz.jpg",
"class": "large"
}
},
{
"if": "couplings:type=UNI",
"then": {
"en": "UNI coupling"
}
},
{
"if": "couplings:type=Barcelona",
"then": {
"en": "Barcelona coupling"
},
"icon": {
"path": "./assets/layers/hydrant/barcelona.jpg",
"class": "large"
}
}
],
"multiAnswer": true,
"render": {
"en": "Couplings: {couplings:type}"
}
},
{
"id": "hydrant-couplings-diameters",
"question": {
"en": "What diameter are the couplings of this hydrant?"
},
"freeform": {
"key": "couplings:diameters",
"placeholder": {
"en": "Coupling diameters"
}
},
"render": {
"en": "Coupling diameters: {couplings:diameters}"
}
},
"images"
],
"presets": [
@ -375,5 +451,31 @@
"render": "8"
}
}
],
"units": [
{
"applicableUnits": [
{
"default": true,
"canonicalDenomination": "",
"alternativeDenomination": [
"mm",
"millimeter",
"millimeters"
],
"human": {
"en": "millimeters",
"nl": "millimeter"
},
"humanSingular": {
"en": "millimeter",
"nl": "millimeter"
}
}
],
"appliesToKey": [
"fire_hydrant:diameter"
]
}
]
}

View file

@ -0,0 +1,22 @@
[
{
"path": "barcelona.jpg",
"license": "CC-BY-SA",
"authors": [
"CLIGNER"
],
"sources": [
"https://commons.wikimedia.org/wiki/File:Gama_racores_UNE23400_ligatura.JPG"
]
},
{
"path": "storz.jpg",
"license": "CC-BY-SA",
"authors": [
"Karl Gruber"
],
"sources": [
"https://commons.wikimedia.org/wiki/File:Festkupplung.jpg"
]
}
]

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB