| 1 | <!-- |
| 2 | Directive: crmMailingRecipients |
| 3 | --> |
| 4 | <select multiple> |
| 5 | <optgroup label="{{ts('Mandatory Group')}}"> |
| 6 | <option ng-repeat="grp in mandatoryGroups" value="{{grp.id}} civicrm_group include">{{ts('Search Results')}}</option> |
| 7 | </optgroup> |
| 8 | <optgroup label="{{ts('Include Group')}}"> |
| 9 | <option ng-repeat="grp in groups|orderBy:'title'" value="{{grp.id}} civicrm_group include">{{grp.title}}</option> |
| 10 | </optgroup> |
| 11 | <optgroup label="{{ts('Exclude Group')}}"> |
| 12 | <option ng-repeat="grp in groups|orderBy:'title'" value="{{grp.id}} civicrm_group exclude">{{grp.title}}</option> |
| 13 | </optgroup> |
| 14 | <optgroup label="{{ts('Include Past Recipients From')}}"> |
| 15 | <option ng-repeat="ml in mailings|orderBy:'name'" value="{{ml.id}} civicrm_mailing include">{{ml.name}} ({{parseDate(ml.scheduled_date) | date:'mediumDate'}})</option> |
| 16 | </optgroup> |
| 17 | <optgroup label="{{ts('Exclude Past Recipients From')}}"> |
| 18 | <option ng-repeat="ml in mailings|orderBy:'name'" value="{{ml.id}} civicrm_mailing exclude">{{ml.name}} ({{parseDate(ml.scheduled_date) | date:'mediumDate'}})</option> |
| 19 | </optgroup> |
| 20 | </select> |