From: Deepak Srivastava Date: Sun, 28 Jul 2013 14:33:36 +0000 (+0530) Subject: CRM-12915, common js file for CiviHR to load revisions inside a tab X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5f22f6f50d0b606c30683d9abf52d2df5e7e91ee;p=civicrm-core.git CRM-12915, common js file for CiviHR to load revisions inside a tab ---------------------------------------- * CRM-12915: Improve layout of revision-history for multi-row CustomGroups http://issues.civicrm.org/jira/browse/CRM-12915 --- diff --git a/templates/CRM/common/logButton.tpl b/templates/CRM/common/logButton.tpl new file mode 100644 index 0000000000..9b9eea084a --- /dev/null +++ b/templates/CRM/common/logButton.tpl @@ -0,0 +1,75 @@ +{* + +--------------------------------------------------------------------+ + | CiviCRM version 4.3 | + +--------------------------------------------------------------------+ + | Copyright CiviCRM LLC (c) 2004-2013 | + +--------------------------------------------------------------------+ + | 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 | + +--------------------------------------------------------------------+ +*} + +{* + Usage: CRM_Core_Region::instance('...')->add(array( + 'template' => 'CRM/common/LogButton.tpl', + 'instance_id' => CRM_Report_Utils_Report::getInstanceIDForValue('logging/contact/summary'), + 'css_class' => 'hrqual-revision-link', + 'table_name' => 'my_table', + 'contact_id' => 123, + )); + + Note: This file is used by CivHR +*} + +Revisions +
+
+
+ +{literal} + +{/literal}