43 lines
2.2 KiB
Smarty
43 lines
2.2 KiB
Smarty
{*+**********************************************************************************
|
|
* The contents of this file are subject to the vtiger CRM Public License Version 1.1
|
|
* ("License"); You may not use this file except in compliance with the License
|
|
* The Original Code is: vtiger CRM Open Source
|
|
* The Initial Developer of the Original Code is vtiger.
|
|
* Portions created by vtiger are Copyright (C) vtiger.
|
|
* All Rights Reserved.
|
|
************************************************************************************}
|
|
{strip}
|
|
<div class="col-lg-6 col-sm-6 col-md-6 detailViewButtoncontainer pull-right" >
|
|
<div class="btn-group pull-right">
|
|
{foreach item=DETAIL_VIEW_BASIC_LINK from=$DETAILVIEW_LINKS['DETAILVIEWBASIC']}
|
|
<button class="btn btn-default" id="{$MODULE_NAME}_detailView_basicAction_{Vtiger_Util_Helper::replaceSpaceWithUnderScores($DETAIL_VIEW_BASIC_LINK->getLabel())}"
|
|
{if $DETAIL_VIEW_BASIC_LINK->isPageLoadLink()}
|
|
onclick="window.location.href = '{$DETAIL_VIEW_BASIC_LINK->getUrl()}'"
|
|
{else}
|
|
onclick="{$DETAIL_VIEW_BASIC_LINK->getUrl()}"
|
|
{/if}
|
|
{if $MODULE_NAME eq 'Documents' && $DETAIL_VIEW_BASIC_LINK->getLabel() eq 'LBL_VIEW_FILE'}
|
|
data-filelocationtype="{$DETAIL_VIEW_BASIC_LINK->get('filelocationtype')}" data-filename="{$DETAIL_VIEW_BASIC_LINK->get('filename')}"
|
|
{/if}>
|
|
{vtranslate($DETAIL_VIEW_BASIC_LINK->getLabel(), $MODULE_NAME)}
|
|
</button>
|
|
{/foreach}
|
|
{if $DETAILVIEW_LINKS['DETAILVIEW']|@count gt 0}
|
|
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="javascript:void(0);">
|
|
{vtranslate('LBL_MORE', $MODULE_NAME)} <i class="caret"></i>
|
|
</button>
|
|
<ul class="dropdown-menu pull-right">
|
|
{foreach item=DETAIL_VIEW_LINK from=$DETAILVIEW_LINKS['DETAILVIEW']}
|
|
{if $DETAIL_VIEW_LINK->getLabel() eq ""}
|
|
<li class="divider"></li>
|
|
{else}
|
|
<li id="{$MODULE_NAME}_detailView_moreAction_{Vtiger_Util_Helper::replaceSpaceWithUnderScores($DETAIL_VIEW_LINK->getLabel())}">
|
|
<a href={$DETAIL_VIEW_LINK->getUrl()} >{vtranslate($DETAIL_VIEW_LINK->getLabel(), $MODULE_NAME)}</a>
|
|
</li>
|
|
{/if}
|
|
{/foreach}
|
|
</ul>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
{/strip} |