[REF] Move handling of form elements back to the Form
[civicrm-core.git] / templates / CRM / Report / Form / Register.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
8 +--------------------------------------------------------------------+
9 *}
10 {if $action eq 8}
11 <h3>{ts}Delete Report Template{/ts}</h3>
12 {elseif $action eq 2}
13 <h3>{ts}Edit Report Template{/ts}</h3>
14 {else}
15 <h3>{ts}New Report Template{/ts}</h3>
16 {/if}
17 <div class="crm-block crm-form-block crm-report-register-form-block">
18 {if $action eq 8}
19 <table class="form-layout">
20 <tr class="buttons">
21 <td><div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
22 </td>
23 <td></td>
24 </tr>
25 <tr>
26 <td colspan=2>
27 <div class="messages status no-popup">
28 <div class="icon inform-icon"></div> &nbsp;
29 {ts}WARNING: Deleting this option will result in the loss of all Report related records which use the option. This may mean the loss of a substantial amount of data, and the action cannot be undone. Do you want to continue?{/ts}
30 </div>
31 </td>
32 </tr>
33 {else}
34
35 <table class="form-layout">
36 <tr class="buttons crm-report-register-form-block-buttons">
37 <td><div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
38 </td>
39 <td></td>
40 </tr>
41 <tr class="crm-report-register-form-block-label">
42 <td class="label">{$form.label.label}</td>
43 <td class="view-value">{$form.label.html} <br /><span class="description">{ts}Report title appear in the display screen.{/ts}</span>
44 </td>
45 </tr>
46 <tr class="crm-report-register-form-block-description">
47 <td class="label">{$form.description.label}</td>
48 <td class="view-value">{$form.description.html} <br /><span class="description">{ts}Report description appear in the display screen.{/ts}</span>
49 </td>
50 </tr>
51 <tr class="crm-report-register-form-block-url">
52 <td class="label">{$form.value.label}</td>
53 <td class="view-value">{$form.value.html} <br /><span class="description">{ts}Report Url must be like "contribute/summary"{/ts}</span>
54 </td>
55 </tr>
56 <tr class="crm-report-register-form-block-class">
57 <td class="label">{$form.name.label}</td>
58 <td class="view-value">{$form.name.html} <br /><span class="description">{ts}Report Class must be present before adding the report here, e.g. 'CRM_Report_Form_Contribute_Summary'{/ts}</span>
59 </td>
60 </tr>
61 <tr class="crm-report-register-form-block-weight">
62 <td class="label">{$form.weight.label}</td>
63 <td class="view-value">{$form.weight.html}</td>
64 </tr>
65 <tr class="crm-report-register-form-block-component">
66 <td class="label">{$form.component_id.label}</td>
67 <td class="view-value">{$form.component_id.html} <br /><span class="description">{ts}Specify the Report if it is belongs to any component like "CiviContribute"{/ts}</span>
68 </td>
69 </tr>
70 <tr class="crm-report-register-form-block-is_active">
71 <td class="label">{$form.is_active.label}</td>
72 <td class="view-value">{$form.is_active.html}</td>
73 </tr>
74 {/if}
75 <tr class="buttons crm-report-register-form-block-buttons">
76 <td><div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
77 </td>
78 <td></td>
79 </tr>
80 </table>
81 </div>