@ -17,19 +17,20 @@
< label for = "template_name" class = "col-sm-2 control-label text-left" > Name< / label >
< div class = "col-sm-6" >
< input type = "text" name = "template_name" class = "form-control" ng-model = "$ctrl.formValues.name" ng-pattern = "$ctrl.nameRegex" placeholder = "e.g. myStack" required / >
< / div >
< / div >
< div class = "form-group" ng-if = "stackTemplateForm.template_name.$invalid ">
< div class = "col-sm-12 small text-warning ">
< div ng-messages = "stackTemplateForm.template_name.$error" >
< p ng-message = "pattern" >
< i class = "fa fa-exclamation-triangle" aria-hidden = "true" > < / i >
< span > This field must consist of lower case alphanumeric characters, '_' or '-' (e.g. 'my-name', or 'abc-123').< / span >
< / p >
< p ng-message = "required" > < i class = "fa fa-exclamation-triangle" aria-hidden = "true" > < / i > This field is required.< / p >
< div class = "form-group" ng-if = "stackTemplateForm.template_name.$invalid" >
< div class = "col-sm-12 small text-warning" >
< div ng-messages = "stackTemplateForm.template_name.$error ">
< p ng-message = "pattern" class = "vertical-center ">
< pr-icon icon = "'alert-triangle'" mode = "'warning'" feather = "true" > < / pr-icon >
< span > This field must consist of lower case alphanumeric characters, '_' or '-' (e.g. 'my-name', or 'abc-123').< / span >
< / p >
< p ng-message = "required" class = "vertical-center" > < pr-icon icon = "'alert-triangle'" mode = "'warning'" feather = "true" > < / pr-icon > This field is required.< / p >
< / div >
< / div >
< / div >
< / div >
< / div >
<!-- !name - input -->
<!-- env -->
< div ng-repeat = "var in $ctrl.template.Env" ng-if = "!var.preset || var.select" class = "form-group" >
@ -66,8 +67,16 @@
< span ng-show = "$ctrl.state.actionInProgress" > Deployment in progress...< / span >
< / button >
< button type = "button" class = "btn btn-default" ng-click = "$ctrl.unselectTemplate($ctrl.template)" > Hide< / button >
< div class = "cols-sm-12 small text-danger space-left mt-1" ng-if = "$ctrl.state.formValidationError" > {{ $ctrl.state.formValidationError }}< / div >
< div class = "cols-sm-12 small text-danger space-left mt-1" ng-if = "!$ctrl.state.deployable" > This template type cannot be deployed on this environment.< / div >
< div class = "form-group" ng-if = "$ctrl.state.formValidationError" >
< div class = "col-sm-12 small text-danger" ng-if = "$ctrl.state.formValidationError" >
< p class = "vertical-center" > < pr-icon icon = "'alert-triangle'" mode = "'warning'" feather = "true" > < / pr-icon > {{ $ctrl.state.formValidationError }}< / p >
< / div >
< / div >
< div class = "form-group" ng-if = "!$ctrl.state.deployable" >
< div class = "col-sm-12 small text-danger" ng-if = "!$ctrl.state.deployable" >
< p class = "vertical-center" > < pr-icon icon = "'alert-triangle'" mode = "'warning'" feather = "true" > < / pr-icon > This template type cannot be deployed on this environment.< / p >
< / div >
< / div >
< / div >
< / div >
<!-- !actions -->