Skip to content

Commit

Permalink
i18n(ToolBar) JumpTo/Next/Previous/Expand buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
joebordes committed Jun 24, 2022
1 parent f264c9f commit 5e09629
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
20 changes: 9 additions & 11 deletions Smarty/templates/Components/DetailViewPirvNext.tpl
Expand Up @@ -14,14 +14,14 @@
<button class="slds-button slds-button_icon slds-button_icon-border-filled slds-is-selected"
title="{$APP.LNK_LIST_PREVIOUS}"
value="{$APP.LNK_LIST_PREVIOUS}"
accessKey="{$APP.LNK_LIST_PREVIOUS}"
accessKey="P"
onclick="location.href='index.php?module={$MODULE}&action=DetailView&record={$privrecord}'"
name="privrecord"
>
<svg class="slds-button__icon" aria-hidden="true">
<use xlink:href="include/LD/assets/icons/utility-sprite/svg/symbols.svg#left"></use>
</svg>
<span class="slds-assistive-text">Previous</span>
<span class="slds-assistive-text">{$APP.LNK_LIST_PREVIOUS}</span>
</button>
{else}
<button class="slds-button slds-button_icon slds-button_icon-border-filled slds-is-selected"
Expand All @@ -32,37 +32,36 @@
<svg class="slds-button__icon" aria-hidden="true">
<use xlink:href="include/LD/assets/icons/utility-sprite/svg/symbols.svg#left"></use>
</svg>
<span class="slds-assistive-text">Previous</span>
<span class="slds-assistive-text">{$APP.LNK_LIST_PREVIOUS}</span>
</button>
{/if}
{if $privrecord neq '' || $nextrecord neq ''}
<button class="slds-button slds-button_icon slds-button_icon-more"
aria-haspopup="true"
aria-expanded="false"
title="More Actions"
title="{$APP.LBL_JUMP_BTN}" accessKey="{$APP.LBL_JUMP_BTN}" onclick="var obj = this;var lhref = getListOfRecords(obj, '{$MODULE}',{$ID});"
title="{$APP.LBL_JUMP_BTN}" accessKey="J" onclick="var obj=this;var lhref=getListOfRecords(obj, '{$MODULE}',{$ID});"
name="jumpBtnIdBottom"
id="jumpBtnIdBottom"
>
<svg class="slds-button__icon" aria-hidden="true">
<use xlink:href="include/LD/assets/icons/utility-sprite/svg/symbols.svg#layout_tile"></use>
</svg>
<span class="slds-assistive-text">Jump To</span>
<span class="slds-assistive-text">{$APP.LBL_JUMP_To}</span>
</button>
{/if}
{if $nextrecord neq ''}
<button class="slds-button slds-button_icon slds-button_icon-border-filled"
aria-pressed="false"
title="{$APP.LNK_LIST_NEXT}"
value="{$APP.LNK_LIST_NEXT}"
accessKey="{$APP.LNK_LIST_NEXT}"
accessKey="N"
onclick="location.href='index.php?module={$MODULE}&action=DetailView&record={$nextrecord}'"
name="nextrecord"
>
<svg class="slds-button__icon" aria-hidden="true">
<use xlink:href="include/LD/assets/icons/utility-sprite/svg/symbols.svg#right"></use>
</svg>
<span class="slds-assistive-text">Next</span>
<span class="slds-assistive-text">{$APP.LNK_LIST_NEXT}</span>
</button>
{else}
<button class="slds-button slds-button_icon slds-button_icon-border-filled"
Expand All @@ -74,14 +73,13 @@
<svg class="slds-button__icon" aria-hidden="true">
<use xlink:href="include/LD/assets/icons/utility-sprite/svg/symbols.svg#right"></use>
</svg>
<span class="slds-assistive-text">Next</span>
<span class="slds-assistive-text">{$APP.LNK_LIST_NEXT}</span>
</button>
{/if}

<div class="slds-dropdown-trigger slds-dropdown-trigger_click slds-button_last">
<button class="slds-button slds-button_icon slds-button_icon-brand"
aria-haspopup="true"
title="Toggle Actions"
title="{$APP.TOGGLE_ACTIONS}"
onclick="{literal}
if (document.getElementById('actioncolumn').style.display=='none') {
Expand All @@ -101,7 +99,7 @@
<svg class="slds-button__icon" id="action-off" style="display: none;">
<use xlink:href="include/LD/assets/icons/utility-sprite/svg/symbols.svg#expand_alt"></use>
</svg>
<span class="slds-assistive-text">Toggle Actions</span>
<span class="slds-assistive-text">{$APP.TOGGLE_ACTIONS}</span>
</button>
</div>
</div>
4 changes: 2 additions & 2 deletions modules/Users/getListOfRecords.php
Expand Up @@ -69,11 +69,11 @@
}
$output = '<section aria-describedby="dbody-id-114" aria-labelledby="dheading-id-3" class="slds-popover slds-popover_walkthrough slds-nubbin_top-right" role="dialog">
<a class="slds-button slds-button_icon slds-button_icon-small slds-float_right slds-popover__close slds-button_icon-inverse" '
.'href="javascript:fninvsh(\'lstRecordLayout\');" title="Close dialog">
.'href="javascript:fninvsh(\'lstRecordLayout\');" title="'.$app_strings['LBL_CLOSE'].'">
<svg class="slds-button__icon" aria-hidden="true">
<use xlink:href="include/LD/assets/icons/utility-sprite/svg/symbols.svg#close"></use>
</svg>
<span class="slds-assistive-text">Close dialog</span>
<span class="slds-assistive-text">'.$app_strings['LBL_CLOSE'].'</span>
</a>
<header class="slds-popover__header slds-p-vertical_medium">
<h2 id="dheading-id-3" class="slds-text-heading_medium">'.$app_strings['LBL_JUMP_To'].'</h2>
Expand Down

0 comments on commit 5e09629

Please sign in to comment.