2020-07-29 19:02:36 +02:00
|
|
|
import {UIElement} from "../../UI/UIElement";
|
|
|
|
import Translations from "../../UI/i18n/Translations";
|
2020-07-31 17:38:03 +02:00
|
|
|
import {TagRenderingOptions} from "../TagRenderingOptions";
|
2020-07-29 19:02:36 +02:00
|
|
|
|
|
|
|
export class EmailQuestion extends TagRenderingOptions {
|
|
|
|
|
|
|
|
constructor(category: string | UIElement) {
|
|
|
|
super({
|
|
|
|
question: Translations.t.general.questions.emailOf.Subs({category: category}),
|
|
|
|
freeform: {
|
|
|
|
renderTemplate: Translations.t.general.questions.emailIs.Subs({category: category}),
|
|
|
|
template: "$email$",
|
|
|
|
key: "email"
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|