diff --git a/app/constants.js b/app/constants.js index f33165179..7c45f2d61 100644 --- a/app/constants.js +++ b/app/constants.js @@ -31,3 +31,4 @@ angular export const PORTAINER_FADEOUT = 1500; export const STACK_NAME_VALIDATION_REGEX = '^[-_a-z0-9]+$'; +export const TEMPLATE_NAME_VALIDATION_REGEX = '^[-_a-z0-9]+$'; diff --git a/app/portainer/components/custom-template-common-fields/customTemplateCommonFields.html b/app/portainer/components/custom-template-common-fields/customTemplateCommonFields.html index 255097cea..44808228e 100644 --- a/app/portainer/components/custom-template-common-fields/customTemplateCommonFields.html +++ b/app/portainer/components/custom-template-common-fields/customTemplateCommonFields.html @@ -5,7 +5,27 @@ Title
+ + This field must consist of lower case alphanumeric characters, '_' or '-' (e.g. 'my-name', or 'abc-123'). +
+