CRM-15578 - crmMailing2 - Add "publication.html"
authorTim Otten <totten@civicrm.org>
Mon, 3 Nov 2014 02:37:48 +0000 (18:37 -0800)
committerTim Otten <totten@civicrm.org>
Tue, 11 Nov 2014 00:20:59 +0000 (16:20 -0800)
CRM/Mailing/Info.php
partials/crmMailing2/publication.html

index c220bd977ad4f4a3ca35ceceee5e73461118c520..4b2ecf00d52e1c0976c4cc620b00cd4184bbd6d6 100644 (file)
@@ -132,6 +132,10 @@ class CRM_Mailing_Info extends CRM_Core_Component_Info {
         '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')),
+        ),
       ),
     ));
 
index 8bd61f038f4d4a164a42178c2146b09b87636f4e..3e0e8b23ef9ced87ddc08ef0a762211c400023d4 100644 (file)
@@ -1 +1,23 @@
-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>