forked from MapComplete/MapComplete
Added cyclofix capacity cargo; covered; non-bike shop; pump dyn title
This commit is contained in:
parent
a7bb4a1fcc
commit
948ff74a8b
23 changed files with 624 additions and 91 deletions
17
Customizations/Questions/Website.ts
Normal file
17
Customizations/Questions/Website.ts
Normal file
|
@ -0,0 +1,17 @@
|
|||
import {TagRenderingOptions} from "../TagRendering";
|
||||
import {UIElement} from "../../UI/UIElement";
|
||||
import Translations from "../../UI/i18n/Translations";
|
||||
|
||||
|
||||
export default class Website extends TagRenderingOptions {
|
||||
constructor(category: string | UIElement) {
|
||||
super({
|
||||
question: Translations.t.general.questions.websiteOf.Subs({category: category}),
|
||||
freeform: {
|
||||
renderTemplate: Translations.t.general.questions.websiteIs.Subs({category: category}),
|
||||
template: "$phone$",
|
||||
key: "phone"
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
20
Customizations/Questions/bike/ParkingAccessCargo.ts
Normal file
20
Customizations/Questions/bike/ParkingAccessCargo.ts
Normal file
|
@ -0,0 +1,20 @@
|
|||
import { TagRenderingOptions } from "../../TagRendering";
|
||||
import { Tag } from "../../../Logic/TagsFilter";
|
||||
import Translations from "../../../UI/i18n/Translations";
|
||||
|
||||
|
||||
export default class ParkingAccessCargo extends TagRenderingOptions {
|
||||
constructor() {
|
||||
const key = "cargo_bike"
|
||||
const to = Translations.t.cyclofix.parking.access_cargo
|
||||
super({
|
||||
priority: 15,
|
||||
question: to.question.Render(),
|
||||
mappings: [
|
||||
{k: new Tag(key, "yes"), txt: to.yes},
|
||||
{k: new Tag(key, "designated"), txt: to.designated},
|
||||
{k: new Tag(key, "no"), txt: to.no}
|
||||
]
|
||||
});
|
||||
}
|
||||
}
|
18
Customizations/Questions/bike/ParkingCapacity.ts
Normal file
18
Customizations/Questions/bike/ParkingCapacity.ts
Normal file
|
@ -0,0 +1,18 @@
|
|||
import Translations from "../../../UI/i18n/Translations";
|
||||
import { TagRenderingOptions } from "../../TagRendering";
|
||||
|
||||
|
||||
export default class ParkingCapacity extends TagRenderingOptions {
|
||||
constructor() {
|
||||
const to = Translations.t.cyclofix.parking.capacity
|
||||
super({
|
||||
priority: 15,
|
||||
question: to.question,
|
||||
freeform: {
|
||||
key: "capacity",
|
||||
renderTemplate: to.render,
|
||||
template: to.template
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
19
Customizations/Questions/bike/ParkingCapacityCargo.ts
Normal file
19
Customizations/Questions/bike/ParkingCapacityCargo.ts
Normal file
|
@ -0,0 +1,19 @@
|
|||
import Translations from "../../../UI/i18n/Translations";
|
||||
import { TagRenderingOptions } from "../../TagRendering";
|
||||
import Combine from "../../../UI/Base/Combine";
|
||||
|
||||
|
||||
export default class ParkingCapacityCargo extends TagRenderingOptions {
|
||||
constructor() {
|
||||
const to = Translations.t.cyclofix.parking.capacity_cargo
|
||||
super({
|
||||
priority: 10,
|
||||
question: to.question,
|
||||
freeform: {
|
||||
key: "capacity:cargo_bike",
|
||||
renderTemplate: to.render,
|
||||
template: to.template
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
import { TagRenderingOptions } from "../../TagRendering";
|
||||
import { Tag } from "../../../Logic/TagsFilter";
|
||||
import Translations from "../../../UI/i18n/Translations";
|
||||
|
||||
|
||||
export default class ParkingCovered extends TagRenderingOptions {
|
||||
constructor() {
|
||||
const key = 'covered'
|
||||
const to = Translations.t.cyclofix.parking.covered
|
||||
super({
|
||||
priority: 15,
|
||||
question: to.question.Render(),
|
||||
mappings: [
|
||||
{k: new Tag(key, "yes"), txt: to.yes},
|
||||
{k: new Tag(key, "no"), txt: to.no}
|
||||
]
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue