@@ -6336,24 +6336,24 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
6336
6336
"</div>\n" +
6337
6337
"<div class=\"row\" ng-if-end>\n" +
6338
6338
"<div class=\"col-sm-12\">\n" +
6339
- "<form name=\"form \" class=\"osc-form\">\n" +
6339
+ "<ng- form name=\"forms.deployImage \" class=\"osc-form\">\n" +
6340
6340
"<div class=\"form-group\">\n" +
6341
6341
"<label for=\"name\" class=\"required\">Name</label>\n" +
6342
- "<div ng-class=\"{'has-error': form. name.$invalid || nameTaken}\">\n" +
6342
+ "<div ng-class=\"{'has-error': (forms.deployImage. name.$invalid && forms.deployImage.name.$touched) || nameTaken}\">\n" +
6343
6343
"<input type=\"text\" required select-on-focus minlength=\"2\" maxlength=\"24\" pattern=\"[a-z]([-a-z0-9]*[a-z0-9])?\" ng-model=\"app.name\" id=\"name\" name=\"name\" class=\"form-control\" autocorrect=\"off\" autocapitalize=\"none\" spellcheck=\"false\">\n" +
6344
6344
"</div>\n" +
6345
6345
"<div class=\"help-block\">Identifies the resources created for this image.</div>\n" +
6346
- "<div class=\"has-error\" ng-show=\"form. name.$invalid\">\n" +
6347
- "<div class=\"help-block\" ng-show=\"form .name.$error.required\">\n" +
6346
+ "<div class=\"has-error\" ng-show=\"forms.deployImage. name.$invalid && forms.deployImage.name.$touched \">\n" +
6347
+ "<div class=\"help-block\" ng-show=\"forms.deployImage .name.$error.required\">\n" +
6348
6348
"A name is required.\n" +
6349
6349
"</div>\n" +
6350
- "<div class=\"help-block\" ng-show=\"form .name.$error.pattern\">\n" +
6350
+ "<div class=\"help-block\" ng-show=\"forms.deployImage .name.$error.pattern\">\n" +
6351
6351
"Name must be an alphanumeric (a-z, 0-9) string with a maximum length of 24 characters where the first character is a letter (a-z). The '-' character is allowed anywhere except the first or last character.\n" +
6352
6352
"</div>\n" +
6353
- "<div class=\"help-block\" ng-show=\"form .name.$error.minlength\">\n" +
6353
+ "<div class=\"help-block\" ng-show=\"forms.deployImage .name.$error.minlength\">\n" +
6354
6354
"Name must have at least 2 characters.\n" +
6355
6355
"</div>\n" +
6356
- "<div class=\"help-block\" ng-show=\"form .name.$error.maxlength\">\n" +
6356
+ "<div class=\"help-block\" ng-show=\"forms.deployImage .name.$error.maxlength\">\n" +
6357
6357
"Name can't have more than 24 characters.\n" +
6358
6358
"</div>\n" +
6359
6359
"</div>\n" +
@@ -6370,10 +6370,10 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
6370
6370
"</label-editor>\n" +
6371
6371
"<alerts alerts=\"alerts\"></alerts>\n" +
6372
6372
"<div ng-if=\"!isDialog\" class=\"button-group gutter-bottom\" ng-class=\"{'gutter-top': !alerts.length}\">\n" +
6373
- "<button type=\"submit\" class=\"btn btn-primary btn-lg\" ng-click=\"create()\" value=\"\" ng-disabled=\"form .$invalid || nameTaken || disableInputs\">Create</button>\n" +
6373
+ "<button type=\"submit\" class=\"btn btn-primary btn-lg\" ng-click=\"create()\" value=\"\" ng-disabled=\"forms.deployImage .$invalid || nameTaken || disableInputs\">Create</button>\n" +
6374
6374
"<a class=\"btn btn-default btn-lg\" href=\"#\" back>Cancel</a>\n" +
6375
6375
"</div>\n" +
6376
- "</form>\n" +
6376
+ "</ng- form>\n" +
6377
6377
"</div>\n" +
6378
6378
"</div>\n" +
6379
6379
"<div ng-if=\"!loading && import.error\" class=\"empty-state-message text-center\">\n" +
0 commit comments