Merge pull request #16792 from colemanw/dashboardContact
[civicrm-core.git] / templates / CRM / common / accesskeys.hlp
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
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 |
8 +--------------------------------------------------------------------+
9 *}
10 {htxt id="accesskeys"}
11 {php}
12 $ua = strtolower($_SERVER['HTTP_USER_AGENT']);
13 if (strstr($ua, 'mac')) {
14 $key = '<span>CTRL</span>+<span>ALT</span>';
15 }
16 else {
17 $key = strstr($ua, 'firefox') ? '<span>ALT</span>+<span>SHIFT</span>' : '<span>ALT</span>';
18 }
19 $this->assign('accessKey', $key);
20 {/php}
21 <p></p>
22 <ul id="crmAccessKeyList">
23 <li>{$accessKey}+<span>E</span> - {ts}Edit Contact (View Contact Summary Page){/ts}</li>
24 <li>{$accessKey}+<span>S</span> - {ts}Save Button{/ts}</li>
25 <li>{$accessKey}+<span>N</span> - {ts}Add a new record in each tab (Activities, Tags,..etc){/ts}</li>
26 <li>{$accessKey}+<span>M</span> - {ts}Find menu item...{/ts}</li>
27 <li>{$accessKey}+<span>Q</span> - {ts}Quicksearch{/ts}</li>
28 </ul>
29 {literal}<style type="text/css">
30 #crmAccessKeyList li {
31 margin-top: 5px;
32 }
33 #crmAccessKeyList span {
34 display: inline-block;
35 background: grey;
36 font-size: 80%;
37 border: 2px groove #eee;
38 padding: 0 4px;
39 }
40 </style>{/literal}
41 {/htxt}