Files
CRM/layouts/vlayout/modules/Users/ListViewHeader.tpl
BACHIR SOULDI 2794e62571 first commit
2025-09-28 08:49:37 +01:00

52 lines
2.8 KiB
Smarty

{*<!--
/*********************************************************************************
** The contents of this file are subject to the vtiger CRM Public License Version 1.0
* ("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="container-fluid">
<div class="widget_header row-fluid">
<h3>{vtranslate($MODULE, $QUALIFIED_MODULE)}</h3>
</div>
<hr>
<div class="row-fluid">
<span class="span4 btn-toolbar">
<span class="btn-group listViewMassActions">
{if $LISTVIEW_LINKS['LISTVIEW']|@count gt 0}
<button class="btn dropdown-toggle" data-toggle="dropdown"><strong>{vtranslate('LBL_ACTIONS', $MODULE)}</strong>&nbsp;&nbsp;<i class="caret"></i></button>
<ul class="dropdown-menu">
{foreach item=LISTVIEW_ADVANCEDACTIONS from=$LISTVIEW_LINKS['LISTVIEW']}
<li id="{$MODULE}_listView_advancedAction_{Vtiger_Util_Helper::replaceSpaceWithUnderScores($LISTVIEW_ADVANCEDACTIONS->getLabel())}"><a {if stripos($LISTVIEW_ADVANCEDACTIONS->getUrl(), 'javascript:')===0} href="javascript:void(0);" onclick='{$LISTVIEW_ADVANCEDACTIONS->getUrl()|substr:strlen("javascript:")};'{else} href='{$LISTVIEW_ADVANCEDACTIONS->getUrl()}' {/if}>{vtranslate($LISTVIEW_ADVANCEDACTIONS->getLabel(), $MODULE)}</a></li>
{/foreach}
</ul>
{/if}
</span>
{foreach item=LISTVIEW_BASICACTION from=$LISTVIEW_LINKS['LISTVIEWBASIC']}
<span class="btn-group">
<button class="btn addButton" {if stripos($LISTVIEW_BASICACTION->getUrl(), 'javascript:')===0} onclick='{$LISTVIEW_BASICACTION->getUrl()|substr:strlen("javascript:")};'
{else} onclick='window.location.href="{$LISTVIEW_BASICACTION->getUrl()}"' {/if}>
<i class="icon-plus"></i>&nbsp;
<strong>{vtranslate('LBL_ADD_RECORD', $QUALIFIED_MODULE)}</strong>
</button>
</span>
{/foreach}
</span>
<div class="span4 btn-toolbar">
<select class="select2" id="usersFilter" name="status" style="min-width:350px;">
<option value="Active">{vtranslate('LBL_ACTIVE_USERS', $QUALIFIED_MODULE)}</option>
<option value="Inactive">{vtranslate('LBL_INACTIVE_USERS', $QUALIFIED_MODULE)}</option>
</select>
</div>
<span class="span4 btn-toolbar">
{include file='ListViewActions.tpl'|@vtemplate_path:$QUALIFIED_MODULE}
</span>
</div>
<div class="listViewContentDiv" id="listViewContents">
{/strip}