CRM-12595 fix formatting in templates files (C)
authoreileen <eileen@fuzion.co.nz>
Mon, 13 May 2013 02:26:25 +0000 (14:26 +1200)
committereileen <eileen@fuzion.co.nz>
Fri, 17 May 2013 19:51:43 +0000 (07:51 +1200)
21 files changed:
templates/CRM/Campaign/Form/Petition/Block.tpl
templates/CRM/Campaign/Form/Task/Interview.tpl
templates/CRM/Campaign/Form/Task/Print.tpl
templates/CRM/Campaign/Form/Task/Release.tpl
templates/CRM/Case/Audit/Audit.tpl
templates/CRM/Case/Page/DashBoard.tpl
templates/CRM/Contact/Form/Search/Custom/ContributionAggregate.tpl
templates/CRM/Contact/Form/Search/Custom/FullText.tpl
templates/CRM/Contribute/Form/AdditionalInfo/AdditionalDetail.tpl
templates/CRM/Contribute/Form/Contribution/AuthorizeNetARB.tpl
templates/CRM/Contribute/Form/Contribution/PremiumBlock.tpl
templates/CRM/Contribute/Form/ContributionPage/AddProduct.tpl
templates/CRM/Contribute/Form/ContributionPage/Amount.tpl
templates/CRM/Contribute/Form/ContributionPage/Delete.tpl
templates/CRM/Contribute/Form/ContributionPage/PCP.hlp
templates/CRM/Contribute/Form/ContributionPage/Settings.tpl
templates/CRM/Contribute/Form/ContributionPage/Tab.hlp
templates/CRM/Contribute/Form/ManagePremiums.tpl
templates/CRM/Contribute/Page/ContributionType.tpl
templates/CRM/Contribute/Page/ManagePremiums.tpl
templates/CRM/Contribute/Page/Premium.tpl

index c833b299ae5afeb27b60c49e52b11dc09d943fd7..4f99a744917c53d4935d03e1bf0fd25fe7b7082a 100644 (file)
@@ -52,7 +52,7 @@
 
     {if $field.options_per_line != 0}
         <div class="crm-section {$form.$n.id}-section">
-       {* Show explanatory text for field if not in 'view' or 'preview' modes *}
+  {* Show explanatory text for field if not in 'view' or 'preview' modes *}
         {if $field.help_pre && $action neq 4 && $action neq 1028}
           &nbsp;&nbsp;<span class="description">{$field.help_pre}</span>
         {/if}
@@ -90,7 +90,7 @@
         </div>
     {else}
         <div class="crm-section {$form.$n.id}-section">
-         {* Show explanatory text for field if not in 'view' or 'preview' modes *}
+    {* Show explanatory text for field if not in 'view' or 'preview' modes *}
           {if $field.help_pre && $action neq 4 && $action neq 1028}
             &nbsp;&nbsp;<span class="description">{$field.help_pre}</span>
           {/if}
index 55a29d4b17caff4147f659e4959c99e6560c38ef..beb1688fc4ea8ab916c4568681e6008a4ad7c57b 100644 (file)
@@ -74,7 +74,7 @@
             <td>
             {if $index eq 1}
               {$form.buttons._qf_Interview_submit_orderBy.html}
-                 {/if}
+            {/if}
             </td>
           </tr>
         {/section}
