forked from MapComplete/MapComplete
Add bike cafes
This commit is contained in:
parent
e4df5ffcb4
commit
581ec9d2a7
11 changed files with 292 additions and 90 deletions
|
@ -8,7 +8,7 @@ export default class Website extends TagRenderingOptions {
|
|||
super({
|
||||
question: Translations.t.general.questions.websiteOf.Subs({category: category}),
|
||||
freeform: {
|
||||
renderTemplate: Translations.t.general.questions.websiteIs.Subs({category: category}),
|
||||
renderTemplate: Translations.t.general.questions.websiteIs,
|
||||
template: "$phone$",
|
||||
key: "phone"
|
||||
}
|
||||
|
|
18
Customizations/Questions/bike/CafeDiy.ts
Normal file
18
Customizations/Questions/bike/CafeDiy.ts
Normal file
|
@ -0,0 +1,18 @@
|
|||
import {TagRenderingOptions} from "../../TagRendering";
|
||||
import {Tag} from "../../../Logic/TagsFilter";
|
||||
import Translations from "../../../UI/i18n/Translations";
|
||||
|
||||
|
||||
export default class CafeDiy extends TagRenderingOptions {
|
||||
constructor() {
|
||||
const key = 'service:bicycle:diy'
|
||||
const to = Translations.t.cyclofix.cafe.diy
|
||||
super({
|
||||
question: to.question,
|
||||
mappings: [
|
||||
{k: new Tag(key, "yes"), txt: to.yes},
|
||||
{k: new Tag(key, "no"), txt: to.no},
|
||||
]
|
||||
});
|
||||
}
|
||||
}
|
17
Customizations/Questions/bike/CafeName.ts
Normal file
17
Customizations/Questions/bike/CafeName.ts
Normal file
|
@ -0,0 +1,17 @@
|
|||
import {TagRenderingOptions} from "../../TagRendering";
|
||||
import Translations from "../../../UI/i18n/Translations";
|
||||
|
||||
|
||||
export default class CafeName extends TagRenderingOptions {
|
||||
constructor() {
|
||||
const to = Translations.t.cyclofix.cafe.qName
|
||||
super({
|
||||
question: to.question,
|
||||
freeform: {
|
||||
key: "name",
|
||||
renderTemplate: to.render,
|
||||
template: to.template
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
18
Customizations/Questions/bike/CafePump.ts
Normal file
18
Customizations/Questions/bike/CafePump.ts
Normal file
|
@ -0,0 +1,18 @@
|
|||
import {TagRenderingOptions} from "../../TagRendering";
|
||||
import {Tag} from "../../../Logic/TagsFilter";
|
||||
import Translations from "../../../UI/i18n/Translations";
|
||||
|
||||
|
||||
export default class CafePump extends TagRenderingOptions {
|
||||
constructor() {
|
||||
const key = 'service:bicycle:pump'
|
||||
const to = Translations.t.cyclofix.cafe.pump
|
||||
super({
|
||||
question: to.question,
|
||||
mappings: [
|
||||
{k: new Tag(key, "yes"), txt: to.yes},
|
||||
{k: new Tag(key, "no"), txt: to.no},
|
||||
]
|
||||
});
|
||||
}
|
||||
}
|
18
Customizations/Questions/bike/CafeRepair.ts
Normal file
18
Customizations/Questions/bike/CafeRepair.ts
Normal file
|
@ -0,0 +1,18 @@
|
|||
import {TagRenderingOptions} from "../../TagRendering";
|
||||
import {Tag} from "../../../Logic/TagsFilter";
|
||||
import Translations from "../../../UI/i18n/Translations";
|
||||
|
||||
|
||||
export default class CafeRepair extends TagRenderingOptions {
|
||||
constructor() {
|
||||
const key = 'service:bicycle:repair'
|
||||
const to = Translations.t.cyclofix.cafe.repair
|
||||
super({
|
||||
question: to.question,
|
||||
mappings: [
|
||||
{k: new Tag(key, "yes"), txt: to.yes},
|
||||
{k: new Tag(key, "no"), txt: to.no}
|
||||
]
|
||||
});
|
||||
}
|
||||
}
|
|
@ -3,7 +3,7 @@ import {Tag} from "../../../Logic/TagsFilter";
|
|||
import Translations from "../../../UI/i18n/Translations";
|
||||
|
||||
|
||||
export default class ShopPump extends TagRenderingOptions {
|
||||
export default class ShopDiy extends TagRenderingOptions {
|
||||
constructor() {
|
||||
const key = 'service:bicycle:diy'
|
||||
const to = Translations.t.cyclofix.shop.diy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue