From 897880d57277195d5f740b07ac2cc689524ca957 Mon Sep 17 00:00:00 2001 From: maria Date: Tue, 10 Nov 2015 18:39:26 +0100 Subject: [PATCH] Issue #14: validate router name also show error message if any special characters are entered --- src/index.html | 5 +++++ src/nls/locale-en.json | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/index.html b/src/index.html index 9fd9c3e..570f92e 100644 --- a/src/index.html +++ b/src/index.html @@ -92,6 +92,11 @@

.routerName.error.required +
+
+ .routerName.error.pattern +
+
diff --git a/src/nls/locale-en.json b/src/nls/locale-en.json index 938708b..24f523a 100644 --- a/src/nls/locale-en.json +++ b/src/nls/locale-en.json @@ -5,7 +5,10 @@ "headline": "Basic router setup", "routerName": { "label": "Router name", - "error.required": "In order to register IPs or generate VPN connection files the router name is required.", + "error": { + "required": "This field is required.", + "pattern":"Special Characters are not allowed." + }, "help": "The router name is needed for ip registration and VPN cert and key generation. Also this name is visible in the Freifunk map if you decide to share your location.", "placeholder": "example: funkenpumpe3000" },