@@ -295,7 +295,7 @@ function registerInterview( voterId ) {
   //carry contact related profile field data.
   var fieldName = 'field_' + voterId;
   var checkBoxFieldName = 'field[' + voterId + ']';
-  cj('[id^="'+ fieldName +'"], [id^="'+ checkBoxFieldName +'"]').each(function( ) { 
+  cj('[id^="'+ fieldName +'"], [id^="'+ checkBoxFieldName +'"]').each(function( ) {
     fldId = cj(this).attr('id');
     if (fldId.indexOf('_custom_') == -1 &&
       fldId.indexOf('_result') == -1  &&
index f2dcdc54159b4d874ab1f17da1fca0cc21ab5867..ba1224c8b8e369533c3c5fc14b18d18a13c11e2f 100755 (executable)
@@ -27,7 +27,7 @@
      <span class="element-right">{$form.buttons.html}</span>
 </div>
 
-{if $rows } 
+{if $rows }
 <p></p>
 {include file="CRM/Campaign/Form/Selector.tpl"}
 
index 1605d8b8f316d0966c22f5f6c3616e9b7dde6fd6..8aab26d86c0670edb43c361d53179b68cb98d1cf 100644 (file)
 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
 <table class="form-layout-compressed">
   <tr class="crm-campaign-task-release-form-block-surveytitle">
-    <td colspan=2> 
+    <td colspan=2>
       <div class="status">
         <div class="icon inform-icon"></div>&nbsp;{ts 1=$surveyTitle}Do you want to release respondents for '%1' ?{/ts}
-      </div> 
-    </td>      
+      </div>
+    </td>
   </tr>
 
     <tr><td colspan=2>{include file="CRM/Contact/Form/Task.tpl"}</td></tr>
index 74e497397b26ed2e218cb4b294e823c6ee594bb8..90812a583513d5415aa45a8c2d936345f0b97497 100644 (file)
-{*\r
- +--------------------------------------------------------------------+\r
- | CiviCRM version 4.3                                                |\r
- +--------------------------------------------------------------------+\r
- | Copyright CiviCRM LLC (c) 2004-2013                                |\r
- +--------------------------------------------------------------------+\r
- | This file is a part of CiviCRM.                                    |\r
- |                                                                    |\r
- | CiviCRM is free software; you can copy, modify, and distribute it  |\r
- | under the terms of the GNU Affero General Public License           |\r
- | Version 3, 19 November 2007 and the CiviCRM Licensing Exception.   |\r
- |                                                                    |\r
- | CiviCRM is distributed in the hope that it will be useful, but     |\r
- | WITHOUT ANY WARRANTY; without even the implied warranty of         |\r
- | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.               |\r
- | See the GNU Affero General Public License for more details.        |\r
- |                                                                    |\r
- | You should have received a copy of the GNU Affero General Public   |\r
- | License and the CiviCRM Licensing Exception along                  |\r
- | with this program; if not, contact CiviCRM LLC                     |\r
- | at info[AT]civicrm[DOT]org. If you have questions about the        |\r
- | GNU Affero General Public License or the licensing of CiviCRM,     |\r
- | see the CiviCRM license FAQ at http://civicrm.org/licensing        |\r
- +--------------------------------------------------------------------+\r
-*}\r
-{*\r
-Notes:\r
-- Any id's should be prefixed with civicase-audit to avoid name collisions.\r
-- The idea behind the regex_replace is that for a css selector on a field, we can make it simple by saying the convention is to use the field label, but convert to lower case and strip out all except a-z and 0-9.\r
-There's the potential for collisions (two different labels having the same shortened version), but it would be odd for the user to configure fields that way, and at most affects styling as opposed to crashing or something.\r
-- Note the whole output gets contained within a <form> with name="Report".\r
-*}\r
-<script src="{$config->resourceBase}js/Audit/audit.js" type="text/javascript"></script>\r
-<link rel="stylesheet" type="text/css" href="{$config->resourceBase}css/Audit/style.css" />\r
-<input type="hidden" name="currentSelection" value="1" />\r
-\r
-<table class = "form-layout">\r
-<tr>\r
-   <td colspan=2>\r
-    &nbsp;<input type="button" accesskey="P" value="Print Report" name="case_report" onClick="printReport({$caseId}, this );"/>&nbsp;&nbsp;\r
-    &nbsp;<input type="button" accesskey="B" value="Back to Case" name="back" onClick="printReport({$caseId}, this );"/>&nbsp;&nbsp;\r
-   </td>\r
-</tr>\r
-<tr>\r
-<td>\r
-<div id="civicase-audit">\r
-<table><tr><td class="leftpane">\r
-<table class="report">\r
-<tr class="columnheader-dark">\r
-<th>&nbsp;</th>\r
-<th>{ts}Description{/ts}</th>\r
-</tr>\r
-{foreach from=$activities item=activity name=activityloop}\r
-<tr class="activity{if $smarty.foreach.activityloop.first} selected{/if}" id="civicase-audit-activity-{$smarty.foreach.activityloop.iteration}">\r
-  <td class="indicator">\r
-    {if $activity.completed}\r
-    <img src="{$config->resourceBase}i/spacer.gif" width="20" height="20">\r
-    {else}\r
-    <a href="#" onclick="selectActivity({$smarty.foreach.activityloop.iteration}); return false;">\r
-    <img src="{$config->resourceBase}i/contribute/incomplete.gif" width="20" height="20" alt="{ts}Incomplete{/ts}" title="{ts}Incomplete{/ts}">\r
-    </a>\r
-    {/if}\r
-  </td>\r
-  <td>\r
-  <a href="#" onclick="selectActivity({$smarty.foreach.activityloop.iteration}); return false;">\r
-  {foreach from=$activity.leftpane item=field name=fieldloop}\r
-    <span class="civicase-audit-{$field.label|lower|regex_replace:'/[^a-z0-9]+/':''} {$field.datatype}">\r
-    {if $field.datatype == 'File'}<a href="{$field.value|escape}">{/if}\r
-    {if $field.datatype == 'Date'}\r
-      {if $field.includeTime}\r
-        {$field.value|escape|replace:'T':' '|crmDate}\r
-      {else}\r
-        {$field.value|escape|truncate:10:'':true|crmDate}\r
-      {/if}\r
-    {else}\r
-      {$field.value|escape}\r
-    {/if}\r
-    {if $field.datatype == 'File'}</a>{/if}\r
-    </span><br>\r
-  {/foreach}\r
-  </a>\r
-  </td>\r
-</tr>\r
-{/foreach}\r
-</table>\r
-</td>\r
-<td class="separator">&nbsp;</td>\r
-<td class="rightpane">\r
-  <div class="rightpaneheader">\r
-  {foreach from=$activities item=activity name=activityloop}\r
-    <div class="activityheader" id="civicase-audit-header-{$smarty.foreach.activityloop.iteration}">\r
-    <div class="auditmenu">\r
-      <span class="editlink"><a target="editauditwin" href="{$activity.editurl}">{ts}Edit{/ts}</a></span>\r
-      </div>\r
-    {foreach from=$activity.rightpaneheader item=field name=fieldloop}\r
-      <div class="civicase-audit-{$field.label|lower|regex_replace:'/[^a-z0-9]+/':''}">\r
-      <label>{$field.label|escape}</label>\r
-      <span class="{$field.datatype}">{if $field.datatype == 'File'}<a href="{$field.value|escape}">{/if}\r
-      {if $field.datatype == 'Date'}\r
-        {if $field.includeTime}\r
-          {$field.value|escape|replace:'T':' '|crmDate}\r
-        {else}\r
-          {$field.value|escape|truncate:10:'':true|crmDate}\r
-        {/if}\r
-      {else}\r
-        {$field.value|escape}\r
-      {/if}\r
-      {if $field.datatype == 'File'}</a>{/if}\r
-      </span>\r
-      </div>\r
-    {/foreach}\r
-    </div>\r
-  {/foreach}\r
-  </div>\r
-  <div class="rightpanebody">\r
-  {foreach from=$activities item=activity name=activityloop}\r
-    <div class="activitybody" id="civicase-audit-body-{$smarty.foreach.activityloop.iteration}">\r
-    {foreach from=$activity.rightpanebody item=field name=fieldloop}\r
-      <div class="civicase-audit-{$field.label|lower|regex_replace:'/[^a-z0-9]+/':''}">\r
-      <label>{$field.label|escape}</label>\r
-      <span class="{$field.datatype}">{if $field.datatype == 'File'}<a href="{$field.value|escape}">{/if}\r
-      {if $field.datatype == 'Date'}\r
-        {if $field.includeTime}\r
-          {$field.value|escape|replace:'T':' '|crmDate}\r
-        {else}\r
-          {$field.value|escape|truncate:10:'':true|crmDate}\r
-        {/if}\r
-            {elseif $field.label eq 'Details'}\r
-                {$field.value}\r
-      {else}\r
-        {$field.value|escape}\r
-      {/if}\r
-      {if $field.datatype == 'File'}</a>{/if}\r
-      </span>\r
-      </div>\r
-    {/foreach}\r
-    </div>\r
-  {/foreach}\r
-  </div>\r
-</td></tr></table>\r
-</div>\r
-</td>\r
-</tr>\r
-<tr>\r
-   <td colspan=2>\r
-    &nbsp;<input type="button" accesskey="P" value="Print Report" name="case_report" onclick="printReport({$caseId}, this );"/>&nbsp;&nbsp;\r
-    &nbsp;<input type="button" accesskey="B" value="Back to Case" name="back" onClick="printReport({$caseId}, this );"/>&nbsp;&nbsp;\r
-   </td>\r
-</tr>\r
-</table>\r
-{literal}\r
-<script type="text/javascript">\r
- function printReport( id, button ) {\r
-\r
-       if ( button.name == 'case_report' ) {\r
-            var dataUrl = {/literal}"{crmURL p='civicrm/case/report/print' h=0 q='caseID='}"{literal}+id;\r
-            dataUrl     = dataUrl + '&cid={/literal}{$clientID}{literal}'+'&asn={/literal}{$activitySetName}{literal}';\r
-            var redact  = '{/literal}{$_isRedact}{literal}'\r
-\r
-            var isRedact = 1;\r
-            if ( redact == 'false' ) {\r
-                 isRedact = 0;\r
-            }\r
-\r
-            var includeActivities = '{/literal}{$includeActivities}{literal}';\r
-            var all = 0;\r
-            if( includeActivities == 'All' ) {\r
-                all = 1;\r
-            }\r
-\r
-            dataUrl = dataUrl + '&redact='+isRedact + '&all='+ all;\r
-\r
-       } else {\r
-\r
-          var dataUrl = {/literal}"{crmURL p='civicrm/contact/view/case' h=0 q='reset=1&action=view&id='}"{literal}+id;\r
-          dataUrl     = dataUrl + '&cid={/literal}{$clientID}{literal}'+'&selectedChild=case';\r
-       }\r
-\r
-       window.location =  dataUrl;\r
-}\r
-</script>\r
-{/literal}\r
+{*
+ +--------------------------------------------------------------------+
+ | CiviCRM version 4.3                                                |
+ +--------------------------------------------------------------------+
+ | Copyright CiviCRM LLC (c) 2004-2013                                |
+ +--------------------------------------------------------------------+
+ | This file is a part of CiviCRM.                                    |
+ |                                                                    |
+ | CiviCRM is free software; you can copy, modify, and distribute it  |
+ | under the terms of the GNU Affero General Public License           |
+ | Version 3, 19 November 2007 and the CiviCRM Licensing Exception.   |
+ |                                                                    |
+ | CiviCRM is distributed in the hope that it will be useful, but     |
+ | WITHOUT ANY WARRANTY; without even the implied warranty of         |
+ | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.               |
+ | See the GNU Affero General Public License for more details.        |
+ |                                                                    |
+ | You should have received a copy of the GNU Affero General Public   |
+ | License and the CiviCRM Licensing Exception along                  |
+ | with this program; if not, contact CiviCRM LLC                     |
+ | at info[AT]civicrm[DOT]org. If you have questions about the        |
+ | GNU Affero General Public License or the licensing of CiviCRM,     |
+ | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
+ +--------------------------------------------------------------------+
+*}
+{*
+Notes:
+- Any id's should be prefixed with civicase-audit to avoid name collisions.
+- The idea behind the regex_replace is that for a css selector on a field, we can make it simple by saying the convention is to use the field label, but convert to lower case and strip out all except a-z and 0-9.
+There's the potential for collisions (two different labels having the same shortened version), but it would be odd for the user to configure fields that way, and at most affects styling as opposed to crashing or something.
+- Note the whole output gets contained within a <form> with name="Report".
+*}
+<script src="{$config->resourceBase}js/Audit/audit.js" type="text/javascript"></script>
+<link rel="stylesheet" type="text/css" href="{$config->resourceBase}css/Audit/style.css" />
+<input type="hidden" name="currentSelection" value="1" />
+
+<table class = "form-layout">
+<tr>
+   <td colspan=2>
+    &nbsp;<input type="button" accesskey="P" value="Print Report" name="case_report" onClick="printReport({$caseId}, this );"/>&nbsp;&nbsp;
+    &nbsp;<input type="button" accesskey="B" value="Back to Case" name="back" onClick="printReport({$caseId}, this );"/>&nbsp;&nbsp;
+   </td>
+</tr>
+<tr>
+<td>
+<div id="civicase-audit">
+<table><tr><td class="leftpane">
+<table class="report">
+<tr class="columnheader-dark">
+<th>&nbsp;</th>
+<th>{ts}Description{/ts}</th>
+</tr>
+{foreach from=$activities item=activity name=activityloop}
+<tr class="activity{if $smarty.foreach.activityloop.first} selected{/if}" id="civicase-audit-activity-{$smarty.foreach.activityloop.iteration}">
+  <td class="indicator">
+    {if $activity.completed}
+    <img src="{$config->resourceBase}i/spacer.gif" width="20" height="20">
+    {else}
+    <a href="#" onclick="selectActivity({$smarty.foreach.activityloop.iteration}); return false;">
+    <img src="{$config->resourceBase}i/contribute/incomplete.gif" width="20" height="20" alt="{ts}Incomplete{/ts}" title="{ts}Incomplete{/ts}">
+    </a>
+    {/if}
+  </td>
+  <td>
+  <a href="#" onclick="selectActivity({$smarty.foreach.activityloop.iteration}); return false;">
+  {foreach from=$activity.leftpane item=field name=fieldloop}
+    <span class="civicase-audit-{$field.label|lower|regex_replace:'/[^a-z0-9]+/':''} {$field.datatype}">
+    {if $field.datatype == 'File'}<a href="{$field.value|escape}">{/if}
+    {if $field.datatype == 'Date'}
+      {if $field.includeTime}
+        {$field.value|escape|replace:'T':' '|crmDate}
+      {else}
+        {$field.value|escape|truncate:10:'':true|crmDate}
+      {/if}
+    {else}
+      {$field.value|escape}
+    {/if}
+    {if $field.datatype == 'File'}</a>{/if}
+    </span><br>
+  {/foreach}
+  </a>
+  </td>
+</tr>
+{/foreach}
+</table>
+</td>
+<td class="separator">&nbsp;</td>
+<td class="rightpane">
+  <div class="rightpaneheader">
+  {foreach from=$activities item=activity name=activityloop}
+    <div class="activityheader" id="civicase-audit-header-{$smarty.foreach.activityloop.iteration}">
+    <div class="auditmenu">
+      <span class="editlink"><a target="editauditwin" href="{$activity.editurl}">{ts}Edit{/ts}</a></span>
+      </div>
+    {foreach from=$activity.rightpaneheader item=field name=fieldloop}
+      <div class="civicase-audit-{$field.label|lower|regex_replace:'/[^a-z0-9]+/':''}">
+      <label>{$field.label|escape}</label>
+      <span class="{$field.datatype}">{if $field.datatype == 'File'}<a href="{$field.value|escape}">{/if}
+      {if $field.datatype == 'Date'}
+        {if $field.includeTime}
+          {$field.value|escape|replace:'T':' '|crmDate}
+        {else}
+          {$field.value|escape|truncate:10:'':true|crmDate}
+        {/if}
+      {else}
+        {$field.value|escape}
+      {/if}
+      {if $field.datatype == 'File'}</a>{/if}
+      </span>
+      </div>
+    {/foreach}
+    </div>
+  {/foreach}
+  </div>
+  <div class="rightpanebody">
+  {foreach from=$activities item=activity name=activityloop}
+    <div class="activitybody" id="civicase-audit-body-{$smarty.foreach.activityloop.iteration}">
+    {foreach from=$activity.rightpanebody item=field name=fieldloop}
+      <div class="civicase-audit-{$field.label|lower|regex_replace:'/[^a-z0-9]+/':''}">
+      <label>{$field.label|escape}</label>
+      <span class="{$field.datatype}">{if $field.datatype == 'File'}<a href="{$field.value|escape}">{/if}
+      {if $field.datatype == 'Date'}
+        {if $field.includeTime}
+          {$field.value|escape|replace:'T':' '|crmDate}
+        {else}
+          {$field.value|escape|truncate:10:'':true|crmDate}
+        {/if}
+            {elseif $field.label eq 'Details'}
+                {$field.value}
+      {else}
+        {$field.value|escape}
+      {/if}
+      {if $field.datatype == 'File'}</a>{/if}
+      </span>
+      </div>
+    {/foreach}
+    </div>
+  {/foreach}
+  </div>
+</td></tr></table>
+</div>
+</td>
+</tr>
+<tr>
+   <td colspan=2>
+    &nbsp;<input type="button" accesskey="P" value="Print Report" name="case_report" onclick="printReport({$caseId}, this );"/>&nbsp;&nbsp;
+    &nbsp;<input type="button" accesskey="B" value="Back to Case" name="back" onClick="printReport({$caseId}, this );"/>&nbsp;&nbsp;
+   </td>
+</tr>
+</table>
+{literal}
+<script type="text/javascript">
+ function printReport( id, button ) {
+
+       if ( button.name == 'case_report' ) {
+            var dataUrl = {/literal}"{crmURL p='civicrm/case/report/print' h=0 q='caseID='}"{literal}+id;
+            dataUrl     = dataUrl + '&cid={/literal}{$clientID}{literal}'+'&asn={/literal}{$activitySetName}{literal}';
+            var redact  = '{/literal}{$_isRedact}{literal}'
+
+            var isRedact = 1;
+            if ( redact == 'false' ) {
+                 isRedact = 0;
+            }
+
+            var includeActivities = '{/literal}{$includeActivities}{literal}';
+            var all = 0;
+            if( includeActivities == 'All' ) {
+                all = 1;
+            }
+
+            dataUrl = dataUrl + '&redact='+isRedact + '&all='+ all;
+
+       } else {
+
+          var dataUrl = {/literal}"{crmURL p='civicrm/contact/view/case' h=0 q='reset=1&action=view&id='}"{literal}+id;
+          dataUrl     = dataUrl + '&cid={/literal}{$clientID}{literal}'+'&selectedChild=case';
+       }
+
+       window.location =  dataUrl;
+}
+</script>
+{/literal}
index 102e6fb714bc43790cbed05593a985b84be04779..8fc01ac2669767ba810fb37efbd4727968191f98 100644 (file)
-{*\r
- +--------------------------------------------------------------------+\r
- | CiviCRM version 4.3                                                |\r
- +--------------------------------------------------------------------+\r
- | Copyright CiviCRM LLC (c) 2004-2013                                |\r
- +--------------------------------------------------------------------+\r
- | This file is a part of CiviCRM.                                    |\r
- |                                                                    |\r
- | CiviCRM is free software; you can copy, modify, and distribute it  |\r
- | under the terms of the GNU Affero General Public License           |\r
- | Version 3, 19 November 2007 and the CiviCRM Licensing Exception.   |\r
- |                                                                    |\r
- | CiviCRM is distributed in the hope that it will be useful, but     |\r
- | WITHOUT ANY WARRANTY; without even the implied warranty of         |\r
- | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.               |\r
- | See the GNU Affero General Public License for more details.        |\r
- |                                                                    |\r
- | You should have received a copy of the GNU Affero General Public   |\r
- | License and the CiviCRM Licensing Exception along                  |\r
- | with this program; if not, contact CiviCRM LLC                     |\r
- | at info[AT]civicrm[DOT]org. If you have questions about the        |\r
- | GNU Affero General Public License or the licensing of CiviCRM,     |\r
- | see the CiviCRM license FAQ at http://civicrm.org/licensing        |\r
- +--------------------------------------------------------------------+\r
-*}\r
-{* CiviCase DashBoard (launch page) *}\r
-\r
-<div class="crm-block crm-content-block">\r
-{if $notConfigured} {* Case types not present. Component is not configured for use. *}\r
-    {include file="CRM/Case/Page/ConfigureError.tpl"}\r
-{else}\r
-\r
-{capture assign=newCaseURL}{crmURL p="civicrm/case/add" q="action=add&context=standalone&reset=1"}{/capture}\r
-\r
-<div class="crm-submit-buttons crm-case-dashboard-buttons">\r
-    {if $newClient and $allowToAddNewCase}\r
-      <a href="{$newCaseURL}" class="button"><span><div class="icon add-icon"></div> {ts}Add Case{/ts}</span></a>\r
-    {/if}\r
-    <a class="button" name="find_my_cases" href="{crmURL p="civicrm/case/search" q="reset=1&case_owner=2&force=1"}"><span>{ts}Find My Cases{/ts}</span></a>\r
-\r
-    <div class="crm-case-dashboard-switch-view-buttons">\r
-        {if $myCases}\r
-            {* check for access all cases and activities *}\r
-            {if call_user_func(array('CRM_Core_Permission','check'), 'access all cases and activities')}\r
-                <div><input name="allupcoming" type="radio" class="radio" onClick='window.location.replace("{crmURL p="civicrm/case" q="reset=1&all=1"}")' value="1"><span>{ts}All Cases with Upcoming Activities{/ts}</span></input></div>\r
-                <div><input name="allupcoming" checked type="radio" class="radio" onClick='window.location.replace("{crmURL p="civicrm/case" q="reset=1&all=0"}")' value="0"><span>{ts}My Cases with Upcoming Activities{/ts}</span></input></div>\r
-            {/if}\r
-        {else}\r
-                <div><input name="allupcoming" checked type="radio" class="radio" onClick='window.location.replace("{crmURL p="civicrm/case" q="reset=1&all=1"}")' value="1"><span>{ts}All Cases with Upcoming Activities{/ts}</span></input></div>\r
-                <div><input name="allupcoming" type="radio" class="radio" onClick='window.location.replace("{crmURL p="civicrm/case" q="reset=1&all=0"}")' value="0"><span>{ts}My Cases with Upcoming Activities{/ts}</span></input></div>\r
-        {/if}\r
-    </div>\r
-</div>\r
-\r
-\r
-<h3>\r
-{if $myCases}\r
-  {ts}Summary of Case Involvement{/ts}\r
-{else}\r
-  {ts}Summary of All Cases{/ts}\r
-{/if}\r
-</h3>\r
-<table class="report">\r
-  <tr class="columnheader">\r
-    <th>&nbsp;</th>\r
-    {foreach from=$casesSummary.headers item=header}\r
-    <th scope="col" class="right" style="padding-right: 10px;"><a href="{$header.url}">{$header.status}</a></th>\r
-    {/foreach}\r
-  </tr>\r
-  {foreach from=$casesSummary.rows item=row key=caseType}\r
-   <tr class="crm-case-caseStatus">\r
-   <th><strong>{$caseType}</strong></th>\r
-   {foreach from=$casesSummary.headers item=header}\r
-    {assign var="caseStatus" value=$header.status}\r
-    <td class="label">\r
-    {if $row.$caseStatus}\r
-    <a class="crm-case-summary-drilldown" href="{$row.$caseStatus.url}">{$row.$caseStatus.count}</a>\r
-    {else}\r
-     0\r
-    {/if}\r
-    </td>\r
-   {/foreach}\r
-  </tr>\r
-  {/foreach}\r
-</table>\r
-{capture assign=findCasesURL}<a href="{crmURL p="civicrm/case/search" q="reset=1"}">{ts}Find Cases{/ts}</a>{/capture}\r
-\r
-<div class="spacer"></div>\r
-    <h3>{if $myCases}{ts}My Cases With Upcoming Activities{/ts}{else}{ts}All Cases With Upcoming Activities{/ts}{/if}</h3>\r
-    {if $upcomingCases}\r
-    <div class="form-item">\r
-        {include file="CRM/Case/Page/DashboardSelector.tpl" context="dashboard" list="upcoming" rows=$upcomingCases}\r
-    </div>\r
-    {else}\r
-        <div class="messages status no-popup">\r
-      {ts 1=$findCasesURL}There are no open cases with activities scheduled in the next two weeks. Use %1 to expand your search.{/ts}\r
-        </div>\r
-    {/if}\r
-\r
-<div class="spacer"></div>\r
-    <h3>{if $myCases}{ts}My Cases With Recently Performed Activities{/ts}{else}{ts}All Cases With Recently Performed Activities{/ts}{/if}</h3>\r
-    {if $recentCases}\r
-    <div class="form-item">\r
-        {include file="CRM/Case/Page/DashboardSelector.tpl" context="dashboard" list="recent" rows=$recentCases}\r
-    </div>\r
-    {else}\r
-        <div class="messages status no-popup">\r
-      {ts 1=$findCasesURL}There are no cases with activities scheduled in the past two weeks. Use %1 to expand your search.{/ts}\r
-        </div>\r
-    {/if}\r
-{/if}\r
-</div>\r
+{*
+ +--------------------------------------------------------------------+
+ | CiviCRM version 4.3                                                |
+ +--------------------------------------------------------------------+
+ | Copyright CiviCRM LLC (c) 2004-2013                                |
+ +--------------------------------------------------------------------+
+ | This file is a part of CiviCRM.                                    |
+ |                                                                    |
+ | CiviCRM is free software; you can copy, modify, and distribute it  |
+ | under the terms of the GNU Affero General Public License           |
+ | Version 3, 19 November 2007 and the CiviCRM Licensing Exception.   |
+ |                                                                    |
+ | CiviCRM is distributed in the hope that it will be useful, but     |
+ | WITHOUT ANY WARRANTY; without even the implied warranty of         |
+ | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.               |
+ | See the GNU Affero General Public License for more details.        |
+ |                                                                    |
+ | You should have received a copy of the GNU Affero General Public   |
+ | License and the CiviCRM Licensing Exception along                  |
+ | with this program; if not, contact CiviCRM LLC                     |
+ | at info[AT]civicrm[DOT]org. If you have questions about the        |
+ | GNU Affero General Public License or the licensing of CiviCRM,     |
+ | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
+ +--------------------------------------------------------------------+
+*}
+{* CiviCase DashBoard (launch page) *}
+
+<div class="crm-block crm-content-block">
+{if $notConfigured} {* Case types not present. Component is not configured for use. *}
+    {include file="CRM/Case/Page/ConfigureError.tpl"}
+{else}
+
+{capture assign=newCaseURL}{crmURL p="civicrm/case/add" q="action=add&context=standalone&reset=1"}{/capture}
+
+<div class="crm-submit-buttons crm-case-dashboard-buttons">
+    {if $newClient and $allowToAddNewCase}
+      <a href="{$newCaseURL}" class="button"><span><div class="icon add-icon"></div> {ts}Add Case{/ts}</span></a>
+    {/if}
+    <a class="button" name="find_my_cases" href="{crmURL p="civicrm/case/search" q="reset=1&case_owner=2&force=1"}"><span>{ts}Find My Cases{/ts}</span></a>
+
+    <div class="crm-case-dashboard-switch-view-buttons">
+        {if $myCases}
+            {* check for access all cases and activities *}
+            {if call_user_func(array('CRM_Core_Permission','check'), 'access all cases and activities')}
+                <div><input name="allupcoming" type="radio" class="radio" onClick='window.location.replace("{crmURL p="civicrm/case" q="reset=1&all=1"}")' value="1"><span>{ts}All Cases with Upcoming Activities{/ts}</span></input></div>
+                <div><input name="allupcoming" checked type="radio" class="radio" onClick='window.location.replace("{crmURL p="civicrm/case" q="reset=1&all=0"}")' value="0"><span>{ts}My Cases with Upcoming Activities{/ts}</span></input></div>
+            {/if}
+        {else}
+                <div><input name="allupcoming" checked type="radio" class="radio" onClick='window.location.replace("{crmURL p="civicrm/case" q="reset=1&all=1"}")' value="1"><span>{ts}All Cases with Upcoming Activities{/ts}</span></input></div>
+                <div><input name="allupcoming" type="radio" class="radio" onClick='window.location.replace("{crmURL p="civicrm/case" q="reset=1&all=0"}")' value="0"><span>{ts}My Cases with Upcoming Activities{/ts}</span></input></div>
+        {/if}
+    </div>
+</div>
+
+
+<h3>
+{if $myCases}
+  {ts}Summary of Case Involvement{/ts}
+{else}
+  {ts}Summary of All Cases{/ts}
+{/if}
+</h3>
+<table class="report">
+  <tr class="columnheader">
+    <th>&nbsp;</th>
+    {foreach from=$casesSummary.headers item=header}
+    <th scope="col" class="right" style="padding-right: 10px;"><a href="{$header.url}">{$header.status}</a></th>
+    {/foreach}
+  </tr>
+  {foreach from=$casesSummary.rows item=row key=caseType}
+   <tr class="crm-case-caseStatus">
+   <th><strong>{$caseType}</strong></th>
+   {foreach from=$casesSummary.headers item=header}
+    {assign var="caseStatus" value=$header.status}
+    <td class="label">
+    {if $row.$caseStatus}
+    <a class="crm-case-summary-drilldown" href="{$row.$caseStatus.url}">{$row.$caseStatus.count}</a>
+    {else}
+     0
+    {/if}
+    </td>
+   {/foreach}
+  </tr>
+  {/foreach}
+</table>
+{capture assign=findCasesURL}<a href="{crmURL p="civicrm/case/search" q="reset=1"}">{ts}Find Cases{/ts}</a>{/capture}
+
+<div class="spacer"></div>
+    <h3>{if $myCases}{ts}My Cases With Upcoming Activities{/ts}{else}{ts}All Cases With Upcoming Activities{/ts}{/if}</h3>
+    {if $upcomingCases}
+    <div class="form-item">
+        {include file="CRM/Case/Page/DashboardSelector.tpl" context="dashboard" list="upcoming" rows=$upcomingCases}
+    </div>
+    {else}
+        <div class="messages status no-popup">
+      {ts 1=$findCasesURL}There are no open cases with activities scheduled in the next two weeks. Use %1 to expand your search.{/ts}
+        </div>
+    {/if}
+
+<div class="spacer"></div>
+    <h3>{if $myCases}{ts}My Cases With Recently Performed Activities{/ts}{else}{ts}All Cases With Recently Performed Activities{/ts}{/if}</h3>
+    {if $recentCases}
+    <div class="form-item">
+        {include file="CRM/Case/Page/DashboardSelector.tpl" context="dashboard" list="recent" rows=$recentCases}
+    </div>
+    {else}
+        <div class="messages status no-popup">
+      {ts 1=$findCasesURL}There are no cases with activities scheduled in the past two weeks. Use %1 to expand your search.{/ts}
+        </div>
+    {/if}
+{/if}
+</div>
index 99d46c76f54424009310f76af064999871b7c325..003946fd04b8ab80254f0d03a3ed14b1cc71b03e 100644 (file)
 {/if}
 
 {if $rows}
-       <div class="crm-results-block">
+  <div class="crm-results-block">
     {* Search request has returned 1 or more matching rows. Display results and collapse the search criteria fieldset. *}
         {* This section handles form elements for action task select and submit *}
        <div class="crm-search-tasks">
         {include file="CRM/Contact/Form/Search/ResultTasks.tpl"}
-               </div>
+    </div>
         {* This section displays the rows along and includes the paging controls *}
-           <div class="crm-search-results">
+      <div class="crm-search-results">
 
         {include file="CRM/common/pager.tpl" location="top"}
 
index af1ba9c52c15369d70b7bb5a41f79a9426c180b7..114784326db46e10e7b28ed0f9b1a04b3bcb3f15 100644 (file)
@@ -68,9 +68,9 @@
                 {/foreach}
             </table>
             {/strip}
-           {if !$table and $summary.addShowAllLink.Contact}<div class="crm-section full-text-view-all-section"><a href="{crmURL p='civicrm/contact/search/custom' q="csid=`$csID`&reset=1&force=1&table=Contact&text=$text"}" title="{ts}View all results for contacts{/ts}">&raquo;&nbsp;{ts}View all results for contacts{/ts}</a></div>{/if}
-           {* note we using location="below" because we don't want to use rows per page for now. And therefore don't put location="bottom" for now. *}
-           {if $table}{include file="CRM/common/pager.tpl" location="below"}{/if}
+      {if !$table and $summary.addShowAllLink.Contact}<div class="crm-section full-text-view-all-section"><a href="{crmURL p='civicrm/contact/search/custom' q="csid=`$csID`&reset=1&force=1&table=Contact&text=$text"}" title="{ts}View all results for contacts{/ts}">&raquo;&nbsp;{ts}View all results for contacts{/ts}</a></div>{/if}
+      {* note we using location="below" because we don't want to use rows per page for now. And therefore don't put location="bottom" for now. *}
+      {if $table}{include file="CRM/common/pager.tpl" location="below"}{/if}
     {* END Actions/Results section *}
 </div>
 {/if}
                 {/foreach}
             </table>
             {/strip}
-           {if !$table and $summary.addShowAllLink.Activity}<div class="crm-section full-text-view-all-section"><a href="{crmURL p='civicrm/contact/search/custom' q="csid=`$csID`&reset=1&force=1&table=Activity&text=$text"}" title="{ts}View all results for activities{/ts}">&raquo;&nbsp;{ts}View all results for activities{/ts}</a></div>{/if}
+      {if !$table and $summary.addShowAllLink.Activity}<div class="crm-section full-text-view-all-section"><a href="{crmURL p='civicrm/contact/search/custom' q="csid=`$csID`&reset=1&force=1&table=Activity&text=$text"}" title="{ts}View all results for activities{/ts}">&raquo;&nbsp;{ts}View all results for activities{/ts}</a></div>{/if}
             {if $table}{include file="CRM/common/pager.tpl" location="below"}{/if}
     {* END Actions/Results section *}
 </div>
                         <td>{$row.case_end_date|crmDate:"%b %d, %Y %l:%M %P"}</td>
                         <td>{$row.case_id}</td>
                         {if $row.case_is_deleted}
-                           <td><a href="{crmURL p='civicrm/contact/view/case' q="reset=1&id=`$row.case_id`&cid=`$row.contact_id`&action=renew&context=fulltext&key=`$qfKey`"}">{ts}Restore Case{/ts}</a></td>
-                       {else}
-                           <td><a href="{crmURL p='civicrm/contact/view/case' q="reset=1&id=`$row.case_id`&cid=`$row.contact_id`&action=view&context=fulltext&key=`$qfKey`"}">{ts}Manage{/ts}</a></td>
-                       {/if}
+          <td><a href="{crmURL p='civicrm/contact/view/case' q="reset=1&id=`$row.case_id`&cid=`$row.contact_id`&action=renew&context=fulltext&key=`$qfKey`"}">{ts}Restore Case{/ts}</a></td>
+      {else}
+          <td><a href="{crmURL p='civicrm/contact/view/case' q="reset=1&id=`$row.case_id`&cid=`$row.contact_id`&action=view&context=fulltext&key=`$qfKey`"}">{ts}Manage{/ts}</a></td>
+      {/if}
                         <td class="start_date hiddenElement">{$row.case_start_date|crmDate}</td>
                         <td class="end_date hiddenElement">{$row.case_end_date|crmDate}</td>
                     </tr>
                 {/foreach}
             </table>
             {/strip}
-           {if !$table and $summary.addShowAllLink.Case}<div class="crm-section full-text-view-all-section"><a href="{crmURL p='civicrm/contact/search/custom' q="csid=`$csID`&reset=1&force=1&table=Case&text=$text"}" title="{ts}View all results for cases{/ts}">&raquo;&nbsp;{ts}View all results for cases{/ts}</a></div>{/if}
+      {if !$table and $summary.addShowAllLink.Case}<div class="crm-section full-text-view-all-section"><a href="{crmURL p='civicrm/contact/search/custom' q="csid=`$csID`&reset=1&force=1&table=Case&text=$text"}" title="{ts}View all results for cases{/ts}">&raquo;&nbsp;{ts}View all results for cases{/ts}</a></div>{/if}
             {if $table}{include file="CRM/common/pager.tpl" location="below"}{/if}
     {* END Actions/Results section *}
 </div>
                 {/foreach}
             </table>
             {/strip}
-           {if !$table and $summary.addShowAllLink.Contribution}<div class="crm-section full-text-view-all-section"><a href="{crmURL p='civicrm/contact/search/custom' q="csid=`$csID`&reset=1&force=1&table=Contribution&text=$text"}" title="{ts}View all results for contributions{/ts}">&raquo;&nbsp;{ts}View all results for contributions{/ts}</a></div>{/if}
+      {if !$table and $summary.addShowAllLink.Contribution}<div class="crm-section full-text-view-all-section"><a href="{crmURL p='civicrm/contact/search/custom' q="csid=`$csID`&reset=1&force=1&table=Contribution&text=$text"}" title="{ts}View all results for contributions{/ts}">&raquo;&nbsp;{ts}View all results for contributions{/ts}</a></div>{/if}
             {if $table}{include file="CRM/common/pager.tpl" location="below"}{/if}
     {* END Actions/Results section *}
 </div>
                 {/foreach}
             </table>
             {/strip}
-           {if !$table and $summary.addShowAllLink.Participant}<div class="crm-section full-text-view-all-section"><a href="{crmURL p='civicrm/contact/search/custom' q="csid=`$csID`&reset=1&force=1&table=Participant&text=$text"}" title="{ts}View all results for participants{/ts}">&raquo;&nbsp;{ts}View all results for participants{/ts}</a></div>{/if}
+      {if !$table and $summary.addShowAllLink.Participant}<div class="crm-section full-text-view-all-section"><a href="{crmURL p='civicrm/contact/search/custom' q="csid=`$csID`&reset=1&force=1&table=Participant&text=$text"}" title="{ts}View all results for participants{/ts}">&raquo;&nbsp;{ts}View all results for participants{/ts}</a></div>{/if}
             {if $table}{include file="CRM/common/pager.tpl" location="below"}{/if}
     {* END Actions/Results section *}
 </div>
                 {/foreach}
             </table>
             {/strip}
-           {if !$table and $summary.addShowAllLink.Membership}<div class="crm-section full-text-view-all-section"><a href="{crmURL p='civicrm/contact/search/custom' q="csid=`$csID`&reset=1&force=1&table=Membership&text=$text"}" title="{ts}View all results for memberships{/ts}">&raquo;&nbsp;{ts}View all results for memberships{/ts}</a></div>{/if}
+      {if !$table and $summary.addShowAllLink.Membership}<div class="crm-section full-text-view-all-section"><a href="{crmURL p='civicrm/contact/search/custom' q="csid=`$csID`&reset=1&force=1&table=Membership&text=$text"}" title="{ts}View all results for memberships{/ts}">&raquo;&nbsp;{ts}View all results for memberships{/ts}</a></div>{/if}
             {if $table}{include file="CRM/common/pager.tpl" location="below"}{/if}
     {* END Actions/Results section *}
 </div>
index 902ef3a57ad3b361983b7e2297be7805f3e8af40..265098edf4154574cbf39ae9a14a75249db6e07e 100644 (file)
@@ -23,7 +23,7 @@
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
 *}
-{* this template is used for adding/editing Additional Detail *} 
+{* this template is used for adding/editing Additional Detail *}
 {if $isOnline}{assign var=valueStyle value=" class='view-value'"}{else}{assign var=valueStyle value=""}{/if}
 <div id="id-additionalDetail" class="section-shown">
     <table class="form-layout-compressed">
@@ -33,7 +33,7 @@
             <span class="description">{ts}Non-deductible portion of this contribution.{/ts}</span></td></tr>
         <tr class="crm-contribution-form-block-fee_amount"><td class="label">{$form.fee_amount.label}</td><td{$valueStyle}>{$form.fee_amount.html|crmMoney:$currency:'XXX':'YYY'}<br />
             <span class="description">{ts}Processing fee for this transaction (if applicable).{/ts}</span></td></tr>
-        
+
         <tr class="crm-contribution-form-block-net_amount"><td class="label">{$form.net_amount.label}</td><td{$valueStyle}>{$form.net_amount.html|crmMoney:$currency:'':1}<br />
             <span class="description">{ts}Net value of the contribution (Total Amount minus Fee).{/ts}</span></td></tr>
         <tr class="crm-contribution-form-block-invoice_id"><td class="label">{$form.invoice_id.label}</td><td{$valueStyle}>{$form.invoice_id.html}<br />
@@ -41,4 +41,4 @@
         <tr class="crm-contribution-form-block-thankyou_date"><td class="label">{$form.thankyou_date.label}</td><td>{include file="CRM/common/jcalendar.tpl" elementName=thankyou_date}<br />
             <span class="description">{ts}Date that a thank-you message was sent to the contributor.{/ts}</span></td></tr>
     </table>
-</div>     
+</div>
index 3f8159cbe6dea33cc939dd0dc3d846df1ed86595..ba0ea333c8be06a7339360f41fb1f40a50372225 100644 (file)
       </creditCard>
     </payment>
    {if $invoiceNumber}
-   <order>  
+   <order>
      <invoiceNumber>{$invoiceNumber}</invoiceNumber>
      {if $name}<description>{$name}</description>{/if}
    </order>
-   {/if}  
+   {/if}
     <customer>
       <id>{$contactID}</id>
       <email>{$email}</email>
index 255a8146ab233619591350e195b736e88d5fe4fc..a03d5f42dd3f0f5e667101709cab0053d0650bed 100644 (file)
@@ -33,7 +33,7 @@
       {if $premiumBlock.premiums_intro_text}
         <div id="premiums-intro" class="crm-section premiums_intro-section">
           {$premiumBlock.premiums_intro_text}
-        </div> 
+        </div>
       {/if}
     {/if}
 
@@ -63,7 +63,7 @@
             <input type="checkbox" checked="checked" disabled="disabled" /> {$premiumBlock.premiums_nothankyou_label}
           </div>
         </div>
-      {/if}          
+      {/if}
       {foreach from=$products item=row}
         <div class="premium {if $showPremium}premium-selectable{/if}" id="premium_id-{$row.id}" min_contribution="{$row.min_contribution}">
           <div class="premium-short">
@@ -92,7 +92,7 @@
                 {/if}
               {else}
                 <div class="premium-full-options">
-                  <p><strong>{$row.options}</strong></p> 
+                  <p><strong>{$row.options}</strong></p>
                 </div>
               {/if}
               {if ( ($premiumBlock.premiums_display_min_contribution AND $context EQ "makeContribution") OR $preview EQ 1) AND $row.min_contribution GT 0 }
             <input type="checkbox" checked="checked" disabled="disabled" /> {$premiumBlock.premiums_nothankyou_label}
           </div>
         </div>
-      {/if}          
+      {/if}
       </div>
     {/strip}
 
       </div>
     {/if}
   </div>
-  
+
   {if $context EQ "makeContribution"}
     {literal}
-    <script> 
+    <script>
       cj(function($){
         var is_separate_payment = {/literal}{if $membershipBlock.is_separate_payment}{$membershipBlock.is_separate_payment}{else}0{/if}{literal};
 
         // select a new premium
-        function select_premium(premium_id) { 
+        function select_premium(premium_id) {
           if(cj(premium_id).length) {
             // hide other active premium
             cj('.premium-full').hide();
           check_price_set('.contribution_amount-content input[type="radio"]');
 
           // next, check for membership level price set
-          check_price_set('.membership_amount-content input[type="radio"]'); 
+          check_price_set('.membership_amount-content input[type="radio"]');
 
           // make sure amount is a number at this point
           if(!amount) amount = 0;
           }
           return true;
         }, error_message);
-        
+
         // add validation rules
         CRM.validate.functions.push(function(){
           cj('#selectProduct').rules('add', 'premiums');
         });
-        
+
         // need to use jquery validate's ignore option, so that it will not ignore hidden fields
         CRM.validate.params['ignore'] = '.ignore';
       });
index c707f064a70c8b639d0e657517d1de0ebd37f51e..f492a48d13d9ad6d589eb1954591fba9902442cc 100644 (file)
       <td class="label">{$form.financial_type_id.label}</td>
       <td>
       {if !$financialType }
-                   {capture assign=ftUrl}{crmURL p='civicrm/admin/financial/financialType' q="reset=1"}{/capture}
+        {capture assign=ftUrl}{crmURL p='civicrm/admin/financial/financialType' q="reset=1"}{/capture}
         {ts 1=$ftUrl}There are no financial types configured with linked 'Cost of Sales Premiums' and 'Premiums Inventory Account' accounts. If you want to generate accounting transactions which track the cost of premiums used <a href='%1'>click here</a> to configure financial types and accounts.{/ts}
-           {else}              
+      {else}
         {$form.financial_type_id.html}{help id="id-financial_type-product"}
-      {/if}            
+      {/if}
       </td>
     </tr>
     <tr class="crm-contribution-form-block-weight"><td class="label">{$form.weight.label}</td><td class="html-adjust">{$form.weight.html}<br />
 function getFinancialType()
 {
 {/literal}
-        productID         = "#product_id";
-        financialTypeID    = "#financial_type_id"       
-        callbackURL        = "{crmURL p='civicrm/ajax/rest' h=0 q='className=CRM_Financial_Page_AJAX&fnName=jqFinancialType'}" 
+   productID         = "#product_id";
+   financialTypeID    = "#financial_type_id"
+   callbackURL        = "{crmURL p='civicrm/ajax/rest' h=0 q='className=CRM_Financial_Page_AJAX&fnName=jqFinancialType'}"
 {literal}
-            
-           var check          = cj(productID).val();
-               callbackURL = callbackURL+"&_value="+check;
+
+          var check          = cj(productID).val();
+          callbackURL = callbackURL+"&_value="+check;
                 cj.ajax({
                          url: callbackURL,
                          context: document.body,
                          success: function( data, textStatus ){
-                        data = eval(data);//get json array
+       data = eval(data);//get json array
                               if ( data != null ) {
-                              cj(financialTypeID).val(data);
-                                
-                            }
-                           
-                       }
-               });
-               
-       }
+             cj(financialTypeID).val(data);
+
+           }
+
+      }
+           });
+
+  }
 
