Add toolkit reminder for empty input

This commit is contained in:
caiwenlong1989
2021-07-21 18:14:33 +08:00
committed by GitHub
parent bb08d466f9
commit bd85a9db96

View File

@@ -183,33 +183,33 @@
<div class="form-group">
<label class="control-label col-sm-2">{{'TOPIC_NAME'|translate}}:</label>
<div class="col-sm-10">
<input class="form-control" ng-model="item.topicName" type="text"
<input class="form-control" ng-model="item.topicName" name="topicName" type="text"
ng-disabled="ngDialogData.bIsUpdate" required/>
<span class="text-danger" ng-show="addAppForm.name.$error.required">编号不能为空.</span>
<span class="text-danger" ng-show="addAppForm.topicName.$error.required">{{'TOPIC_NAME'|translate}}不能为空.</span>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2">{{'WRITE_QUEUE_NUMS'|translate}}:</label>
<div class="col-sm-10">
<input class="form-control" ng-model="item.writeQueueNums" type="text"
<input class="form-control" ng-model="item.writeQueueNums" name="writeQueueNums" type="text"
required/>
<span class="text-danger" ng-show="addAppForm.name.$error.required">编号不能为空.</span>
<span class="text-danger" ng-show="addAppForm.writeQueueNums.$error.required">{{'WRITE_QUEUE_NUMS'|translate}}不能为空.</span>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2">{{'READ_QUEUE_NUMS'|translate}}:</label>
<div class="col-sm-10">
<input class="form-control" ng-model="item.readQueueNums" type="text"
<input class="form-control" ng-model="item.readQueueNums" name="readQueueNums" type="text"
required/>
<span class="text-danger" ng-show="addAppForm.name.$error.required">编号不能为空.</span>
<span class="text-danger" ng-show="addAppForm.readQueueNums.$error.required">{{'READ_QUEUE_NUMS'|translate}}不能为空.</span>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2">{{'PERM'|translate}}:</label>
<div class="col-sm-10">
<input class="form-control" ng-model="item.perm" type="text"
<input class="form-control" ng-model="item.perm" name="perm" type="text"
required/>
<span class="text-danger" ng-show="addAppForm.name.$error.required">编号不能为空.</span>
<span class="text-danger" ng-show="addAppForm.perm.$error.required">{{'PERM'|translate}}不能为空.</span>
</div>
</div>
</form>
@@ -540,4 +540,4 @@
</button>
</div>
</div>
</script>
</script>