CRM-16103 - Improve mailing search form layout
authorColeman Watts <coleman@civicrm.org>
Mon, 16 Mar 2015 02:23:17 +0000 (22:23 -0400)
committerColeman Watts <coleman@civicrm.org>
Mon, 16 Mar 2015 02:23:17 +0000 (22:23 -0400)
templates/CRM/Mailing/Form/Search.tpl
templates/CRM/Mailing/Page/Browse.hlp

index 20987422e6088a0e7ca1444d2d4835975606daa2..4a1a008283514c8a6b715e29954750593dfd989a 100644 (file)
@@ -26,8 +26,8 @@
 <div class="crm-block crm-form-block crm-search-form-block">
 <table class="form-layout">
     <tr>
-        <td>{$form.mailing_name.label}<br />
-            {$form.mailing_name.html|crmAddClass:big} {help id="id-mailing_name"}
+        <td>{$form.mailing_name.label} {help id="id-mailing_name"}<br />
+            {$form.mailing_name.html|crmAddClass:big}
         </td>
     </tr>
     <tr>
   {include file="CRM/Core/DateRange.tpl" fieldName="mailing" from='_from' to='_to'}
     </tr>
     <tr>
-        <td colspan="1">{$form.sort_name.label}<br />
-            {$form.sort_name.html|crmAddClass:big} {help id="id-create_sort_name"}
+        <td colspan="1">{$form.sort_name.label} {help id="id-create_sort_name"}<br />
+            {$form.sort_name.html|crmAddClass:big}
             <br/><br/>
             <div class="crm-search-form-block-is_archive">
-            {$form.is_archived.label}<br/>
+            {$form.is_archived.label} {help id="is_archived"}<br/>
             {$form.is_archived.html}
             </div>
         </td>
         {if $form.mailing_status}
            <td width="100%"><label>{if $sms eq 1}{ts}SMS Status{/ts}{else}{ts}Mailing Status{/ts}{/if}</label><br />
-           <div class="listing-box" style="width: auto; height: 100px">
+           <div class="listing-box" style="height: auto">
              {foreach from=$form.mailing_status item="mailing_status_val"}
              <div class="{cycle values="odd-row,even-row"}">
                {$mailing_status_val.html}
              </div>
             {/foreach}
-            <div class='odd-row'>
+            <div class="{cycle values="odd-row,even-row"}">
               {$form.status_unscheduled.html}
             </div>
            </div><br />
index 62b82d336c41f067f0b9918f07d0dba9290352ed..2c5990326555b1cb8f9cce21976c4dc89bc9b9fa 100644 (file)
 {htxt id="id-create_sort_name"}
 {ts}Find mailings by the name of the person who created or sent them. You can enter a complete OR partial name (last name, first name format).{/ts}
 {/htxt}
+
+{htxt id="is_archived-title"}
+  {ts}Archived{/ts}
+{/htxt}
+{htxt id="is_archived"}
+  {ts}This field is disabled when searching for Draft/Unscheduled mailings.{/ts}
+{/htxt}