Merge pull request #8983 from umbraco/v8/bugfix/8894-always-show-validation-limit-message

Review: Always show if limit are exceeded
This commit is contained in:
Warren Buckley
2020-09-30 12:35:52 +01:00
committed by GitHub

View File

@@ -36,13 +36,13 @@
<input type="hidden" name="minCount" ng-model="vm.layout" val-server="minCount" />
<input type="hidden" name="maxCount" ng-model="vm.layout" val-server="maxCount" />
<div ng-messages="vm.propertyForm.minCount.$error" show-validation-on-submit>
<div ng-messages="vm.propertyForm.minCount.$error">
<div class="help text-error" ng-message="minCount">
<localize key="validation_entriesShort" tokens="[vm.validationLimit.min, vm.validationLimit.min - vm.layout.length]" watch-tokens="true">Minimum %0% entries, needs <strong>%1%</strong> more.</localize>
</div>
<span class="help-inline" ng-message="valServer" ng-bind-html="vm.propertyForm.minCount.errorMsg">></span>
</div>
<div ng-messages="vm.propertyForm.maxCount.$error" show-validation-on-submit>
<div ng-messages="vm.propertyForm.maxCount.$error">
<div class="help text-error" ng-message="maxCount">
<localize key="validation_entriesExceed" tokens="[vm.validationLimit.max, vm.layout.length - vm.validationLimit.max]" watch-tokens="true">Maximum %0% entries, <strong>%1%</strong> too many.</localize>
</div>