layouts/basic/modules/Vtiger/Detail/Widget/ActivitiesConfig.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}
<div class="tpl-Base-Detail-Widget-ActivitiesConfig modal fade" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<form class="form-modalAddWidget">
{if !empty($WID)}<input type="hidden" name="wid" value="{$WID}" />{/if}
<input type="hidden" name="type" value="{$TYPE}" />
<div class="modal-header">
<h5 id="massEditHeader"
class="modal-title">{\App\Language::translate('Add widget', $QUALIFIED_MODULE)}</h5>
<button type="button" data-dismiss="modal" class="close"
title="{\App\Language::translate('LBL_CLOSE', $QUALIFIED_MODULE)}">×
</button>
</div>
<div class="modal-body">
<div class="modal-Fields">
<div class="row">
<div class="col-md-3 marginLeftZero">
<strong>{\App\Language::translate('Type widget', $QUALIFIED_MODULE)}</strong>:
</div>
<div class="col-md-7">
{\App\Language::translate($TYPE, $QUALIFIED_MODULE)}
</div>
<div class="col-md-3 marginLeftZero"><label
class="">{\App\Language::translate('Label', $QUALIFIED_MODULE)}:</label>
</div>
<div class="col-md-7"><input name="label" class="form-control" type="text"
data-validation-engine="validate[required]"
value="{$WIDGETINFO['label']}" /></div>
<div class="col-md-3 marginLeftZero">
<label>
{\App\Language::translate('Limit entries', $QUALIFIED_MODULE)}:
<a href="#" class="js-help-info" title="" data-placement="top"
data-content="{\App\Language::translate('Limit entries info', $QUALIFIED_MODULE)}"
data-original-title="{\App\Language::translate('Limit entries', $QUALIFIED_MODULE)}"><i
class="fas fa-info-circle"></i></a>
</label>
</div>
<div class="col-md-7">
<input name="limit" class="form-control" type="text"
data-validation-engine="validate[required,custom[integer],min[1]]"
value="{$WIDGETINFO['data']['limit']}" />
</div>
<div class="col-md-3 marginLeftZero">
<label>{\App\Language::translate('LBL_SHITCH_HEADER', $QUALIFIED_MODULE)}:
<a href="#" class="js-help-info" title="" data-placement="top"
data-content="{\App\Language::translate('LBL_SHITCH_HEADER_INFO', $QUALIFIED_MODULE)}"
data-original-title="{\App\Language::translate('LBL_SHITCH_HEADER', $QUALIFIED_MODULE)}"><i
class="fas fa-info-circle"></i></a></label>
</div>
<div class="col-md-7">
{if isset($WIDGETINFO['data']['switchTypeInHeader'])}
{assign var=VALUE value=$WIDGETINFO['data']['switchTypeInHeader']}
{else}
{assign var=VALUE value='0'}
{/if}
<select name="switchTypeInHeader" class="select2 form-control form-control-sm">
<option value="-" {if $VALUE neq '0'} selected{/if}>{\App\Language::translate('None', $QUALIFIED_MODULE)}</option>
<option value="0" {if $VALUE eq '0'} selected{/if}>{\App\Language::translate('LBL_CURRENT_HISTORY_SWITCH', $QUALIFIED_MODULE)}</option>
</select>
</div>
</div>
</div>
</div>
{include file=\App\Layout::getTemplatePath('Modals/Footer.tpl', $QUALIFIED_MODULE) BTN_SUCCESS='LBL_SAVE' BTN_DANGER='LBL_CANCEL'}
</form>
</div>
</div>
</div>
{/strip}