Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
39de6fd5 | 3 | | CiviCRM version 4.6 | |
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 viewing grants *} | |
6a488035 TO |
27 | <div class="crm-block crm-content-block crm-grant-view-block"> |
28 | <div class="crm-submit-buttons"> | |
29 | {if call_user_func(array('CRM_Core_Permission','check'), 'edit grants')} | |
30 | {assign var='urlParams' value="reset=1&id=$id&cid=$contactId&action=update&context=$context"} | |
31 | {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey} | |
32 | {assign var='urlParams' value="reset=1&id=$id&cid=$contactId&action=update&context=$context&key=$searchKey"} | |
33 | {/if} | |
34 | <a class="button" href="{crmURL p='civicrm/contact/view/grant' q=$urlParams}" accesskey="e"><span><div class="icon edit-icon"></div> {ts}Edit{/ts}</span></a> | |
35 | {/if} | |
36 | {if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviGrant')} | |
472eb698 | 37 | {assign var='urlParams' value="reset=1&id=$id&cid=$contactId&action=delete&context=$context"} |
6a488035 TO |
38 | {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey} |
39 | {assign var='urlParams' value="reset=1&id=$id&cid=$contactId&action=delete&context=$context&key=$searchKey"} | |
40 | {/if} | |
41 | <a class="button" href="{crmURL p='civicrm/contact/view/grant' q=$urlParams}"><span><div class="icon delete-icon"></div>{ts}Delete{/ts}</span></a> | |
42 | {/if} | |
43 | {include file="CRM/common/formButtons.tpl" location="top"} | |
44 | </div> | |
45 | <table class="crm-info-panel"> | |
46 | <tr class="crm-grant-view-form-block-name"><td class="label">{ts}Name{/ts}</td><td class="bold">{$displayName}</td></tr> | |
47 | <tr class="crm-grant-view-form-block-status_id"><td class="label">{ts}Grant Status{/ts}</td> <td>{$grantStatus}</td></tr> | |
48 | <tr class="crm-grant-view-form-block-grant_type_id"><td class="label">{ts}Grant Type{/ts}</td> <td>{$grantType}</td></tr> | |
49 | <tr class="crm-grant-view-form-block-application_received_date"><td class="label">{ts}Application Received{/ts}</td> <td>{$application_received_date|crmDate}</td></tr> | |
50 | <tr class="crm-grant-view-form-block-decision_date"><td class="label">{ts}Grant Decision{/ts}</td> <td>{$decision_date|crmDate}</td></tr> | |
51 | <tr class="crm-grant-view-form-block-money_transfer_date"><td class="label">{ts}Money Transferred{/ts}</td> <td>{$money_transfer_date|crmDate}</td></tr> | |
52 | <tr class="crm-grant-view-form-block-grant_due_date"><td class="label">{ts}Grant Report Due{/ts}</td> <td>{$grant_due_date|crmDate}</td></tr> | |
53 | <tr class="crm-grant-view-form-block-amount_total"><td class="label">{ts}Amount Requested{/ts}</td> <td>{$amount_total|crmMoney}</td></tr> | |
54 | <tr class="crm-grant-view-form-block-amount_requested"><td class="label">{ts}Amount Requested{/ts}<br /> | |
55 | {ts}(original currency){/ts} </td> <td>{$amount_requested|crmMoney}</td></tr> | |
56 | <tr class="crm-grant-view-form-block-amount_granted"><td class="label">{ts}Amount Granted{/ts}</td> <td>{$amount_granted|crmMoney}</td></tr> | |
57 | <tr class="crm-grant-view-form-block-grant_report_received"><td class="label">{ts}Grant Report Received?{/ts}</td> <td>{if $grant_report_received}{ts}Yes{/ts} {else}{ts}No{/ts}{/if}</td></tr> | |
58 | <tr class="crm-grant-view-form-block-rationale"><td class="label">{ts}Rationale{/ts}</td> <td>{$rationale|nl2br}</td></tr> | |
59 | <tr class="crm-grant-view-form-block-note"><td class="label">{ts}Notes{/ts}</td> <td>{$note|nl2br}</td></tr> | |
60 | {if $attachment} | |
61 | <tr class="crm-grant-view-form-block-attachment"><td class="label">{ts}Attachment(s){/ts}</td><td>{$attachment}</td></tr> | |
62 | {/if} | |
63 | </table> | |
64 | {include file="CRM/Custom/Page/CustomDataView.tpl"} | |
65 | <div class="crm-submit-buttons"> | |
66 | {if call_user_func(array('CRM_Core_Permission','check'), 'edit grants')} | |
67 | {assign var='urlParams' value="reset=1&id=$id&cid=$contactId&action=update&context=$context"} | |
472eb698 | 68 | {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey} |
69 | {assign var='urlParams' value="reset=1&id=$id&cid=$contactId&action=update&context=$context&key=$searchKey"} | |
70 | {/if} | |
6a488035 TO |
71 | <a class="button" href="{crmURL p='civicrm/contact/view/grant' q=$urlParams}" accesskey="e"><span><div class="icon edit-icon"></div> {ts}Edit{/ts}</span></a> |
72 | {/if} | |
73 | {if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviGrant')} | |
472eb698 | 74 | {assign var='urlParams' value="reset=1&id=$id&cid=$contactId&action=delete&context=$context"} |
75 | {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey} | |
76 | {assign var='urlParams' value="reset=1&id=$id&cid=$contactId&action=delete&context=$context&key=$searchKey"} | |
77 | {/if} | |
6a488035 TO |
78 | <a class="button" href="{crmURL p='civicrm/contact/view/grant' q=$urlParams}"><span><div class="icon delete-icon"></div>{ts}Delete{/ts}</span></a> |
79 | {/if} | |
80 | {include file="CRM/common/formButtons.tpl" location="bottom"} | |
81 | </div> | |
82 | </div> |