u4-9491 Added an asterisk with appropriate css class to the property editor next to the label in the back office to indicate to the user that the field is mandatory before saving. This is more intuitive to the user to see what fields need filling in before submitting. This was implemented in our solution which is used by hundreds of back end users.

This commit is contained in:
aaron.morey
2017-02-06 17:24:53 +11:00
parent 5b2212829c
commit d97cc36c53

View File

@@ -1,13 +1,16 @@
<div class="umb-property">
<ng-form name="propertyForm">
<div class="control-group umb-control-group" ng-class="{hidelabel:property.hideLabel}" >
<div class="control-group umb-control-group" ng-class="{hidelabel:property.hideLabel}">
<val-property-msg property="property"></val-property-msg>
<div class="umb-el-wrap">
<label class="control-label" ng-hide="property.hideLabel" for="{{property.alias}}" ng-attr-title="{{propertyAlias}}">
{{property.label}}
<strong ng-if="property.validation.mandatory">
<span class="red">&nbsp;*&nbsp;</span>
</strong>
<small ng-bind-html="property.description"></small>
</label>