Fix UserDashboard.tpl indentations
authorGuanhuan Chen <oooomic@gmail.com>
Wed, 13 May 2015 13:06:43 +0000 (14:06 +0100)
committerGuanhuan Chen <oooomic@gmail.com>
Wed, 13 May 2015 13:06:43 +0000 (14:06 +0100)
templates/CRM/Contribute/Page/UserDashboard.tpl

index 33a1a32b51394c40aab73d9bba9c87b2a7809058..1d42711c73c8aa1737fa042a021b0ca08fb99f88 100644 (file)
 <div class="view-content">
     {if $contribute_rows}
         {strip}
-
-        <table class="selector">
-            <tr class="columnheader">
-                <th>{ts}Total Amount{/ts}</th>
-                <th>{ts}Financial Type{/ts}</th>
-                <th>{ts}Received date{/ts}</th>
-                <th>{ts}Receipt Sent{/ts}</th>
-                <th>{ts}Status{/ts}</th>
-    {if $invoicing && $invoices}
-                  <th></th>
-    {/if}
-            </tr>
-
-            {foreach from=$contribute_rows item=row}
-                <tr id='rowid{$row.contribution_id}' class="{cycle values="odd-row,even-row"}{if $row.cancel_date} disabled{/if}">
-                    <td>{$row.total_amount|crmMoney:$row.currency} {if $row.amount_level } - {$row.amount_level} {/if}
-                        {if $row.contribution_recur_id}
-                            <br /> {ts}(Recurring Contribution){/ts}
-                        {/if}
-                    </td>
-                    <td>{$row.financial_type}</td>
-                    <td>{$row.receive_date|truncate:10:''|crmDate}</td>
-                    <td>{$row.receipt_date|truncate:10:''|crmDate}</td>
-                    <td>{$row.contribution_status}</td>
+            <table class="selector">
+                <tr class="columnheader">
+                    <th>{ts}Total Amount{/ts}</th>
+                    <th>{ts}Financial Type{/ts}</th>
+                    <th>{ts}Received date{/ts}</th>
+                    <th>{ts}Receipt Sent{/ts}</th>
+                    <th>{ts}Status{/ts}</th>
                     {if $invoicing && $invoices}
