/**
* There are two ways to ask for names:
* One is a big 'name-question', the other is the 'edit name' in the title.
* THis one is the big question
*/
import {And, Tag} from "../../Logic/Tags";
import {TagRenderingOptions} from "../TagRenderingOptions";
export class NameQuestion extends TagRenderingOptions {
constructor() {
super({
priority: 10, // Move this last on the priority list, in order to prevent ppl to enter access restrictions and descriptions
question: "Wat is de officiƫle naam van dit gebied?
" +
"Zelf een naam bedenken wordt afgeraden.
" +
"Een beschrijving van het gebied geven kan in een volgende stap.
" +
"",
freeform: {
key: "name",
template: "De naam is $$$",
renderTemplate: "Dit gebied heet {name}",
placeholder: "",
extraTags: new Tag("noname", "")
},
mappings: [
{k: new And([new Tag("name", ""), new Tag("noname", "yes")]), txt: "Dit gebied heeft geen naam"},
]
});
}
}