When you first fill in the body, we produce a popup on-blur to mention the
missing tokens. However, when you edit an existing mailing, there is no
blur at first, and it's not clear what's wrong (unless you focus and blur
the problematic field). This makes the problem more obvious.
background: none;
}
+.crmMailing-error-link {
+ color: red;
+}
ng-blur="checkTokens(mailing, 'body_html', 'insert:body_html')"
></textarea>
<span ng-model="body_html_tokens" crm-ui-validate="hasAllTokens(mailing, 'body_html')"></span>
+ <div ng-show="htmlForm.$error.crmUiValidate" class="crmMailing-error-link">
+ {{ts('Required tokens are missing.')}} <a class="helpicon" ng-click="checkTokens(mailing, 'body_html', 'insert:body_html')"></a>
+ </div>
</div>
</div>
</div>
ng-blur="checkTokens(mailing, 'body_text', 'insert:body_text')"
></textarea>
<span ng-model="body_text_tokens" crm-ui-validate="hasAllTokens(mailing, 'body_text')"></span>
+ <div ng-show="textForm.$error.crmUiValidate" class="crmMailing-error-link">
+ {{ts('Required tokens are missing.')}} <a class="helpicon" ng-click="checkTokens(mailing, 'body_text', 'insert:body_text')"></a>
+ </div>
</div>
</div>
</div>