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 | *} | |
26 | {* this template is used for adding/editing/deleting grant *} | |
27 | ||
28 | {if $cdType} | |
29 | {include file="CRM/Custom/Form/CustomData.tpl"} | |
30 | {else} | |
31 | ||
6a488035 | 32 | <div class="crm-block crm-form-block crm-grant-form-block"> |
472eb698 | 33 | {if $action eq 8} |
6a488035 TO |
34 | <div class="messages status"> |
35 | <p><div class="icon inform-icon"></div> | |
36 | {ts}Are you sure you want to delete this Grant?{/ts} {ts}This operation cannot be undone.{/ts}</p> | |
37 | <p>{include file="CRM/Grant/Form/Task.tpl"}</p> | |
38 | </div> | |
39 | {else} | |
472eb698 | 40 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div> |
41 | <table class="form-layout-compressed"> | |
42 | {if $context eq 'standalone'} | |
5260bb5c CW |
43 | <tr class="crm-grant-form-block-contact_id"> |
44 | <td class="label">{$form.contact_id.label}</td> | |
45 | <td>{$form.contact_id.html}</td> | |
46 | </tr> | |
47 | {/if} | |
472eb698 | 48 | <tr class="crm-grant-form-block-status_id"> |
49 | <td class="label">{$form.status_id.label}</td> | |
50 | <td>{$form.status_id.html}</td> | |
51 | </tr> | |
52 | <tr class="crm-grant-form-block-grant_type_id"> | |
53 | <td class="label">{$form.grant_type_id.label}</td> | |
54 | <td>{$form.grant_type_id.html}</td> | |
55 | </tr> | |
56 | <tr class="crm-grant-form-block-amount_total"> | |
57 | <td class="label">{$form.amount_total.label}</td> | |
58 | <td>{$form.amount_total.html}</td> | |
59 | </tr> | |
60 | <tr class="crm-grant-form-block-amount_requested"> | |
61 | <td class="label">{$form.amount_requested.label}</td> | |
62 | <td>{$form.amount_requested.html}<br /><span class="description">{ts}Amount requested for grant in original currency (if different).{/ts}</span></td> | |
63 | </tr> | |
64 | <tr class="crm-grant-form-block-amount_granted"> | |
65 | <td class="label">{$form.amount_granted.label}</td> | |
66 | <td>{$form.amount_granted.html}</td> | |
67 | </tr> | |
68 | <tr class="crm-grant-form-block-application_received_date"> | |
69 | <td class="label">{$form.application_received_date.label}</td> | |
70 | <td>{if $hideCalendar neq true} | |
6a488035 TO |
71 | {include file="CRM/common/jcalendar.tpl" elementName=application_received_date} |
72 | {else} | |
d32858b8 | 73 | {$form.application_received_date.value|crmDate} |
6a488035 | 74 | {/if}</td> |
472eb698 | 75 | </tr> |
76 | <tr class="crm-grant-form-block-decision_date"> | |
77 | <td class="label">{$form.decision_date.label}</td> | |
78 | <td>{if $hideCalendar neq true} | |
6a488035 TO |
79 | {include file="CRM/common/jcalendar.tpl" elementName=decision_date} |
80 | {else} | |
d32858b8 | 81 | {$form.decision_date.value|crmDate} |
6a488035 TO |
82 | {/if}<br /> |
83 | <span class="description">{ts}Date on which the grant decision was finalized.{/ts}</span></td> | |
472eb698 | 84 | </tr> |
85 | <tr class="crm-grant-form-block-money_transfer_date"><td class="label">{$form.money_transfer_date.label}</td> | |
86 | <td>{if $hideCalendar neq true} | |
6a488035 TO |
87 | {include file="CRM/common/jcalendar.tpl" elementName=money_transfer_date} |
88 | {else} | |
d32858b8 | 89 | {$form.money_transfer_date.value|crmDate} |
6a488035 | 90 | {/if}<br /><span class="description">{ts}Date on which the grant money was transferred.{/ts}</span></td> |
472eb698 | 91 | </tr> |
92 | <tr class="crm-grant-form-block-grant_due_date"><td class="label">{$form.grant_due_date.label}</td> | |
93 | <td>{if $hideCalendar neq true} | |
6a488035 TO |
94 | {include file="CRM/common/jcalendar.tpl" elementName=grant_due_date} |
95 | {else} | |
d32858b8 | 96 | {$form.grant_due_date.value|crmDate} |
6a488035 | 97 | {/if}</td> |
472eb698 | 98 | </tr> |
99 | <tr class="crm-grant-form-block-grant_report_received"> | |
100 | <td class="label">{$form.grant_report_received.label}</td> | |
101 | <td>{$form.grant_report_received.html}</td> | |
102 | </tr> | |
103 | <tr class="crm-grant-form-block-rationale"> | |
104 | <td class="label">{$form.rationale.label}</td> | |
105 | <td>{$form.rationale.html}</td> | |
106 | </tr> | |
107 | <tr class="crm-grant-form-block-note"> | |
108 | <td class="label">{$form.note.label}</td> | |
109 | <td>{$form.note.html}</td> | |
110 | </tr> | |
111 | </table> | |
112 | ||
6a488035 TO |
113 | <div id="customData" class="crm-grant-form-block-custom_data"></div> |
114 | {*include custom data js file*} | |
115 | {include file="CRM/common/customData.tpl"} | |
116 | ||
117 | {literal} | |
118 | <script type="text/javascript"> | |
3cc60a06 | 119 | CRM.$(function($) { |
6a488035 TO |
120 | {/literal} |
121 | CRM.buildCustomData( '{$customDataType}' ); | |
122 | {if $customDataSubType} | |
123 | CRM.buildCustomData( '{$customDataType}', {$customDataSubType} ); | |
124 | {/if} | |
125 | {literal} | |
126 | }); | |
127 | ||
6a488035 TO |
128 | </script> |
129 | {/literal} | |
130 | ||
131 | <div class="crm-grant-form-block-attachment"> | |
132 | {include file="CRM/Form/attachment.tpl"} | |
133 | </div> | |
134 | ||
135 | {/if} | |
136 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> | |
137 | </div> | |
138 | ||
472eb698 | 139 | {/if} {* closing of main custom data if *} |