CRM-15578 - Change table layouts to <crm-ui-field> directive. Remove <crm-ui-label...
[civicrm-core.git] / partials / crmMailing2 / tracking.html
index fc49f21c745b47a3dd7cd4e9c2b5548ac2d68a2c..ebd57c25cd488d52924eed7d8b6c0a19df949f1d 100644 (file)
@@ -1,35 +1,20 @@
 <!--
 Controller: EditMailingCtrl
 Required vars: mailing
-FIXME: Don't hardcode table-based layout!
 -->
-<table class="form-layout-compressed">
-  <tbody>
-    <tr>
-      <td>
-        <input name="url_tracking" type="checkbox" ng-model="mailing.url_tracking" ng-true-value="1" ng-false-value="0" />
-        <label crm-ui-label crm-for="url_tracking">{{ts('Track Click Throughs')}}</label>
-      </td>
-    </tr>
-    <tr>
-      <td>
-        <div id="help">
-          {{ts('Track the number of times recipients click each link in this mailing. NOTE: When this feature is enabled, all links in the message body will be automatically re-written to route through your CiviCRM server prior to redirecting to the target page.')}}
-        </div>
-      </td>
-    </tr>
-    <tr>
-      <td>
-        <input name="open_tracking" type="checkbox" ng-model="mailing.open_tracking" ng-true-value="1" ng-false-value="0" />
-        <label crm-ui-label crm-for="open_tracking">{{ts('Track Opens')}}</label>
-      </td>
-    </tr>
-    <tr>
-      <td>
-        <div id="help">
-          {{ts('Track the number of times recipients open this mailing in their email software.')}}
-        </div>
-      </td>
-    </tr>
-  </tbody>
-</table>
+<div class="crm-block">
+  <div class="crm-group">
+    <div crm-ui-field="url_tracking" crm-title="ts('Track Click Throughs')" crm-layout="checkbox">
+      <input name="url_tracking" type="checkbox" ng-model="mailing.url_tracking" ng-true-value="1" ng-false-value="0" />
+    </div>
+    <div class="crm-section" id="help">
+      {{ts('Track the number of times recipients click each link in this mailing. NOTE: When this feature is enabled, all links in the message body will be automatically re-written to route through your CiviCRM server prior to redirecting to the target page.')}}
+    </div>
+    <div crm-ui-field="open_tracking" crm-title="ts('Track Opens')" crm-layout="checkbox">
+      <input name="open_tracking" type="checkbox" ng-model="mailing.open_tracking" ng-true-value="1" ng-false-value="0" />
+    </div>
+    <div class="crm-section" id="help">
+      {{ts('Track the number of times recipients open this mailing in their email software.')}}
+    </div>
+  </div>
+</div>