CRM-15578 - crmMailing2 - Add "headerFooter.html"
authorTim Otten <totten@civicrm.org>
Mon, 3 Nov 2014 02:56:58 +0000 (18:56 -0800)
committerTim Otten <totten@civicrm.org>
Tue, 11 Nov 2014 00:21:14 +0000 (16:21 -0800)
js/angular-crmMailing2.js
partials/crmMailing2/headerFooter.html

index 4919b095116a5f21ee6d8aca6817c17667b0b66b..04b9ae1e16d20f207f24ac40e4043d81f68319f9 100644 (file)
@@ -28,6 +28,8 @@
       mailings: {include: [], exclude: []},
       body_html: "",
       body_text: "",
+      footer_id: null, // pickDefaultMailComponent('Footer'),
+      header_id: null, // pickDefaultMailComponent('Header'),
       visibility: "Public Pages",
       url_tracking: "1",
       dedupe_email: "1",
index a2373a11178f34df6ff3c88572a9a2b81f3cc0d9..975350a066aa2b417b8834c4c5ed8c8f87fa20f0 100644 (file)
@@ -1 +1,37 @@
-headerFooter.html
+<!--
+Controller: EditMailingCtrl
+Required vars: mailing, crmMailingConst
+FIXME: Don't hardcode table-based layout!
+-->
+<table class="form-layout-compressed">
+  <tr>
+    <td class="label">
+      <label crm-ui-label crm-for="header_id">{{ts('Mailing Header')}}</label>
+    </td>
+    <td>
+      <select
+        name="header_id"
+        ui-jq="select2"
+        ui-options="{dropdownAutoWidth : true, allowClear: true}"
+        ng-model="mailing.header_id"
+        ng-options="mc.id as mc.name for mc in crmMailingConst.headerfooterList | filter:{component_type: 'Header'}">
+        <option value=""></option>
+      </select>
+    </td>
+  </tr>
+  <tr>
+    <td class="label">
+      <label crm-ui-label crm-for="footer_id">{{ts('Mailing Footer')}}</label>
+    </td>
+    <td>
+      <select
+        name="footer_id"
+        ui-jq="select2"
+        ui-options="{dropdownAutoWidth : true, allowClear: true}"
+        ng-model="mailing.footer_id"
+        ng-options="mc.id as mc.name for mc in crmMailingConst.headerfooterList | filter:{component_type: 'Footer'}">
+        <option value=""></option>
+      </select>
+    </td>
+  </tr>
+</table>