<div
  class="help-block has-error"
  ng-show="$ctrl.wsValidatorService.hasErrorsFor($ctrl.model, $ctrl.attribute) && $ctrl.formName.$untouched">
  <p>{{$ctrl.wsValidatorService.getErrorsFor($ctrl.model, $ctrl.attribute)}}</p>
</div>
<div
  class="help-block has-error"
  ng-messages="$ctrl.formName.$error"
  ng-show="$ctrl.formName.$touched || $ctrl.forceErrors">
  <!-- You can put your own custom validation here with transclusion -->
  <ng-transclude></ng-transclude>
  <p class="error-message" ng-message="required" translate="form.validation.errors.required"></p>
  <p class="error-message" ng-message="mask" translate="form.validation.errors.required"></p>
  <p class="error-message" ng-message="email" translate="form.validation.errors.email"></p>
</div>