-cj(document).ready(function(){ 
-               getFinancialType(); 
+cj(document).ready(function(){
+    getFinancialType();
 
-               cj("#product_id").change( function(){
-                          getFinancialType(); 
-               });                 
-});    
+    cj("#product_id").change( function(){
+         getFinancialType();
+    });
+});
 {/literal}
 </script>
\ No newline at end of file
index bf0bbd0a3e21bbf62de53cbede5992f571ddb80c..fbf0e0ca0416552d08292a6b9e79fb77d28c943f 100644 (file)
@@ -69,7 +69,7 @@
                 <tr class="crm-contribution-contributionpage-amount-form-block-pay_later_receipt"><th scope="row" class="label">{$form.pay_later_receipt.label} <span class="marker" title="This field is required.">*</span> {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contribution_page' field='pay_later_receipt' id=$contributionPageID}{/if}</th>
                 <td>{$form.pay_later_receipt.html|crmAddClass:big}<br />
                   <span class="description">{ts}Instructions added to Confirmation and Thank-you pages, as well as the confirmation email, when the user selects the 'pay later' option (e.g. 'Mail your check to ... within 3 business days.').{/ts}</span></td></tr>
-                 
+
             </table>
             </td>
         </tr>
             cj('.crm-contribution-contributionpage-amount-form-block-payment_processor input[type="checkbox"]').each(function(){
                 if(cj(this).attr('checked')) {
                     var id = cj(this).attr('id').split('_')[2];
-                   ids.push(id);
+        ids.push(id);
                 }
             });
             return ids;
   cj('#is_pay_later').click( function() {
      payLater('is_pay_later');
   });
-  
+
 
   function minMax(chkbox) {
     if (chkbox.checked) {
             cj( '#recurringContribution' ).hide( );
         }
     }
-     
+
 </script>
 {/literal}
 {if $form.is_recur}
index 9b15b562fedde5bbbd63c28ce1e03a35926db322..2907b2e85176d37f8f8df221b19db851d82bb74a 100644 (file)
@@ -30,7 +30,7 @@
            {ts 1=$title}You cannot delete this Contribution Page because it has already been used to submit a contribution or membership payment. It is recommended that your disable the page instead of deleting it, to preserve the integrity of your contribution records. If you do want to completely delete this contribution page, you first need to search for and delete all of the contribution transactions associated with this page in CiviContribute.{/ts}
           {else}
            WARNING: Are you sure you want to Delete the selected Contribution Page? A Delete operation cannot be undone. Do you want to continue?
-        {/if} 
+        {/if}
       </div>
 <div class="form-item">
     {include file="CRM/common/formButtons.tpl"}
index 7b7d2943b4c7844ea760a95f2d9c6e0b3f561247..c737c54f2fe86539502ce509581a46d1eefa3c3e 100644 (file)
@@ -50,7 +50,7 @@
 {htxt id="id-notify"}
 <p>{ts}Notification will be sent to this email address whenever a Personal Campaign Page linked to this contribution page is either created or updated. The notification will include links to view the campaign page as well as the contact record of the creator of the page.{/ts}</p>
 <p>{ts}If you want Administrator of your organization to receive each PCP Notification receipt, enter one or more email addresses here. Multiple email addresses should be separated by a comma (e.g. jane@example.org, paula@example.org) First Email will be sent to PCP user for support.{/ts}</p>
-{/htxt}   
+{/htxt}
 
 {htxt id="id-supporter_profile-title"}
   {ts}Supporter Profile{/ts}
index a801e1502b27ddb890810d3347188559e0c0cba1..be57daafea1f4644b46e1e29c02ae012fcc19566 100644 (file)
@@ -38,7 +38,7 @@
   <tr class="crm-contribution-contributionpage-settings-form-block-title"><td class="label">{$form.title.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contribution_page' field='title' id=$contributionPageID}{/if}</td><td>{$form.title.html}<br/>
             <span class="description">{ts}This title will be displayed at the top of the page.<br />Please use only alphanumeric, spaces, hyphens and dashes for Title.{/ts}</td>
   </tr>
-  <tr class="crm-contribution-contributionpage-settings-form-block-financial_type_id"><td class="label">{$form.financial_type_id.label}</td><td>{$form.financial_type_id.html}<br />   
+  <tr class="crm-contribution-contributionpage-settings-form-block-financial_type_id"><td class="label">{$form.financial_type_id.label}</td><td>{$form.financial_type_id.html}<br />
             <span class="description">{ts}Select the corresponding financial type for contributions made using this page.{/ts}</span> {help id="id-financial_type"}</td>
   </tr>
 
index e032a051fdc8d5f752ced7fee3304081464c9934..5f82983753d40ec82ae72ec18b4766988ba2ed72 100644 (file)
@@ -27,7 +27,7 @@
   {ts}Contribution Page Configuration{/ts}
 {/htxt}
 {htxt id="id-configure-contrib-pages"}
-<table> 
+<table>
 <tr>
     <td><a href="{crmURL p='civicrm/admin/contribute/settings' q="reset=1&action=update&id=`$contributionPageID`"}" id="idContribPageSettings">&raquo; {ts}Title and Settings{/ts}</a></td>
     <td>{ts}Use this form to edit the page title, financial type (e.g. donation, campaign contribution, etc.), goal amount, introduction, and status (active/inactive) for this online contribution page.{/ts}</td>
index 3bec236b28340205c3a8aa1b5fe464241b2065a2..ae152c37bae59e768184447ae2aedeb28c8ca1aa 100644 (file)
          {ts 1=$ftUrl}There are no financial types configured with linked 'Cost of Sales Premiums' and 'Premiums Inventory Account' accounts. If you want to generate accounting transactions which track the cost of premiums used <a href='%1'>click here</a> to configure financial types and accounts.{/ts}
        {else}
          {$form.financial_type_id.html}<br />
-        <span class="description">{ts}Select a financial type that is linked to both a 'Cost of Sales Premiums Account' and a 'Premiums Inventory Account' if you want to generate accounting transactions to track the cost of premiums used.{/ts}</span>
+   <span class="description">{ts}Select a financial type that is linked to both a 'Cost of Sales Premiums Account' and a 'Premiums Inventory Account' if you want to generate accounting transactions to track the cost of premiums used.{/ts}</span>
        {/if}
        </td>
     </tr>
index f9fc6ad6ed57d7b05e432e0819716a3aba5d3580..5d8e3dd46c895655563624ba1aab4f51f3adccf2 100644 (file)
@@ -63,7 +63,7 @@
 
         {if $action ne 1 and $action ne 2}
       <div class="action-link">
-       <a href="{crmURL q="action=add&reset=1"}" id="newContributionType" class="button"><span><div class="icon add-icon"></div>{ts}Add Financial Type{/ts}</span></a>
+      <a href="{crmURL q="action=add&reset=1"}" id="newContributionType" class="button"><span><div class="icon add-icon"></div>{ts}Add Financial Type{/ts}</span></a>
         </div>
         {/if}
     </div>
index 2bee35b1d1566028e7e9e27fb032dfc83021b967..cea53109aaa18c5f471141d1dd73e9a9b6a8fe1f 100644 (file)
@@ -50,7 +50,7 @@
             <th id="sortable">{ts}Name{/ts}</th>
             <th>{ts}SKU{/ts}</th>
             <th>{ts}Market Value{/ts}</th>
-           <th>{ts}Financial Type{/ts}</th>
+      <th>{ts}Financial Type{/ts}</th>
             <th>{ts}Min Contribution{/ts}</th>
             <th>{ts}Active?{/ts}</th>
             <th></th>
@@ -61,7 +61,7 @@
           <td class="crm-contribution-form-block-name">{$row.name}</td>
           <td class="crm-contribution-form-block-sku">{$row.sku}</td>
                 <td class="crm-contribution-form-block-price">{$row.price }</td>
-               <td class="crm-contribution-form-block-financial_type">{$row.financial_type_id}</td>
+    <td class="crm-contribution-form-block-financial_type">{$row.financial_type_id}</td>
           <td class="crm-contribution-form-block-min_contribution">{$row.min_contribution}</td>
           <td id="row_{$row.id}_status" >{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
           <td id={$row.id}>{$row.action|replace:'xx':$row.id}</td>
index 4a7e664e6618a14cd915d4f957a13c379944887f..539d443091778ae92f7d650b979a72c7c7df3b23 100644 (file)
@@ -37,7 +37,7 @@
             <th>{ts}SKU{/ts}</th>
             <th>{ts}Market Value{/ts}</th>
             <th>{ts}Min Contribution{/ts}</th>
-           <th>{ts}Financial Type{/ts}</th>
+      <th>{ts}Financial Type{/ts}</th>
             <th>{ts}Weight{/ts}</th>
             <th></th>
         </tr>
@@ -47,7 +47,7 @@
           <td class="crm-contribution-form-block-sku">{$row.sku}</td>
           <td class="crm-contribution-form-block-price">{$row.price }</td>
           <td class="crm-contribution-form-block-min_contribution">{$row.min_contribution}</td>
-                 <td class="crm-contribution-form-block-financial_type">{$row.financial_type_id}</td>
+          <td class="crm-contribution-form-block-financial_type">{$row.financial_type_id}</td>
           <td class="nowrap crm-contribution-form-block-weight">{$row.weight}</td>
           <td class="crm-contribution-form-block-action">{$row.action}</td>
         </tr>