| 1 | {* |
| 2 | +--------------------------------------------------------------------+ |
| 3 | | CiviCRM version 4.3 | |
| 4 | +--------------------------------------------------------------------+ |
| 5 | | Copyright CiviCRM LLC (c) 2004-2013 | |
| 6 | +--------------------------------------------------------------------+ |
| 7 | | This file is a part of CiviCRM. | |
| 8 | | | |
| 9 | | CiviCRM is free software; you can copy, modify, and distribute it | |
| 10 | | under the terms of the GNU Affero General Public License | |
| 11 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | |
| 12 | | | |
| 13 | | CiviCRM is distributed in the hope that it will be useful, but | |
| 14 | | WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 15 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
| 16 | | See the GNU Affero General Public License for more details. | |
| 17 | | | |
| 18 | | You should have received a copy of the GNU Affero General Public | |
| 19 | | License and the CiviCRM Licensing Exception along | |
| 20 | | with this program; if not, contact CiviCRM LLC | |
| 21 | | at info[AT]civicrm[DOT]org. If you have questions about the | |
| 22 | | GNU Affero General Public License or the licensing of CiviCRM, | |
| 23 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | |
| 24 | +--------------------------------------------------------------------+ |
| 25 | *} |
| 26 | {if !$printOnly} {* NO print section starts *} |
| 27 | {if $criteriaForm} |
| 28 | <div> {* criteria section starts *} |
| 29 | <div class="crm-accordion-wrapper crm-report_criteria-accordion {if $rows}collapsed{/if}"> |
| 30 | <div class="crm-accordion-header"> |
| 31 | {ts}Report Criteria{/ts} |
| 32 | </div><!-- /.crm-accordion-header --> |
| 33 | <div class="crm-accordion-body"> |
| 34 | <div id="id_{$formTpl}"> {* search section starts *} |
| 35 | {include file="CRM/Report/Form/Criteria.tpl"} |
| 36 | </div> {* search div section ends *} |
| 37 | </div><!-- /.crm-accordion-body --> |
| 38 | </div><!-- /.crm-accordion-wrapper --> |
| 39 | </div> {* criteria section ends *} |
| 40 | {/if} |
| 41 | |
| 42 | {if $instanceForm OR $instanceFormError} {* settings section starts *} |
| 43 | <div class="crm-accordion-wrapper crm-report_setting-accordion {if $rows}collapsed{/if}"> |
| 44 | <div class="crm-accordion-header" {if $updateReportButton} onclick="cj('#update-button').hide(); return false;" {/if} > |
| 45 | {if $mode eq 'template'}{ts}Create Report{/ts}{else}{ts}Report Settings{/ts}{/if} |
| 46 | </div><!-- /.crm-accordion-header --> |
| 47 | <div class="crm-accordion-body"> |
| 48 | <div id="id_{$instanceForm}"> |
| 49 | <div id="instanceForm"> |
| 50 | {include file="CRM/Report/Form/Instance.tpl"} |
| 51 | {assign var=save value="_qf_"|cat:$form.formName|cat:"_submit_save"} |
| 52 | {assign var=next value="_qf_"|cat:$form.formName|cat:"_submit_next"} |
| 53 | <div class="crm-submit-buttons"> |
| 54 | {$form.$save.html} |
| 55 | {if $mode neq 'template' && $form.$next} |
| 56 | {$form.$next.html} |
| 57 | {/if} |
| 58 | </div> |
| 59 | </div> |
| 60 | </div> |
| 61 | </div><!-- /.crm-accordion-body --> |
| 62 | </div><!-- /.crm-accordion-wrapper --> |
| 63 | {if $updateReportButton} |
| 64 | <div id='update-button' class="crm-submit-buttons"> |
| 65 | {$form.$save.html} |
| 66 | {if $mode neq 'template' && $form.$next} {* Removed Save a Copy button here since user doesn't have chance to set a new title. *} |
| 67 | <span class="description">{ts}To save a copy with updated criteria click Report Settings above and update the Report Title. Then click Save a Copy.{/ts}</span> |
| 68 | {/if} |
| 69 | </div> |
| 70 | {/if} |
| 71 | {/if} {* settings section ends *} |
| 72 | |
| 73 | {literal} |
| 74 | <script type="text/javascript"> |
| 75 | cj(function() { |
| 76 | cj().crmAccordions(); |
| 77 | }); |
| 78 | </script> |
| 79 | {/literal} |
| 80 | |
| 81 | {/if} {* NO print section ends *} |