{*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
+--------------------------------------------------------------------+
*}
{* this template is used for viewing grants *}
-<h3>{ts}View Grant{/ts}</h3>
<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')}
<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>
{/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"}
+ {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}
<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}
+ {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><div class="icon edit-icon"></div> {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}
+ {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><div class="icon delete-icon"></div>{ts}Delete{/ts}</span></a>
{/if}
{include file="CRM/common/formButtons.tpl" location="bottom"}