<ng-form name="nestedSmartRuleForm">
  <div
    class="form-group"
    ng-class="{ 'has-error': nestedSmartRuleForm.$dirty && nestedSmartRuleForm.$invalid }"
  >
    <textarea
      class="form-control"
      ng-model="rule.config[param.property]"
      ng-attr-placeholder="{{ placeholder(param) }}"
      uib-tooltip="{{ placeholder(param) }}"
      tooltip-popup-delay="500"
      tooltip-append-to-body="true"
      ng-required="param.required"
    ></textarea>
  </div>
</ng-form>
