@@ -4169,11 +4169,19 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
4169
4169
"<span class=\"help-block\">A unique name for the project.</span>\n" +
4170
4170
"</div>\n" +
4171
4171
"<div class=\"has-error\">\n" +
4172
+ "<span id=\"nameHelp\" class=\"help-block\" ng-if=\"createProjectForm.name.$error.minlength && createProjectForm.name.$touched\">\n" +
4173
+ "Name must have at least two characters.\n" +
4174
+ "</span>\n" +
4175
+ "</div>\n" +
4176
+ "<div class=\"has-error\">\n" +
4172
4177
"<span id=\"nameHelp\" class=\"help-block\" ng-if=\"createProjectForm.name.$error.pattern && createProjectForm.name.$touched\">\n" +
4173
- "Project names may only contain lower-case letters, numbers, and dashes. They may not start or end with a dash.</span>\n" +
4178
+ "Project names may only contain lower-case letters, numbers, and dashes. They may not start or end with a dash.\n" +
4179
+ "</span>\n" +
4174
4180
"</div>\n" +
4175
4181
"<div class=\"has-error\">\n" +
4176
- "<span class=\"help-block\" ng-if=\"nameTaken\">This name is already in use. Please choose a different name.</span>\n" +
4182
+ "<span class=\"help-block\" ng-if=\"nameTaken\">\n" +
4183
+ "This name is already in use. Please choose a different name.\n" +
4184
+ "</span>\n" +
4177
4185
"</div>\n" +
4178
4186
"</div>\n" +
4179
4187
"<div class=\"form-group\">\n" +
@@ -5865,7 +5873,7 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
5865
5873
"<label for=\"config-map-name\" class=\"required\">Name</label>\n" +
5866
5874
"\n" +
5867
5875
"<div ng-class=\"{ 'has-error': configMapForm.name.$invalid && configMapForm.name.$touched }\">\n" +
5868
- "<input id=\"config-map-name\" class=\"form-control\" type=\"text\" name=\"name\" ng-model=\"configMap.metadata.name\" ng-required=\"showNameInput\" ng-pattern=\"/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/\" ng-maxlength=\"63\" ng-minlength=\"2\" placeholder=\"my-config-map\" select-on-focus autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\" aria-describedby=\"config-map-name-help\">\n" +
5876
+ "<input id=\"config-map-name\" class=\"form-control\" type=\"text\" name=\"name\" ng-model=\"configMap.metadata.name\" ng-required=\"showNameInput\" ng-pattern=\"/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/\" ng-maxlength=\"63\" placeholder=\"my-config-map\" select-on-focus autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\" aria-describedby=\"config-map-name-help\">\n" +
5869
5877
"</div>\n" +
5870
5878
"<div>\n" +
5871
5879
"<span id=\"config-map-name-help\" class=\"help-block\">A unique name for the config map within the project.</span>\n" +
@@ -6653,7 +6661,7 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
6653
6661
"<div ng-show=\"showNameInput\" class=\"form-group\">\n" +
6654
6662
"<label for=\"hpa-name\" class=\"required\">Autoscaler Name</label>\n" +
6655
6663
"<span ng-class=\"{ 'has-error': form.name.$touched && form.name.$invalid }\">\n" +
6656
- "<input id=\"hpa-name\" class=\"form-control\" type=\"text\" name=\"name\" ng-model=\"autoscaling.name\" ng-required=\"showNameInput\" ng-readonly=\"nameReadOnly\" ng-pattern=\"/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/\" ng-maxlength=\"63\" ng-minlength=\"2\" placeholder=\"my-hpa\" select-on-focus autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\" aria-describedby=\"hpa-name-help\">\n" +
6664
+ "<input id=\"hpa-name\" class=\"form-control\" type=\"text\" name=\"name\" ng-model=\"autoscaling.name\" ng-required=\"showNameInput\" ng-readonly=\"nameReadOnly\" ng-pattern=\"/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/\" ng-maxlength=\"63\" placeholder=\"my-hpa\" select-on-focus autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\" aria-describedby=\"hpa-name-help\">\n" +
6657
6665
"</span>\n" +
6658
6666
"<div>\n" +
6659
6667
"<span id=\"hpa-name-help\" class=\"help-block\">\n" +
@@ -6971,7 +6979,7 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
6971
6979
"\n" +
6972
6980
"<div class=\"form-group\">\n" +
6973
6981
"<label for=\"claim-name\" class=\"required\">Name</label>\n" +
6974
- "<input id=\"claim-name\" class=\"form-control\" type=\"text\" name=\"name\" ng-model=\"claim.name\" ng-required=\"true\" ng-pattern=\"/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/\" ng-maxlength=\"253\" ng-minlength=\"2\" placeholder=\"my-storage-claim\" select-on-focus autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\" aria-describedby=\"claim-name-help\">\n" +
6982
+ "<input id=\"claim-name\" class=\"form-control\" type=\"text\" name=\"name\" ng-model=\"claim.name\" ng-required=\"true\" ng-pattern=\"/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/\" ng-maxlength=\"253\" placeholder=\"my-storage-claim\" select-on-focus autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\" aria-describedby=\"claim-name-help\">\n" +
6975
6983
"<div>\n" +
6976
6984
"<span id=\"claim-name-help\" class=\"help-block\">A unique name for the storage claim within the project.</span>\n" +
6977
6985
"</div>\n" +
@@ -7099,7 +7107,7 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
7099
7107
"<div ng-show=\"showNameInput\" class=\"form-group\">\n" +
7100
7108
"<label for=\"route-name\" class=\"required\">Name</label>\n" +
7101
7109
"\n" +
7102
- "<input id=\"route-name\" class=\"form-control\" type=\"text\" name=\"name\" ng-model=\"route.name\" ng-required=\"showNameInput\" ng-pattern=\"/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/\" ng-maxlength=\"63\" ng-minlength=\"2\" placeholder=\"my-route\" select-on-focus autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\" aria-describedby=\"route-name-help\">\n" +
7110
+ "<input id=\"route-name\" class=\"form-control\" type=\"text\" name=\"name\" ng-model=\"route.name\" ng-required=\"showNameInput\" ng-pattern=\"/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/\" ng-maxlength=\"63\" placeholder=\"my-route\" select-on-focus autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\" aria-describedby=\"route-name-help\">\n" +
7103
7111
"<div>\n" +
7104
7112
"<span id=\"route-name-help\" class=\"help-block\">A unique name for the route within the project.</span>\n" +
7105
7113
"</div>\n" +
0 commit comments