mapcomplete/Customizations/Questions/bike/StationOperator.ts

28 lines
1 KiB
TypeScript
Raw Normal View History

import {TagRenderingOptions} from "../../TagRendering";
import {Tag} from "../../../Logic/TagsFilter";
2020-07-20 21:43:42 +00:00
import Translations from "../../../UI/i18n/Translations";
export default class BikeStationOperator extends TagRenderingOptions {
constructor() {
const to = Translations.t.cyclofix.station.operator
super({
priority: 15,
question: to.question,
mappings: [
{k: new Tag("operator", "KU Leuven"), txt: "KU Leuven"},
{k: new Tag("operator", "Stad Halle"), txt: "Stad Halle"},
{k: new Tag("operator", "Saint Gilles - Sint Gillis"), txt: "Saint Gilles - Sint Gillis"},
{k: new Tag("operator", "Jette"), txt: "Jette"},
{k: new Tag("operator", "private"), txt: to.private}
2020-07-20 21:43:42 +00:00
],
freeform: {
key: "operator",
2020-07-21 21:31:41 +00:00
template: to.template,
renderTemplate: to.render,
2020-07-20 21:43:42 +00:00
placeholder: "organisatie"
}
});
}
}