Format and whitespace fixes
authorColeman Watts <coleman@civicrm.org>
Thu, 3 Dec 2015 19:33:42 +0000 (14:33 -0500)
committerColeman Watts <coleman@civicrm.org>
Thu, 3 Dec 2015 19:33:42 +0000 (14:33 -0500)
templates/CRM/Contribute/Form/Selector.tpl

index 6afb58f55c7e603072e4ab5ece17e4b07a850e16..7097f287615925ffdfea555b5f47170ecee20ba4 100644 (file)
 {include file="CRM/common/pager.tpl" location="top"}
 
 {strip}
-<table class="selector row-highlight">
-  <thead class="sticky">
-  <tr>
-    {if !$single and $context eq 'Search' }
+  <table class="selector row-highlight">
+    <thead class="sticky">
+    <tr>
+      {if !$single and $context eq 'Search' }
         <th scope="col" title="Select Rows">{$form.toggleSelect.html}</th>
-    {/if}
-    {assign var="softCreditColumns" value=0}
-    {foreach from=$columnHeaders item=header}
+      {/if}
+      {assign var="softCreditColumns" value=0}
+      {foreach from=$columnHeaders item=header}
         <th scope="col">
-        {if $header.sort}
-          {assign var='key' value=$header.sort}
-          {$sort->_response.$key.link}
-        {else}
-          {$header.name}
-    {/if}
+          {if $header.sort}
+            {assign var='key' value=$header.sort}
+            {$sort->_response.$key.link}
+          {else}
+            {$header.name}
+          {/if}
         </th>
-  {if $header.name eq "Soft Credit For"}
-    {assign var='softCreditColumns' value=1}
-  {/if}
-    {/foreach}
-  </tr>
-  </thead>
-
-  <p class="description">
-    {ts}Click arrow to view payment details.{/ts}
-  </p>
-  {counter start=0 skip=1 print=false}
-  {foreach from=$rows item=row}
-  <tr id="rowid{$row.contribution_id}" class="{cycle values="odd-row,even-row"}
-  {if $row.cancel_date} cancelled{/if} crm-contribution_{$row.contribution_id}">
-    {if !$single }
-        {if $context eq 'Search' }
-          {assign var=cbName value=$row.checkbox}
-          <td>{$form.$cbName.html}</td>
-   {/if}
+        {if $header.name eq "Soft Credit For"}
+          {assign var='softCreditColumns' value=1}
+        {/if}
+      {/foreach}
+    </tr>
+    </thead>
 
-      <td>{$row.contact_type} &nbsp; <a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.contact_id`"}">{$row.sort_name}</a></td>
-    {/if}
-    <td class="crm-contribution-amount">
-      <a class="nowrap bold crm-expand-row" title="{ts}view payments{/ts}" href="{crmURL p='civicrm/payment' q="view=transaction&component=contribution&action=browse&cid=`$row.contact_id`&id=`$row.contribution_id`&selector=1"}">
-      &nbsp;
-      {if !$row.contribution_soft_credit_amount}{$row.total_amount|crmMoney:$row.currency}{/if}
-      </a>
-      {if $row.amount_level }<br /> ({$row.amount_level}){/if}
-      {if $row.contribution_recur_id}<br /> {ts}(Recurring Contribution){/ts}{/if}
-    </td>
-    {if $softCreditColumns}
-      <td class="right bold crm-contribution-soft_credit_amount"><span class="nowrap">{$row.contribution_soft_credit_amount|crmMoney:$row.currency}</span></td>
-    {/if}
-    <td class="crm-contribution-type crm-contribution-type_{$row.financial_type_id} crm-financial-type crm-financial-type_{$row.financial_type_id}">{$row.financial_type}</td>
-    <td class="crm-contribution-source">{$row.contribution_source}</td>
-    <td class="crm-contribution-receive_date">{$row.receive_date|crmDate}</td>
-    <td class="crm-contribution-thankyou_date">{$row.thankyou_date|crmDate}</td>
-    <td class="crm-contribution-status">
-        {$row.contribution_status}<br />
-        {if $row.cancel_date}
-        {$row.cancel_date|crmDate}
+    <p class="description">
+      {ts}Click arrow to view payment details.{/ts}
+    </p>
+    {counter start=0 skip=1 print=false}
+    {foreach from=$rows item=row}
+      <tr id="rowid{$row.contribution_id}" class="{cycle values="odd-row,even-row"} {if $row.cancel_date} cancelled{/if} crm-contribution_{$row.contribution_id}">
+        {if !$single }
+          {if $context eq 'Search' }
+            {assign var=cbName value=$row.checkbox}
+            <td>{$form.$cbName.html}</td>
+          {/if}
+          <td>{$row.contact_type} &nbsp; <a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.contact_id`"}">{$row.sort_name}</a></td>
         {/if}
-    </td>
-    <td class="crm-contribution-product_name">{$row.product_name}</td>
-    {if $softCreditColumns}
-      <td class="crm-contribution-soft_credit_name"><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.contribution_soft_credit_contact_id`"}">{$row.contribution_soft_credit_name}</a></td>
-      <td class="crm-contribution-soft_credit_type">{$row.contribution_soft_credit_type}</td>
-    {/if}
-    <td>{$row.action|replace:'xx':$row.contribution_id}</td>
-  </tr>
-  {/foreach}
+        <td class="crm-contribution-amount">
+          <a class="nowrap bold crm-expand-row" title="{ts}view payments{/ts}" href="{crmURL p='civicrm/payment' q="view=transaction&component=contribution&action=browse&cid=`$row.contact_id`&id=`$row.contribution_id`&selector=1"}">
+            &nbsp; {if !$row.contribution_soft_credit_amount}{$row.total_amount|crmMoney:$row.currency}{/if}
+          </a>
+          {if $row.amount_level }<br/>({$row.amount_level}){/if}
+          {if $row.contribution_recur_id}<br/>{ts}(Recurring Contribution){/ts}{/if}
+        </td>
+        {if $softCreditColumns}
+          <td class="right bold crm-contribution-soft_credit_amount">
+            <span class="nowrap">{$row.contribution_soft_credit_amount|crmMoney:$row.currency}</span>
+          </td>
+        {/if}
+        <td class="crm-contribution-type crm-contribution-type_{$row.financial_type_id} crm-financial-type crm-financial-type_{$row.financial_type_id}">
+          {$row.financial_type}
+        </td>
+        <td class="crm-contribution-source">
+          {$row.contribution_source}
+        </td>
+        <td class="crm-contribution-receive_date">
+          {$row.receive_date|crmDate}
+        </td>
+        <td class="crm-contribution-thankyou_date">
+          {$row.thankyou_date|crmDate}
+        </td>
+        <td class="crm-contribution-status">
+          {$row.contribution_status}<br/>
+          {if $row.cancel_date}
+            {$row.cancel_date|crmDate}
+          {/if}
+        </td>
+        <td class="crm-contribution-product_name">{$row.product_name}</td>
+        {if $softCreditColumns}
+          <td class="crm-contribution-soft_credit_name">
+            <a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.contribution_soft_credit_contact_id`"}">{$row.contribution_soft_credit_name}</a>
+          </td>
+          <td class="crm-contribution-soft_credit_type">{$row.contribution_soft_credit_type}</td>
+        {/if}
+        <td>{$row.action|replace:'xx':$row.contribution_id}</td>
+      </tr>
+    {/foreach}
 
-</table>
+  </table>
 {/strip}
 
 {include file="CRM/common/pager.tpl" location="bottom"}