First commit
This commit is contained in:
commit
c6e2478c40
13918 changed files with 2303184 additions and 0 deletions
133
sites/all/modules/civicrm/templates/CRM/Grant/Form/Grant.tpl
Normal file
133
sites/all/modules/civicrm/templates/CRM/Grant/Form/Grant.tpl
Normal file
|
@ -0,0 +1,133 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* this template is used for adding/editing/deleting grant *}
|
||||
|
||||
<div class="crm-block crm-form-block crm-grant-form-block">
|
||||
{if $action eq 8}
|
||||
<div class="messages status">
|
||||
<p><div class="icon inform-icon"></div>
|
||||
{ts}Are you sure you want to delete this Grant?{/ts} {ts}This action cannot be undone.{/ts}</p>
|
||||
<p>{include file="CRM/Grant/Form/Task.tpl"}</p>
|
||||
</div>
|
||||
{else}
|
||||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
|
||||
<table class="form-layout-compressed">
|
||||
{if $context eq 'standalone'}
|
||||
<tr class="crm-grant-form-block-contact_id">
|
||||
<td class="label">{$form.contact_id.label}</td>
|
||||
<td>{$form.contact_id.html}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr class="crm-grant-form-block-status_id">
|
||||
<td class="label">{$form.status_id.label}</td>
|
||||
<td>{$form.status_id.html}</td>
|
||||
</tr>
|
||||
<tr class="crm-grant-form-block-grant_type_id">
|
||||
<td class="label">{$form.grant_type_id.label}</td>
|
||||
<td>{$form.grant_type_id.html}</td>
|
||||
</tr>
|
||||
<tr class="crm-grant-form-block-amount_total">
|
||||
<td class="label">{$form.amount_total.label}</td>
|
||||
<td>{$form.amount_total.html}</td>
|
||||
</tr>
|
||||
<tr class="crm-grant-form-block-amount_requested">
|
||||
<td class="label">{$form.amount_requested.label}</td>
|
||||
<td>{$form.amount_requested.html}<br /><span class="description">{ts}Amount requested for grant in original currency (if different).{/ts}</span></td>
|
||||
</tr>
|
||||
<tr class="crm-grant-form-block-amount_granted">
|
||||
<td class="label">{$form.amount_granted.label}</td>
|
||||
<td>{$form.amount_granted.html}</td>
|
||||
</tr>
|
||||
<tr class="crm-grant-form-block-application_received_date">
|
||||
<td class="label">{$form.application_received_date.label}</td>
|
||||
<td>{if $hideCalendar neq true}
|
||||
{include file="CRM/common/jcalendar.tpl" elementName=application_received_date}
|
||||
{else}
|
||||
{$form.application_received_date.value|crmDate}
|
||||
{/if}</td>
|
||||
</tr>
|
||||
<tr class="crm-grant-form-block-decision_date">
|
||||
<td class="label">{$form.decision_date.label}</td>
|
||||
<td>{if $hideCalendar neq true}
|
||||
{include file="CRM/common/jcalendar.tpl" elementName=decision_date}
|
||||
{else}
|
||||
{$form.decision_date.value|crmDate}
|
||||
{/if}<br />
|
||||
<span class="description">{ts}Date on which the grant decision was finalized.{/ts}</span></td>
|
||||
</tr>
|
||||
<tr class="crm-grant-form-block-money_transfer_date"><td class="label">{$form.money_transfer_date.label}</td>
|
||||
<td>{if $hideCalendar neq true}
|
||||
{include file="CRM/common/jcalendar.tpl" elementName=money_transfer_date}
|
||||
{else}
|
||||
{$form.money_transfer_date.value|crmDate}
|
||||
{/if}<br /><span class="description">{ts}Date on which the grant money was transferred.{/ts}</span></td>
|
||||
</tr>
|
||||
<tr class="crm-grant-form-block-grant_due_date"><td class="label">{$form.grant_due_date.label}</td>
|
||||
<td>{if $hideCalendar neq true}
|
||||
{include file="CRM/common/jcalendar.tpl" elementName=grant_due_date}
|
||||
{else}
|
||||
{$form.grant_due_date.value|crmDate}
|
||||
{/if}</td>
|
||||
</tr>
|
||||
<tr class="crm-grant-form-block-grant_report_received">
|
||||
<td class="label">{$form.grant_report_received.label}</td>
|
||||
<td>{$form.grant_report_received.html}</td>
|
||||
</tr>
|
||||
<tr class="crm-grant-form-block-rationale">
|
||||
<td class="label">{$form.rationale.label}</td>
|
||||
<td>{$form.rationale.html}</td>
|
||||
</tr>
|
||||
<tr class="crm-grant-form-block-note">
|
||||
<td class="label">{$form.note.label}</td>
|
||||
<td>{$form.note.html}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div id="customData" class="crm-grant-form-block-custom_data"></div>
|
||||
{*include custom data js file*}
|
||||
{include file="CRM/common/customData.tpl"}
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
CRM.$(function($) {
|
||||
{/literal}
|
||||
CRM.buildCustomData( '{$customDataType}' );
|
||||
{if $customDataSubType}
|
||||
CRM.buildCustomData( '{$customDataType}', {$customDataSubType} );
|
||||
{/if}
|
||||
{literal}
|
||||
});
|
||||
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
<div class="crm-grant-form-block-attachment">
|
||||
{include file="CRM/Form/attachment.tpl"}
|
||||
</div>
|
||||
|
||||
{/if}
|
||||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
|
||||
</div>
|
|
@ -0,0 +1,82 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* this template is used for viewing grants *}
|
||||
<div class="crm-block crm-content-block crm-grant-view-block">
|
||||
<div class="crm-submit-buttons">
|
||||
{if call_user_func(array('CRM_Core_Permission','check'), 'edit grants')}
|
||||
{assign var='urlParams' value="reset=1&id=$id&cid=$contactId&action=update&context=$context"}
|
||||
{if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
|
||||
{assign var='urlParams' value="reset=1&id=$id&cid=$contactId&action=update&context=$context&key=$searchKey"}
|
||||
{/if}
|
||||
<a class="button" href="{crmURL p='civicrm/contact/view/grant' q=$urlParams}" accesskey="e"><span><i class="crm-i fa-pencil"></i> {ts}Edit{/ts}</span></a>
|
||||
{/if}
|
||||
{if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviGrant')}
|
||||
{assign var='urlParams' value="reset=1&id=$id&cid=$contactId&action=delete&context=$context"}
|
||||
{if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
|
||||
{assign var='urlParams' value="reset=1&id=$id&cid=$contactId&action=delete&context=$context&key=$searchKey"}
|
||||
{/if}
|
||||
<a class="button" href="{crmURL p='civicrm/contact/view/grant' q=$urlParams}"><span><i class="crm-i fa-trash"></i> {ts}Delete{/ts}</span></a>
|
||||
{/if}
|
||||
{include file="CRM/common/formButtons.tpl" location="top"}
|
||||
</div>
|
||||
<table class="crm-info-panel">
|
||||
<tr class="crm-grant-view-form-block-name"><td class="label">{ts}Name{/ts}</td><td class="bold">{$displayName}</td></tr>
|
||||
<tr class="crm-grant-view-form-block-status_id"><td class="label">{ts}Grant Status{/ts}</td> <td>{$grantStatus}</td></tr>
|
||||
<tr class="crm-grant-view-form-block-grant_type_id"><td class="label">{ts}Grant Type{/ts}</td> <td>{$grantType}</td></tr>
|
||||
<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>
|
||||
<tr class="crm-grant-view-form-block-decision_date"><td class="label">{ts}Grant Decision{/ts}</td> <td>{$decision_date|crmDate}</td></tr>
|
||||
<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>
|
||||
<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>
|
||||
<tr class="crm-grant-view-form-block-amount_total"><td class="label">{ts}Amount Requested{/ts}</td> <td>{$amount_total|crmMoney}</td></tr>
|
||||
<tr class="crm-grant-view-form-block-amount_requested"><td class="label">{ts}Amount Requested{/ts}<br />
|
||||
{ts}(original currency){/ts} </td> <td>{$amount_requested|crmMoney}</td></tr>
|
||||
<tr class="crm-grant-view-form-block-amount_granted"><td class="label">{ts}Amount Granted{/ts}</td> <td>{$amount_granted|crmMoney}</td></tr>
|
||||
<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>
|
||||
<tr class="crm-grant-view-form-block-rationale"><td class="label">{ts}Rationale{/ts}</td> <td>{$rationale|nl2br}</td></tr>
|
||||
<tr class="crm-grant-view-form-block-note"><td class="label">{ts}Notes{/ts}</td> <td>{$note|nl2br}</td></tr>
|
||||
{if $attachment}
|
||||
<tr class="crm-grant-view-form-block-attachment"><td class="label">{ts}Attachment(s){/ts}</td><td>{$attachment}</td></tr>
|
||||
{/if}
|
||||
</table>
|
||||
{include file="CRM/Custom/Page/CustomDataView.tpl"}
|
||||
<div class="crm-submit-buttons">
|
||||
{if call_user_func(array('CRM_Core_Permission','check'), 'edit grants')}
|
||||
{assign var='urlParams' value="reset=1&id=$id&cid=$contactId&action=update&context=$context"}
|
||||
{if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
|
||||
{assign var='urlParams' value="reset=1&id=$id&cid=$contactId&action=update&context=$context&key=$searchKey"}
|
||||
{/if}
|
||||
<a class="button" href="{crmURL p='civicrm/contact/view/grant' q=$urlParams}" accesskey="e"><span><i class="crm-i fa-pencil"></i> {ts}Edit{/ts}</span></a>
|
||||
{/if}
|
||||
{if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviGrant')}
|
||||
{assign var='urlParams' value="reset=1&id=$id&cid=$contactId&action=delete&context=$context"}
|
||||
{if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
|
||||
{assign var='urlParams' value="reset=1&id=$id&cid=$contactId&action=delete&context=$context&key=$searchKey"}
|
||||
{/if}
|
||||
<a class="button" href="{crmURL p='civicrm/contact/view/grant' q=$urlParams}"><span><i class="crm-i fa-trash"></i> {ts}Delete{/ts}</span></a>
|
||||
{/if}
|
||||
{include file="CRM/common/formButtons.tpl" location="bottom"}
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,72 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
|
||||
<div class="crm-block crm-form-block crm-search-form-block">
|
||||
<div class="crm-accordion-wrapper crm-member_search_form-accordion {if $rows}collapsed{/if}">
|
||||
<div class="crm-accordion-header crm-master-accordion-header">
|
||||
{ts}Edit Search Criteria{/ts}
|
||||
</div><!-- /.crm-accordion-header -->
|
||||
<div class="crm-accordion-body">
|
||||
{strip}
|
||||
<div class="help">
|
||||
{ts}Use this form to find Grant(s) by Contact name, Grant Status, Grant Type, Total Amount , etc .{/ts}
|
||||
</div>
|
||||
<table class="form-layout">
|
||||
<tr>
|
||||
<td class="font-size12pt" colspan="3">
|
||||
{$form.sort_name.label} {$form.sort_name.html} {$form.buttons.html}<br />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{include file="CRM/Grant/Form/Search/Common.tpl"}
|
||||
|
||||
</table>
|
||||
{/strip}
|
||||
</div><!-- /.crm-accordion-body -->
|
||||
</div><!-- /.crm-accordion-wrapper -->
|
||||
</div><!-- /.crm-form-block -->
|
||||
|
||||
<div class="crm-content-block">
|
||||
{if $rowsEmpty}
|
||||
<div class="crm-results-block crm-results-block-empty">
|
||||
{include file="CRM/Grant/Form/Search/EmptyResults.tpl"}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $rows}
|
||||
{* Search request has returned 1 or more matching rows. Display results and collapse the search criteria fieldset. *}
|
||||
<div class="crm-results-block">
|
||||
{* This section handles form elements for action task select and submit *}
|
||||
<div class="crm-search-tasks">
|
||||
{include file="CRM/common/searchResultTasks.tpl"}
|
||||
</div>
|
||||
{* This section displays the rows along and includes the paging controls *}
|
||||
<div class="crm-search-results">
|
||||
{include file="CRM/Grant/Form/Selector.tpl" context="Search"}
|
||||
</div>
|
||||
</div><!-- /.crm-results-block -->
|
||||
{/if}
|
||||
</div><!-- /.crm-content-block -->
|
|
@ -0,0 +1,30 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
<div id="GrantForm" class="form-item">
|
||||
<table class="form-layout">
|
||||
{include file="CRM/Grant/Form/Search/Common.tpl"}
|
||||
</table>
|
||||
</div>
|
|
@ -0,0 +1,99 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
<tr>
|
||||
<td>
|
||||
{$form.grant_report_received.label}<br />
|
||||
{$form.grant_report_received.html}
|
||||
</td>
|
||||
<td>
|
||||
<label>{ts}Grant Status(s){/ts}</label>
|
||||
{$form.grant_status_id.html}
|
||||
</td>
|
||||
<td>
|
||||
<label>{ts}Grant Type(s){/ts}</label>
|
||||
{$form.grant_type_id.html}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{$form.grant_amount_low.label}<br />
|
||||
{$form.grant_amount_low.html}
|
||||
</td>
|
||||
<td colspan="2">
|
||||
{$form.grant_amount_high.label}<br />
|
||||
{$form.grant_amount_high.html}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{$form.grant_application_received_date_low.label}<br />
|
||||
{include file="CRM/common/jcalendar.tpl" elementName=grant_application_received_date_low}
|
||||
</td>
|
||||
<td colspan="2">
|
||||
{$form.grant_application_received_date_high.label}<br />
|
||||
{include file="CRM/common/jcalendar.tpl" elementName=grant_application_received_date_high}
|
||||
{$form.grant_application_received_notset.html} {ts}Date is not set{/ts}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{$form.grant_decision_date_low.label}<br />
|
||||
{include file="CRM/common/jcalendar.tpl" elementName=grant_decision_date_low}
|
||||
</td>
|
||||
<td colspan="2">
|
||||
{$form.grant_decision_date_high.label}<br />
|
||||
{include file="CRM/common/jcalendar.tpl" elementName=grant_decision_date_high}
|
||||
{$form.grant_decision_date_notset.html} {ts}Date is not set{/ts}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{$form.grant_money_transfer_date_low.label}<br />
|
||||
{include file="CRM/common/jcalendar.tpl" elementName=grant_money_transfer_date_low}
|
||||
</td>
|
||||
<td colspan="2">
|
||||
{$form.grant_money_transfer_date_high.label}<br />
|
||||
{include file="CRM/common/jcalendar.tpl" elementName=grant_money_transfer_date_high}
|
||||
{$form.grant_money_transfer_date_notset.html} {ts}Date is not set{/ts}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{$form.grant_due_date_low.label}<br />
|
||||
{include file="CRM/common/jcalendar.tpl" elementName=grant_due_date_low}
|
||||
</td>
|
||||
<td colspan="2">
|
||||
{$form.grant_due_date_high.label}<br />
|
||||
{include file="CRM/common/jcalendar.tpl" elementName=grant_due_date_high}
|
||||
{$form.grant_due_date_notset.html} {ts}Date is not set{/ts}
|
||||
</td>
|
||||
</tr>
|
||||
{if $grantGroupTree}
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
{include file="CRM/Custom/Form/Search.tpl" groupTree=$grantGroupTree showHideLinks=false}</td>
|
||||
</tr>
|
||||
{/if}
|
|
@ -0,0 +1,42 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* No matches for submitted search request. *}
|
||||
<div class="messages status">
|
||||
<div class="icon inform-icon"></div>
|
||||
{if $qill}{ts}No matches found for:{/ts}
|
||||
{include file="CRM/common/displaySearchCriteria.tpl"}
|
||||
{else}
|
||||
{ts}None found.{/ts}
|
||||
{/if}
|
||||
<br />
|
||||
{ts}Suggestions:{/ts}
|
||||
<ul>
|
||||
<li>{ts}if you are searching by Contact name, check your spelling{/ts}</li>
|
||||
<li>{ts}try a different spelling or use fewer letters{/ts}</li>
|
||||
<li>{ts}if you are searching within a date range, try a wider range of values{/ts}</li>
|
||||
<li>{ts}make sure you have enough privileges in the access control system{/ts}</li>
|
||||
</ul>
|
||||
</div>
|
|
@ -0,0 +1,85 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{if $context EQ 'Search'}
|
||||
{include file="CRM/common/pager.tpl" location="top"}
|
||||
{/if}
|
||||
|
||||
{strip}
|
||||
<table class="selector row-highlight">
|
||||
<thead class="sticky">
|
||||
<tr class="columnheader">
|
||||
{if ! $single and $context eq 'Search' }
|
||||
<th scope="col" title="Select Rows">{$form.toggleSelect.html}</th>
|
||||
{/if}
|
||||
{foreach from=$columnHeaders item=header}
|
||||
<th scope="col">
|
||||
{if $header.sort}
|
||||
{assign var='key' value=$header.sort}
|
||||
{$sort->_response.$key.link}
|
||||
{else}
|
||||
{$header.name}
|
||||
{/if}
|
||||
</th>
|
||||
{/foreach}
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
{counter start=0 skip=1 print=false}
|
||||
{foreach from=$rows item=row}
|
||||
<tr id='crm-grant_{$row.grant_id}' class="{cycle values="odd-row,even-row"} crm-grant crm-grant_status-{$row.grant_status_id}">
|
||||
|
||||
{if !$single }
|
||||
{if $context eq 'Search' }
|
||||
{assign var=cbName value=$row.checkbox}
|
||||
<td>{$form.$cbName.html}</td>
|
||||
{/if}
|
||||
<td>{$row.contact_type}</td>
|
||||
<td><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.contact_id`"}">{$row.sort_name}</a></td>
|
||||
{/if}
|
||||
<td class="crm-grant-grant_status">{$row.grant_status}</td>
|
||||
<td class="crm-grant-grant_type">{$row.grant_type}</td>
|
||||
<td class="right crm-grant-grant_amount_total">{$row.grant_amount_total|crmMoney}</td>
|
||||
<td class="right crm-grant-grant_amount_granted">{$row.grant_amount_granted|crmMoney}</td>
|
||||
<td class="right crm-grant-grant_application_received_date">{$row.grant_application_received_date|truncate:10:''|crmDate}</td>
|
||||
<td class="crm-grant-grant_report_received">{if $row.grant_report_received}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}</td>
|
||||
<td class="right crm-grant-grant_money_transfer_date">{$row.grant_money_transfer_date|truncate:10:''|crmDate}</td>
|
||||
<td>{$row.action|replace:'xx':$row.grant_id}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
{if ($context EQ 'dashboard') AND $pager->_totalItems GT $limit}
|
||||
<tr class="even-row">
|
||||
<td colspan="9"><a href="{crmURL p='civicrm/grant/search' q='reset=1&force=1'}">» {ts}List more Grants{/ts}...</a></td></tr>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
{/strip}
|
||||
|
||||
|
||||
|
||||
{if $context EQ 'Search'}
|
||||
{include file="CRM/common/pager.tpl" location="bottom"}
|
||||
{/if}
|
42
sites/all/modules/civicrm/templates/CRM/Grant/Form/Task.tpl
Normal file
42
sites/all/modules/civicrm/templates/CRM/Grant/Form/Task.tpl
Normal file
|
@ -0,0 +1,42 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{if $totalSelectedGrants}
|
||||
{ts 1=$totalSelectedGrants}Number of selected grants: %1{/ts}
|
||||
{/if}
|
||||
{if $rows }
|
||||
<div class="form-item">
|
||||
<table width="30%">
|
||||
<tr class="columnheader">
|
||||
<td>{ts}Name{/ts}</td>
|
||||
</tr>
|
||||
{foreach from=$rows item=row}
|
||||
<tr class="{cycle values="odd-row,even-row"}">
|
||||
<td>{$row.displayName}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
{/if}
|
|
@ -0,0 +1,32 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* Confirmation of Grant delete *}
|
||||
<div class="messages status no-popup">
|
||||
<p><div class="icon inform-icon"></div>
|
||||
{ts}Are you sure you want to delete the selected Grants? This delete operation cannot be undone and will delete all transactions associated with these grants.{/ts}</p>
|
||||
<p>{include file="CRM/Grant/Form/Task.tpl"}</p>
|
||||
</div>
|
||||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl"}</div>
|
|
@ -0,0 +1,65 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
<p>
|
||||
|
||||
{if $rows }
|
||||
<div class="crm-submit-buttons element-right">{$form.buttons.html}</div>
|
||||
<div class="spacer"></div>
|
||||
<br />
|
||||
<p>
|
||||
<table>
|
||||
<tr class="columnheader">
|
||||
<td>{ts}Name{/ts}</td>
|
||||
<td>{ts}Status{/ts}</td>
|
||||
<td>{ts}Type{/ts}</td>
|
||||
<td>{ts}Amount Requested{/ts}</td>
|
||||
<td>{ts}Amount Requested(orig. currency){/ts}</td>
|
||||
<td>{ts}Amount Granted{/ts}</td>
|
||||
<td>{ts}Application Received{/ts}</td>
|
||||
<td>{ts}Money Transferred{/ts}</td>
|
||||
</tr>
|
||||
{foreach from=$rows item=row}
|
||||
<tr class="{cycle values="odd-row,even-row"}">
|
||||
<td>{$row.sort_name}</td>
|
||||
<td>{$row.grant_status}</td>
|
||||
<td>{$row.grant_type}</td>
|
||||
<td>{$row.grant_amount_total|crmMoney}</td>
|
||||
<td>{$row.grant_amount_requested|crmMoney}</td>
|
||||
<td>{$row.grant_amount_granted|crmMoney}</td>
|
||||
<td>{$row.grant_application_received_date|truncate:10:''|crmDate}</td>
|
||||
<td>{$row.grant_money_transfer_date|truncate:10:''|crmDate}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
|
||||
<div class="crm-submit-buttons element-right">{$form.buttons.html}</div>
|
||||
|
||||
{else}
|
||||
<div class="messages status no-popup">
|
||||
<div class="icon inform-icon"></div>
|
||||
{ts}There are no records selected for Print.{/ts}
|
||||
</div>
|
||||
{/if}
|
|
@ -0,0 +1,34 @@
|
|||
{if $rows}
|
||||
<div class="crm-submit-buttons element-right">{include file="CRM/common/formButtons.tpl" location="top"}</div>
|
||||
|
||||
<div class="spacer"></div>
|
||||
|
||||
<div>
|
||||
<br />
|
||||
<table>
|
||||
<tr class="columnheader">
|
||||
<td>{ts}Display Name{/ts}</td>
|
||||
<td>{ts}Decision Date{/ts}</td>
|
||||
<td>{ts}Amount Requested{/ts}</td>
|
||||
<td>{ts}Amount Granted{/ts}</td>
|
||||
</tr>
|
||||
|
||||
{foreach from=$rows item=row}
|
||||
<tr class="{cycle values="odd-row,even-row"} crm-grant">
|
||||
<td class="crm-grant-task-SearchTaskHookSample-form-block-display_name">{$row.display_name}</td>
|
||||
<td class="crm-grant-task-SearchTaskHookSample-form-block-decision_date">{$row.decision_date}</td>
|
||||
<td class="crm-grant-task-SearchTaskHookSample-form-block-amount_requested">{$row.amount_requested}</td>
|
||||
<td class="crm-grant-task-SearchTaskHookSample-form-block-amount_granted">{$row.amount_granted}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="crm-submit-buttons element-right">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
|
||||
|
||||
{else}
|
||||
<div class="messages status no-popup">
|
||||
<div class="icon inform-icon"></div>
|
||||
{ts}There are no records selected.{/ts}
|
||||
</div>
|
||||
{/if}
|
|
@ -0,0 +1,45 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* Update Grants *}
|
||||
<div class="crm-block crm-form-block crm-grants-update-form-block">
|
||||
<p>{ts}Enter values for the fields you wish to update. Leave fields blank to preserve existing values.{/ts}</p>
|
||||
<table class="form-layout-compressed">
|
||||
{* Loop through all defined search criteria fields (defined in the buildForm() function). *}
|
||||
{foreach from=$elements item=element}
|
||||
<tr class="crm-contact-custom-search-form-row-{$element}">
|
||||
<td class="label">{$form.$element.label}</td>
|
||||
{if $element eq 'decision_date'}
|
||||
<td>{include file="CRM/common/jcalendar.tpl" elementName=decision_date}<br />
|
||||
<span class="description">{ts}Date on which the grant decision was finalized.{/ts}</span></td>
|
||||
{else}
|
||||
<td>{$form.$element.html}</td>
|
||||
{/if}
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
<p>{ts 1=$totalSelectedGrants}Number of selected grants: %1{/ts}</p>
|
||||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
|
||||
</div><!-- /.crm-form-block -->
|
|
@ -0,0 +1,70 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* CiviGrant DashBoard (launch page) *}
|
||||
<div id="help" class="solid-border-bottom">
|
||||
{capture assign=findContactURL}{crmURL p="civicrm/contact/search/basic" q="reset=1"}{/capture}
|
||||
<p>{ts 1=$findContactURL }CiviGrant allows you to input and track grants to Organizations, Individuals or Households. The grantee must first be entered as a contact in CiviCRM. Use <a href='%1'>Find Contacts</a> to see if there's already a record for the grantee. Once you've located or created the contact record, click <strong>View</strong> to go to their summary page, select the <strong>Grants</strong> tab and click <strong>New Grant</strong>.{/ts}
|
||||
</p>
|
||||
</div>
|
||||
<h3>{ts}Grants Summary{/ts}</h3>
|
||||
<div class="description">
|
||||
{capture assign=findGrantsURL}{crmURL p="civicrm/grant/search" q="reset=1"}{/capture}
|
||||
<p>{ts 1=$findGrantsURL}This table provides a summary of <strong>Grant Totals</strong>, and includes shortcuts to view the Grant details for these commonly used search periods. Click the Grant Status to see a list of Contacts for that grant status. To run your own customized searches - click <a href='%1'>Find Grants</a>. You can search by Contact Name, Amount, Grant type and a variety of other criteria.{/ts}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{if $grantSummary.total_grants}
|
||||
You have {$grantSummary.total_grants} grant(s) registered in your database.
|
||||
<table class="report">
|
||||
<tr class="columnheader-dark">
|
||||
<th scope="col">{ts}Grant status{/ts}</th>
|
||||
<th scope="col">{ts}Number of grants{/ts}</th>
|
||||
</tr>
|
||||
|
||||
{foreach from=$grantSummary.per_status item=status key=id}
|
||||
<tr>
|
||||
<td><a href="{crmURL p="civicrm/grant/search" q="reset=1&status=`$id`&force=1"}">{$status.label}</a></td>
|
||||
<td><a href="{crmURL p="civicrm/grant/search" q="reset=1&status=`$id`&force=1"}">{$status.total}</a></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tr class="columnfooter">
|
||||
<td>{ts}TOTAL{/ts}:</td>
|
||||
<td>{$grantSummary.total_grants}</td>
|
||||
</tr>
|
||||
</table>
|
||||
{else}
|
||||
{ts}You have no Grants registered in your database.{/ts}
|
||||
|
||||
{/if}
|
||||
|
||||
|
||||
{if $pager->_totalItems}
|
||||
|
||||
<h3>{ts}Recent Grants{/ts}</h3>
|
||||
<div class="form-item">
|
||||
{include file="CRM/Grant/Form/Selector.tpl" context="DashBoard"}
|
||||
</div>
|
||||
{/if}
|
59
sites/all/modules/civicrm/templates/CRM/Grant/Page/Tab.tpl
Normal file
59
sites/all/modules/civicrm/templates/CRM/Grant/Page/Tab.tpl
Normal file
|
@ -0,0 +1,59 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{if $action eq 1 or $action eq 2 or $action eq 8 }{* add, update or delete *}
|
||||
{include file="CRM/Grant/Form/Grant.tpl"}
|
||||
{elseif $action eq 4 }
|
||||
{include file="CRM/Grant/Form/GrantView.tpl"}
|
||||
{else}
|
||||
<div class="view-content">
|
||||
{if $permission EQ 'edit'}
|
||||
{capture assign=newGrantURL}{crmURL p="civicrm/contact/view/grant" q="reset=1&action=add&cid=`$contactId`&context=grant"}{/capture}
|
||||
{/if}
|
||||
|
||||
<div class="help">
|
||||
<p>{ts 1=$displayName}This page lists all grants for %1 since inception.{/ts}
|
||||
{if $permission EQ 'edit'}
|
||||
{capture assign=link}accesskey='N' href='{$newGrantURL}' class='action-item'{/capture}
|
||||
{ts 1=$link}Click <a %1>Add Grant</a> to record a Grant for this contact.{/ts}
|
||||
{/if}
|
||||
</p>
|
||||
</div>
|
||||
{if $action eq 16 and $permission EQ 'edit'}
|
||||
<div class="action-link">
|
||||
<a href="{$newGrantURL}" class="button"><span><i class="crm-i fa-plus-circle"></i> {ts}Add Grant{/ts}</span></a><br/><br/>
|
||||
</div>
|
||||
{/if}
|
||||
{if $rows}
|
||||
|
||||
{include file="CRM/Grant/Form/Selector.tpl"}
|
||||
{else}
|
||||
<div class="messages status">
|
||||
<div class="icon inform-icon"></div>
|
||||
{ts}No grants have been recorded for this contact.{/ts}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
Loading…
Add table
Add a link
Reference in a new issue