-                      {if $row.contribution_status_name != 'Cancelled'}
-                        <td>
-                          {assign var='id' value=$row.contribution_id}
-                          {assign var='contact_id' value=$row.contact_id}
-                          {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id"}
-                          {if call_user_func(array('CRM_Core_Permission','check'), 'view my invoices') OR call_user_func(array('CRM_Core_Permission','check'), 'access CiviContribute')}
-                            <a class="button no-popup " href="{crmURL p='civicrm/contribute/invoice' q=$urlParams}">
-                              <span class="icon ui-icon-print"></span>
-                            {if $row.contribution_status != 'Refunded'}
-                              <span>{ts}Print Invoice{/ts}</span>
-                            {else}
-                              <span>{ts}Print Invoice and Credit Note{/ts}</span>
+                        <th></th>
+                    {/if}
+                </tr>
+
+                {foreach from=$contribute_rows item=row}
+                    <tr id='rowid{$row.contribution_id}'
+                        class="{cycle values="odd-row,even-row"}{if $row.cancel_date} disabled{/if}">
+                        <td>{$row.total_amount|crmMoney:$row.currency} {if $row.amount_level } - {$row.amount_level} {/if}
+                            {if $row.contribution_recur_id}
+                                <br/>
+                                {ts}(Recurring Contribution){/ts}
                             {/if}
-                            </a>
-                          {/if}
                         </td>
-                      {else}
-            <td></td>
-          {/if}
-        {/if}
-                </tr>
-            {/foreach}
-        </table>
+                        <td>{$row.financial_type}</td>
+                        <td>{$row.receive_date|truncate:10:''|crmDate}</td>
+                        <td>{$row.receipt_date|truncate:10:''|crmDate}</td>
+                        <td>{$row.contribution_status}</td>
+                        {if $invoicing && $invoices}
+                            {if $row.contribution_status_name != 'Cancelled'}
+                                <td>
+                                    {assign var='id' value=$row.contribution_id}
+                                    {assign var='contact_id' value=$row.contact_id}
+                                    {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id"}
+                                    {if call_user_func(array('CRM_Core_Permission','check'), 'view my invoices') OR call_user_func(array('CRM_Core_Permission','check'), 'access CiviContribute')}
+                                        <a class="button no-popup "
+                                           href="{crmURL p='civicrm/contribute/invoice' q=$urlParams}">
+                                            <span class="icon ui-icon-print"></span>
+                                            {if $row.contribution_status != 'Refunded'}
+                                                <span>{ts}Print Invoice{/ts}</span>
+                                            {else}
+                                                <span>{ts}Print Invoice and Credit Note{/ts}</span>
+                                            {/if}
+                                        </a>
+                                    {/if}
+                                </td>
+                            {else}
+                                <td></td>
+                            {/if}
+                        {/if}
+                    </tr>
+                {/foreach}
+            </table>
         {/strip}
         {if $contributionSummary.total.count gt 12}
             {ts}Contact us for information about contributions prior to those listed above.{/ts}
         {/if}
     {else}
         <div class="messages status no-popup">
-           <div class="icon inform-icon"></div>
-                    {ts}There are no contributions on record for you.{/ts}
+            <div class="icon inform-icon"></div>
+            {ts}There are no contributions on record for you.{/ts}
         </div>
     {/if}
 
     {if $honor}
         {if $honorRows}
             {strip}
-            <div id="help">
-                {ts}Contributions made in your honor{/ts}:
-            </div>
-            <table class="selector">
-                <tr class="columnheader">
-                    <th >{ts}Contributor{/ts}</th>
-                    <th>{ts}Amount{/ts}</th>
-                    <th>{ts}Type{/ts}</th>
-                    <th>{ts}Financial Type{/ts}</th>
-                    <th>{ts}Received date{/ts}</th>
-                    <th>{ts}Receipt Sent{/ts}</th>
-                    <th>{ts}Status{/ts}</th>
-                </tr>
-                {foreach from=$honorRows item=row}
-                    <tr id='rowid{$row.honorId}' class="{cycle values="odd-row,even-row"}">
-                        <td><a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$row.honorId`"}" id="view_contact">{$row.display_name}</a></td>
-                        <td>{$row.amount}</td>
-                        <td>{$row.honor_type}</td>
-                        <td>{$row.type}</td>
-                        <td>{$row.receive_date|truncate:10:''|crmDate}</td>
-                        <td>{$row.receipt_date|truncate:10:''|crmDate}</td>
-                        <td>{$row.contribution_status}</td>
+                <div id="help">
+                    {ts}Contributions made in your honor{/ts}:
+                </div>
+                <table class="selector">
+                    <tr class="columnheader">
+                        <th>{ts}Contributor{/ts}</th>
+                        <th>{ts}Amount{/ts}</th>
+                        <th>{ts}Type{/ts}</th>
+                        <th>{ts}Financial Type{/ts}</th>
+                        <th>{ts}Received date{/ts}</th>
+                        <th>{ts}Receipt Sent{/ts}</th>
+                        <th>{ts}Status{/ts}</th>
                     </tr>
-                {/foreach}
-            </table>
+                    {foreach from=$honorRows item=row}
+                        <tr id='rowid{$row.honorId}' class="{cycle values="odd-row,even-row"}">
+                            <td><a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$row.honorId`"}"
+                                   id="view_contact">{$row.display_name}</a></td>
+                            <td>{$row.amount}</td>
+                            <td>{$row.honor_type}</td>
+                            <td>{$row.type}</td>
+                            <td>{$row.receive_date|truncate:10:''|crmDate}</td>
+                            <td>{$row.receipt_date|truncate:10:''|crmDate}</td>
+                            <td>{$row.contribution_status}</td>
+                        </tr>
+                    {/foreach}
+                </table>
             {/strip}
         {/if}
     {/if}
     {if $recur}
         {if $recurRows}
             {strip}
-            <div><label>{ts}Recurring Contribution(s){/ts}</label></div>
-            <table class="selector">
-                <tr class="columnheader">
-                    <th>{ts}Terms:{/ts}</th>
-                    <th>{ts}Status{/ts}</th>
-                    <th>{ts}Installments{/ts}</th>
-                    <th>{ts}Created{/ts}</th>
-                    <th></th>
-                </tr>
-                {foreach from=$recurRows item=row key=id}
-                    <tr class="{cycle values="odd-row,even-row"}">
-                        <td><label>{$recurRows.$id.amount|crmMoney}</label>  every {$recurRows.$id.frequency_interval} {$recurRows.$id.frequency_unit} for {$recurRows.$id.installments} installments</td>
-                        <td>{$recurRows.$id.recur_status}</td>
-                        <td>{if $recurRows.$id.completed}<a href="{$recurRows.$id.link}">{$recurRows.$id.completed}/{$recurRows.$id.installments}</a>
-                            {else}0/{$recurRows.$id.installments} {/if}</td>
-                       <td>{$recurRows.$id.create_date|crmDate}</td>
-                       <td>{$recurRows.$id.action|replace:'xx':$recurRows.id}</td>
+                <div><label>{ts}Recurring Contribution(s){/ts}</label></div>
+                <table class="selector">
+                    <tr class="columnheader">
+                        <th>{ts}Terms:{/ts}</th>
+                        <th>{ts}Status{/ts}</th>
+                        <th>{ts}Installments{/ts}</th>
+                        <th>{ts}Created{/ts}</th>
+                        <th></th>
                     </tr>
-                {/foreach}
-            </table>
+                    {foreach from=$recurRows item=row key=id}
+                        <tr class="{cycle values="odd-row,even-row"}">
+                            <td><label>{$recurRows.$id.amount|crmMoney}</label>
+                                every {$recurRows.$id.frequency_interval} {$recurRows.$id.frequency_unit}
+                                for {$recurRows.$id.installments} installments
+                            </td>
+                            <td>{$recurRows.$id.recur_status}</td>
+                            <td>{if $recurRows.$id.completed}<a href="{$recurRows.$id.link}">{$recurRows.$id.completed}
+                                    /{$recurRows.$id.installments}</a>
+                                {else}0/{$recurRows.$id.installments} {/if}</td>
+                            <td>{$recurRows.$id.create_date|crmDate}</td>
+                            <td>{$recurRows.$id.action|replace:'xx':$recurRows.id}</td>
+                        </tr>
+                    {/foreach}
+                </table>
             {/strip}
         {/if}
     {/if}