forked from MapComplete/MapComplete
Add phone number to bikeshop
This commit is contained in:
parent
21280fd156
commit
68929e4067
11 changed files with 34 additions and 8 deletions
18
Customizations/Questions/PhoneNumberQuestion.ts
Normal file
18
Customizations/Questions/PhoneNumberQuestion.ts
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import {TagRenderingOptions} from "../TagRendering";
|
||||
import {UIElement} from "../../UI/UIElement";
|
||||
import Translations from "../../UI/i18n/Translations";
|
||||
|
||||
export class PhoneNumberQuestion extends TagRenderingOptions {
|
||||
|
||||
constructor(category: string | UIElement) {
|
||||
super({
|
||||
question: Translations.t.general.questions.phoneNumberOf.Subs({category: category}),
|
||||
freeform: {
|
||||
renderTemplate: Translations.t.general.questions.phoneNumberIs.Subs({category: category}),
|
||||
template: "$phone$",
|
||||
key: "phone"
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue