layouts/basic/modules/Vtiger/dashboards/DashBoardWidgetsList.tpl
{*<!-- {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} -->*}
{strip}
<!-- tpl-dashboards-DashBoardWidgetsList -->
<button class="js-widget-predefined btn btn-outline-dark c-btn-block-xs-down addButton dropdown-toggle u-remove-dropdown-icon {if !$WIDGETS|count gt 0}d-none{/if}" data-toggle="dropdown" data-js="class: d-none">
<span class="c-icon--tripple">
<span class="c-icon--tripple__top fas fa-chart-pie"></span>
<span class="c-icon--tripple__left fas fa-chart-line"></span>
<span class="c-icon--tripple__right fas fa-chart-area"></span>
</span>
<span class="d-none d-md-inline">{\App\Language::translate('LBL_PREDEFINED_WIDGETS','Dashboard')}</span>
</button>
<div class="js-widget-list dropdown-menu widgetsList addWidgetDropDown" data-js="container">
{assign var="WIDGET" value=""}
{foreach from=$WIDGETS item=WIDGET}
<a class="js-widget-list__item dropdown-item d-flex" href="#" data-name="{\App\Purifier::encodeHtml($WIDGET->getName())}" data-id="{$WIDGET->get('widgetid')}"
data-widget-url="{$WIDGET->getUrl()|escape}" data-linkid="{$WIDGET->get('linkid')}"
data-width="{$WIDGET->getWidth()}" data-height="{$WIDGET->getHeight()}" data-js="remove | click">
{\App\Language::translate($WIDGET->getTitle(), $MODULE_NAME, null, true, 'Dashboard')}
{if $WIDGET->isDeletable()}
<span class="text-danger pl-5 ml-auto">
<span class="fas fa-trash-alt removeWidgetFromList u-hover-opacity" data-widget-id="{$WIDGET->get('widgetid')}" data-js="click"></span>
</span>
{/if}
</a>
{/foreach}
</div>
<!-- /tpl-dashboards-DashBoardWidgetsList -->
{/strip}