Final chunk of chevrons replaced
[civicrm-core.git] / templates / CRM / common / logButton.tpl
CommitLineData
5f22f6f5
DS
1{*
2 +--------------------------------------------------------------------+
1188c7a8 3 | Copyright CiviCRM LLC. All rights reserved. |
5f22f6f5 4 | |
1188c7a8
TO
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
5f22f6f5
DS
8 +--------------------------------------------------------------------+
9*}
10
11{*
12 Usage: CRM_Core_Region::instance('...')->add(array(
13 'template' => 'CRM/common/LogButton.tpl',
14 'instance_id' => CRM_Report_Utils_Report::getInstanceIDForValue('logging/contact/summary'),
15 'css_class' => 'hrqual-revision-link',
16 'table_name' => 'my_table',
17 'contact_id' => 123,
18 ));
19
20 Note: This file is used by CivHR
21*}
22
56e4fbe4 23<a class="css_right {$snippet.css_class}" href="#" title="{ts}View Revisions{/ts}">View Revisions</a>
5f22f6f5
DS
24
25{literal}
26<script type="text/javascript">
1bcd62bf 27(function($, CRM) {
56e4fbe4
DS
28 if ($(".{/literal}{$snippet.css_class}{literal}").length) {
29 $(".{/literal}{$snippet.css_class}{literal}").crmRevisionLink({
30 contactId: {/literal}{$snippet.contact_id}{literal},
31 tableName: "{/literal}{$snippet.table_name}{literal}",
32 reportId: {/literal}{$snippet.instance_id}{literal}
6fa89b0b 33 });
56e4fbe4 34 }
1bcd62bf 35})(cj, CRM);
5f22f6f5
DS
36</script>
37{/literal}