Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
819d0d41 | 3 | | CiviCRM version 4.5 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
819d0d41 | 5 | | Copyright CiviCRM LLC (c) 2004-2014 | |
6a488035 TO |
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 | *} | |
841cb24e CW |
26 | <div id="report-tab-settings" class="civireport-criteria ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide"> |
27 | <h3>{ts}Display Settings{/ts}</h3> | |
6a488035 TO |
28 | <table class="form-layout"> |
29 | <tr class="crm-report-instanceForm-form-block-title"> | |
30 | <td class="report-label" width="20%">{$form.title.label} {help id="id-report_title" file="CRM/Report/Form/Settings.hlp"}</td> | |
31 | <td >{$form.title.html}</td> | |
32 | </tr> | |
33 | <tr class="crm-report-instanceForm-form-block-description"> | |
34 | <td class="report-label" width="20%">{$form.description.label}</td> | |
35 | <td>{$form.description.html}</td> | |
36 | </tr> | |
37 | <tr class="crm-report-instanceForm-form-block-report_header"> | |
38 | <td class="report-label" width="20%">{$form.report_header.label}{help id="id-report_header" file="CRM/Report/Form/Settings.hlp"}</td> | |
39 | <td>{$form.report_header.html}</td> | |
40 | </tr> | |
41 | <tr class="crm-report-instanceForm-form-block-report_footer"> | |
42 | <td class="report-label" width="20%">{$form.report_footer.label}</td> | |
43 | <td>{$form.report_footer.html}</td> | |
44 | </tr> | |
45 | </table> | |
841cb24e | 46 | </div> |
6a488035 | 47 | |
841cb24e CW |
48 | <div id="report-tab-email" class="civireport-criteria ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide"> |
49 | <h3 class="email-delivery-settings-title">{ts}Email Delivery Settings{/ts} {help id="id-email_settings" file="CRM/Report/Form/Settings.hlp"}</h3> | |
50 | <table class="form-layout email-delivery-settings-fields"> | |
6a488035 TO |
51 | <tr class="crm-report-instanceForm-form-block-email_subject"> |
52 | <td class="report-label" width="20%">{$form.email_subject.label}</td> | |
53 | <td>{$form.email_subject.html|crmAddClass:huge}</td> | |
54 | </tr> | |
55 | <tr class="crm-report-instanceForm-form-block-email_to"> | |
56 | <td class="report-label">{$form.email_to.label}</td> | |
57 | <td>{$form.email_to.html|crmAddClass:huge}</td> | |
58 | </tr> | |
59 | <tr class="crm-report-instanceForm-form-block-email_cc"> | |
60 | <td class="report-label">{$form.email_cc.label}</td> | |
61 | <td>{$form.email_cc.html|crmAddClass:huge}</td> | |
62 | </tr> | |
63 | </table> | |
841cb24e | 64 | </div> |
6a488035 | 65 | |
841cb24e CW |
66 | <div id="report-tab-other" class="civireport-criteria ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide"> |
67 | <h3>{ts}User Access{/ts}</h3> | |
6a488035 TO |
68 | <table class="form-layout"> |
69 | <tr class="crm-report-instanceForm-form-block-is_navigation"> | |
70 | <td class="report-label">{$form.is_navigation.label}</td> | |
71 | <td>{$form.is_navigation.html}<br /> | |
72 | <span class="description">{ts}All report instances are automatically included in the Report Listing page. Check this box to also add this report to the navigation menu.{/ts}</span> | |
73 | </td> | |
74 | </tr> | |
75 | <tr class="crm-report-instanceForm-form-block-parent_id" id="navigation_menu"> | |
76 | <td class="report-label">{$form.parent_id.label} {help id="id-parent" file="CRM/Admin/Form/Navigation.hlp"}</td> | |
77 | <td>{$form.parent_id.html|crmAddClass:huge}</td> | |
78 | </tr> | |
79 | <tr class="crm-report-instanceForm-form-block-drilldown"> | |
80 | <td class="report-label">{$form.drilldown_id.label}</td> | |
81 | <td>{$form.drilldown_id.html}</td> | |
82 | </tr> | |
83 | {if $config->userFramework neq 'Joomla'} | |
84 | <tr class="crm-report-instanceForm-form-block-permission"> | |
85 | <td class="report-label" width="20%">{$form.permission.label} {help id="id-report_perms" file="CRM/Report/Form/Settings.hlp"}</td> | |
86 | <td>{$form.permission.html|crmAddClass:huge}</td> | |
87 | </tr> | |
88 | <tr class="crm-report-instanceForm-form-block-role"> | |
89 | <td class="report-label" width="20%">{$form.grouprole.label}</td> | |
90 | <td>{$form.grouprole.html|crmAddClass:huge}</td> | |
91 | </tr> | |
92 | {/if} | |
93 | <tr class="crm-report-instanceForm-form-block-isReserved"> | |
94 | <td class="report-label">{$form.is_reserved.label} {help id="id-is_reserved" file="CRM/Report/Form/Settings.hlp"}</td> | |
95 | <td>{$form.is_reserved.html} | |
96 | <span class="description">{ts}If reserved, only users with 'administer reserved reports' permission can modify this report instance.{/ts}</span> | |
97 | </td> | |
98 | </tr> | |
99 | <tr class="crm-report-instanceForm-form-block-addToDashboard"> | |
100 | <td class="report-label">{$form.addToDashboard.label} {help id="id-dash_avail" file="CRM/Report/Form/Settings.hlp"}</td> | |
101 | <td>{$form.addToDashboard.html} | |
102 | <span class="description">{ts}Users with appropriate permissions can add this report to their dashboard.{/ts}</span> | |
103 | </td> | |
104 | </tr> | |
dbb4a0f9 | 105 | <tr id ="limit_result" class="crm-report-instanceForm-form-block-limitUser"> |
383aba66 | 106 | <td class="report-label">{$form.row_count.label} {help id="id-dash_limit" file="CRM/Report/Form/Settings.hlp"}</td> |
dbb4a0f9 PN |
107 | <td>{$form.row_count.html}</td> |
108 | </tr> | |
6a488035 | 109 | </table> |
841cb24e | 110 | </div> |
6a488035 TO |
111 | |
112 | {include file="CRM/common/showHideByFieldValue.tpl" | |
113 | trigger_field_id ="is_navigation" | |
114 | trigger_value ="" | |
115 | target_element_id ="navigation_menu" | |
116 | target_element_type ="table-row" | |
117 | field_type ="radio" | |
118 | invert = 0 | |
119 | } | |
dbb4a0f9 PN |
120 | {include file="CRM/common/showHideByFieldValue.tpl" |
121 | trigger_field_id ="addToDashboard" | |
122 | trigger_value ="" | |
123 | target_element_id ="limit_result" | |
124 | target_element_type ="table-row" | |
125 | field_type ="radio" | |
126 | invert = 0 | |
127 | } | |
6a488035 TO |
128 | |
129 | {if $is_navigation} | |
130 | <script type="text/javascript"> | |
131 | document.getElementById('is_navigation').checked = true; | |
132 | showHideByValue('is_navigation','','navigation_menu','table-row','radio',false); | |
133 | </script> | |
134 | {/if} | |
135 | ||
136 | {literal} | |
137 | <script type="text/javascript"> | |
3cc60a06 | 138 | CRM.$(function($) { |
6a488035 | 139 | var formName = {/literal}"{$form.formName}"{literal}; |
32678ccb | 140 | $('#title').data('initial_value', $('#title').val()); |
ae8f569f | 141 | $('#_qf_' + formName + '_submit_save').click ( |
6a488035 | 142 | function(){ |
ae8f569f | 143 | if ( $('#is_navigation').prop('checked') && $('#parent_id').val() == '') { |
6a488035 TO |
144 | var confirmMsg = {/literal}'{ts escape="js"}You have chosen to include this report in the Navigation Menu without selecting a Parent Menu item from the dropdown. This will add the report to the top level menu bar. Are you sure you want to continue?{/ts}'{literal} |
145 | return confirm(confirmMsg); | |
146 | } | |
147 | } | |
148 | ); | |
ae8f569f | 149 | $('#_qf_' + formName + '_submit_next').click ( |
6a488035 | 150 | function(){ |
ae8f569f | 151 | if ( $('#title').data('initial_value') == $('#title').val() ) { |
6a488035 TO |
152 | var confirmMsg = {/literal}'{ts escape="js"}You are saving a copy of this report with the same report title. Are you sure you want to continue?{/ts}'{literal} |
153 | return confirm(confirmMsg); | |
154 | } | |
155 | } | |
156 | ); | |
157 | }); | |
158 | </script> | |
159 | {/literal} |