Commit 73c3f6f2 authored by Sven Franck's avatar Sven Franck

app: updated error message

parent 5c77a07a
...@@ -461,13 +461,14 @@ ...@@ -461,13 +461,14 @@
} }
// add invalid validation messages // add invalid validation messages
// TODO: "wrong" is wrong // TODO: "wrong" is wrong - but don't put any text references here
// all text references should be somewhere in config!
if (!no_validate && !spec.logic.route) { if (!no_validate && !spec.logic.route) {
element_target.appendChild(factory.element({ element_target.appendChild(factory.element({
"type": "span", "type": "span",
"direct": {"className": "ui-invalid-label"}, "direct": {"className": "ui-invalid-label"},
"attributes": {}, "attributes": {"data-i18n":"validation_dict.required_field},
"logic": {"text": "wrong"} "logic": {"text": "Ce champ est obligatoire."}
})); }));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment