CRM-15705 - Style preview buttons and fix text preview conditions
authorColeman Watts <coleman@civicrm.org>
Sat, 14 Feb 2015 20:12:49 +0000 (15:12 -0500)
committerColeman Watts <coleman@civicrm.org>
Sun, 15 Feb 2015 00:10:06 +0000 (19:10 -0500)
partials/crmMailing/preview.html

index 224609a858f9406dd23f8546cc5b7f2834ea8992..bfc7120dc13eb3630ccf32d5b3cabcce9db37319 100644 (file)
@@ -11,10 +11,10 @@ Vars: mailing:obj, testContact:obj, testGroup:obj, crmMailing:FormController
       <em>({{ts('No content to preview')}})</em>
     </div>
     <div ng-hide="!mailing.body_html">
-      <button ng-disabled="crmMailing.$invalid" ng-click="doPreview('html')">{{ts('Preview as HTML')}}</button>
+      <a class="crm-hover-button" crm-icon="newwin" ng-disabled="crmMailing.$invalid" ng-click="doPreview('html')">{{ts('Preview as HTML')}}</a>
     </div>
-    <div ng-hide="!mailing.body_text">
-      <button ng-disabled="crmMailing.$invalid" ng-click="doPreview('text')">{{ts('Preview as Plain Text')}}</button>
+    <div ng-hide="!mailing.body_html && !mailing.body_text">
+      <a class="crm-hover-button" crm-icon="newwin" ng-disabled="crmMailing.$invalid" ng-click="doPreview('text')">{{ts('Preview as Plain Text')}}</a>
     </div>
     <!--
     <div ng-hide="!mailing.body_html && !mailing.body_text">