From 4233f4dd88c3e4d3433dbb15e2c24609c97d176a Mon Sep 17 00:00:00 2001 From: bgamard Date: Sat, 15 Feb 2020 22:38:06 +0100 Subject: [PATCH] Closes #317: edit tag color hex code manually --- docs-web/src/main/webapp/src/locale/en.json | 2 +- .../src/partial/docs/document.add.tag.html | 18 +++++++++++------- .../main/webapp/src/partial/docs/tag.edit.html | 11 +++++++---- .../src/main/webapp/src/partial/docs/tag.html | 14 +++++++++----- 4 files changed, 28 insertions(+), 17 deletions(-) diff --git a/docs-web/src/main/webapp/src/locale/en.json b/docs-web/src/main/webapp/src/locale/en.json index efc52757..590fef80 100644 --- a/docs-web/src/main/webapp/src/locale/en.json +++ b/docs-web/src/main/webapp/src/locale/en.json @@ -562,7 +562,7 @@ "email": "Must be a valid e-mail", "password_confirm": "Password and password confirmation must match", "number": "Number required", - "no_space": "Spaces are not allowed" + "no_space": "Spaces and colons are not allowed" }, "action_type": { "ADD_TAG": "Add a tag", diff --git a/docs-web/src/main/webapp/src/partial/docs/document.add.tag.html b/docs-web/src/main/webapp/src/partial/docs/document.add.tag.html index 993c9724..c36eb53c 100644 --- a/docs-web/src/main/webapp/src/partial/docs/document.add.tag.html +++ b/docs-web/src/main/webapp/src/partial/docs/document.add.tag.html @@ -1,14 +1,18 @@ -
+ -
+
-   +
+   + + +
diff --git a/docs-web/src/main/webapp/src/partial/docs/tag.html b/docs-web/src/main/webapp/src/partial/docs/tag.html index a2f3e2dc..bb1fd7c7 100644 --- a/docs-web/src/main/webapp/src/partial/docs/tag.html +++ b/docs-web/src/main/webapp/src/partial/docs/tag.html @@ -13,13 +13,17 @@
- -

+ +

  + + +
+
- {{ 'add' | translate }} -

+ ng-maxlength="36" required ng-model="tag.name" ui-validate="{ space: '!$value || $value.indexOf(\' \') == -1 && $value.indexOf(\':\') == -1' }"> +
+ {{ 'add' | translate }} {{ 'validation.no_space' | translate }}