mitchell852 commented on a change in pull request #5934: URL: https://github.com/apache/trafficcontrol/pull/5934#discussion_r651210253
########## File path: traffic_portal/app/src/common/modules/dialog/select/lock/dialog.select.lock.tpl.html ########## @@ -0,0 +1,69 @@ +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<div class="modal-header"> + <button type="button" class="close" ng-click="cancel()"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> + <h4 class="modal-title">Create CDN Lock</h4> +</div> +<div class="modal-body"> + <form name="lockForm" novalidate> + <div class="row"> + <div class="col-sm-12 col-md-12"> + <div class="form-group" ng-class="{'has-error': hasError(lockForm.cdn), 'has-feedback': hasError(lockForm.cdn)}"> + <label class="control-label" for="cdn">CDN * + <small class="input-error" ng-show="hasPropertyError(lockForm.cdn, 'required')">Required</small> + </label> + <select id="cdn" name="cdn" class="form-control" ng-model="lock.cdn" ng-options="cdn.name as cdn.name for cdn in cdns" required> Review comment: > I can't figure out why, but none of your error messages are showing up. Like if I leave the message blank the `small` element that says it's required doesn't show up, same if I don't select a CDN, and if I set the message to e.g. `"msg".repeat(500)` it doesn't tell me the input is too long etc. hmm. good catch... -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
