summaryrefslogtreecommitdiff
path: root/www/crm/wp-content/plugins/civicrm/civicrm/ang/crmMailing/BodyText.html
blob: 598c7792302223f20d09a93f6f27aeddd8bd12da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!--
Required vars: mailing, crmMailingConst
-->
<div ng-form="textForm" crm-ui-id-scope>
  <div ng-controller="EmailBodyCtrl">
    <div style="float: right;">
      <input crm-mailing-token on-select="$broadcast('insert:body_text', token.name)" tabindex="-1"/>
    </div>

    <div>
      <textarea
        crm-ui-id="textForm.body_text"
        crm-ui-insert-rx="insert:body_text"
        name="body_text"
        ng-model="mailing.body_text"
        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>