CRM-13155 move recur contribution search pane into subsidiary tpl
authoreileen <eileen@fuzion.co.nz>
Mon, 5 Aug 2013 02:25:31 +0000 (14:25 +1200)
committereileen <eileen@fuzion.co.nz>
Mon, 5 Aug 2013 02:25:31 +0000 (14:25 +1200)
this appears to all work. To get recurring contributions with no contributions you have to manually clear 'test' - but as this is a bit of an edge case it can stay that way for now. I expect that this will become more important with the circle extension - but not today

templates/CRM/Contribute/Form/Search/Common.tpl
templates/CRM/Contribute/Form/Search/ContributionRecur.tpl [new file with mode: 0644]

index 1cda9240622e29ced5b8f71087f360192cb734cc..5f6efab3618c3dc7515efc29d6be07214fc81b72 100644 (file)
             </span>
         </td>
       </tr>
-      <tr><td>{ts}Recurring Payments Start Date{/ts}</td>
-        <td>
-          {include file="CRM/Core/DateRange.tpl" fieldName="contribution_recur_start_date" from='_low' to='_high'}
-        </td>
-      </tr>
-      <tr>
-        <td>{ts}Recurring Contribution End Date{/ts}</td>
-        <td>
-          {include file="CRM/Core/DateRange.tpl" fieldName="contribution_recur_end_date" from='_low' to='_high'}
-        </td>
-      </tr>
-      <tr>
-        <td>{ts}Recurring Contribution Modified Date{/ts}</td>
-        <td>
-          {include file="CRM/Core/DateRange.tpl" fieldName="contribution_recur_modified_date" from='_low' to='_high'}
-        </td>
-      </tr>
-      <tr>
-        <td>{ts}Next Scheduled Recurring Contribution{/ts}</td>
-        <td>
-          {include file="CRM/Core/DateRange.tpl" fieldName="contribution_recur_next_sched_contribution_date" from='_low' to='_high'}
-        </td>
-      </tr>
-      <tr>
-        <td>{ts}Retry Failed Recurring Contribution On{/ts}</td>
-        <td>
-          {include file="CRM/Core/DateRange.tpl" fieldName="contribution_recur_failure_retry_date" from='_low' to='_high'}
-        </td>
-      </tr>
-      <tr>
-        <td>{ts}Recurring Contribution Cancel Date{/ts}</td>
-        <td>
-          {include file="CRM/Core/DateRange.tpl" fieldName="contribution_recur_cancel_date" from='_low' to='_high'}
-        </td>
-      </tr>
       </tbody>
     </table>
   </td>
 {include file="CRM/Campaign/Form/addCampaignToComponent.tpl" campaignContext="componentSearch"
 campaignTrClass='' campaignTdClass=''}
 
+<tr>
+  <td colspan="2">
+{include file="CRM/Contribute/Form/Search/ContributionRecur.tpl"}
+</tr>
+
 {if $contributeGroupTree}
 <tr>
   <td colspan="2">
diff --git a/templates/CRM/Contribute/Form/Search/ContributionRecur.tpl b/templates/CRM/Contribute/Form/Search/ContributionRecur.tpl
new file mode 100644 (file)
index 0000000..c9fb1f0
--- /dev/null
@@ -0,0 +1,72 @@
+{*
+ +--------------------------------------------------------------------+
+ | 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        |
+ +--------------------------------------------------------------------+
+*}
+
+  <div class="crm-accordion-wrapper crm-contactDetails-accordion {if $form.formName eq 'Advanced' AND $cd_edit.collapse_adv_display eq 1}collapsed{/if}" id="{$cd_edit.name}" >
+    <div class="crm-accordion-header">
+        {ts}Recurring Contributions{/ts}
+    </div>
+    <div class="crm-accordion-body">
+    <table class="form-layout-compressed">
+      <tr><td>{ts}Recurring Payments Start Date{/ts}</td>
+        <td>
+          {include file="CRM/Core/DateRange.tpl" fieldName="contribution_recur_start_date" from='_low' to='_high'}
+        </td>
+      </tr>
+      <tr>
+        <td>{ts}Recurring Contribution End Date{/ts}</td>
+        <td>
+          {include file="CRM/Core/DateRange.tpl" fieldName="contribution_recur_end_date" from='_low' to='_high'}
+        </td>
+      </tr>
+      <tr>
+        <td>{ts}Recurring Contribution Modified Date{/ts}</td>
+        <td>
+          {include file="CRM/Core/DateRange.tpl" fieldName="contribution_recur_modified_date" from='_low' to='_high'}
+        </td>
+      </tr>
+      <tr>
+        <td>{ts}Next Scheduled Recurring Contribution{/ts}</td>
+        <td>
+          {include file="CRM/Core/DateRange.tpl" fieldName="contribution_recur_next_sched_contribution_date" from='_low' to='_high'}
+        </td>
+      </tr>
+      <tr>
+        <td>{ts}Retry Failed Recurring Contribution On{/ts}</td>
+        <td>
+          {include file="CRM/Core/DateRange.tpl" fieldName="contribution_recur_failure_retry_date" from='_low' to='_high'}
+        </td>
+      </tr>
+      <tr>
+        <td>{ts}Recurring Contribution Cancel Date{/ts}</td>
+        <td>
+          {include file="CRM/Core/DateRange.tpl" fieldName="contribution_recur_cancel_date" from='_low' to='_high'}
+        </td>
+      </tr>
+     </table>
+    </div><!-- /.crm-accordion-body -->
+  </div><!-- /.crm-accordion-wrapper -->
+
+