'mailTokens' => array_values($mailTokens),
'contactid' => $contactID,
'fromAddress' => array_values($fromAddress['values'][0]['api.OptionValue.get']['values']),
+ 'visibility' => array(
+ array('value' => 'Public Pages', 'label' => ts('Public Pages')),
+ array('value' => 'User and User Admin Only', 'label' => ts('User and User Admin Only')),
+ ),
),
));
-publication.html
+<!--
+Controller: EditMailingCtrl
+Required vars: mailing
+FIXME: Don't hardcode table-based layout!
+-->
+<table class="form-layout-compressed">
+ <tr>
+ <td class="label">
+ <label crm-ui-label crm-for="visibility">{{ts('Mailing Visibility')}}</label>
+ </td>
+ <td>
+ <select
+ name="visibility"
+ ui-jq="select2"
+ ui-options="{dropdownAutoWidth : true}"
+ ng-model="mailing.visibility"
+ ng-options="v.value as v.label for v in crmMailingConst.visibility"
+ required
+ >
+ </select>
+ </td>
+ </tbody>
+</table>