2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.5 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2014 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
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. |
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. |
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 +--------------------------------------------------------------------+
26 {* this template is used for adding/editing/deleting grant *}
29 {include file="CRM/Custom/Form/CustomData.tpl"}
32 <div class="crm-block crm-form-block crm-grant-form-block">
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>
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'}
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>
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>
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>
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>
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>
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>
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}
71 {include file="CRM/common/jcalendar.tpl" elementName=application_received_date}
73 {$form.application_received_date.value|crmDate}
76 <tr class="crm-grant-form-block-decision_date">
77 <td class="label">{$form.decision_date.label}</td>
78 <td>{if $hideCalendar neq true}
79 {include file="CRM/common/jcalendar.tpl" elementName=decision_date}
81 {$form.decision_date.value|crmDate}
83 <span class="description">{ts}Date on which the grant decision was finalized.{/ts}</span></td>
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}
87 {include file="CRM/common/jcalendar.tpl" elementName=money_transfer_date}
89 {$form.money_transfer_date.value|crmDate}
90 {/if}<br /><span class="description">{ts}Date on which the grant money was transferred.{/ts}</span></td>
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}
94 {include file="CRM/common/jcalendar.tpl" elementName=grant_due_date}
96 {$form.grant_due_date.value|crmDate}
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>
103 <tr class="crm-grant-form-block-rationale">
104 <td class="label">{$form.rationale.label}</td>
105 <td>{$form.rationale.html}</td>
107 <tr class="crm-grant-form-block-note">
108 <td class="label">{$form.note.label}</td>
109 <td>{$form.note.html}</td>
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"}
118 <script type="text/javascript">
121 CRM.buildCustomData( '{$customDataType}' );
122 {if $customDataSubType}
123 CRM.buildCustomData( '{$customDataType}', {$customDataSubType} );
131 <div class="crm-grant-form-block-attachment">
132 {include file="CRM/Form/attachment.tpl"}
136 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
139 {/if} {* closing of main custom data if *}