Skip to content

Commit

Permalink
Added improvements in record collector
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuszkrzaczkowski committed Aug 12, 2022
1 parent 9e394ae commit eb181f1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions layouts/basic/modules/Vtiger/Edit/RecordCollectors.tpl
Expand Up @@ -9,11 +9,11 @@
</button>
{/if}
{/foreach}
<button class="btn btn-outline-dark dropdown-toggle ml-2" type="button" id="{App\Language::translate('LBL_RECORD_COLLECTOR')}" data-toggle="dropdown" aria-expanded="false">
<button class="btn btn-outline-dark dropdown-toggle ml-2 {if !empty($SHOW_BTN_LABEL)}js-popover-tooltip{/if}" type="button" id="LBL_RECORD_COLLECTOR" title="{App\Language::translate('LBL_RECORD_COLLECTOR')}" data-toggle="dropdown" aria-expanded="false">
<span class="yfi-record-collectors mr-2"></span>
{App\Language::translate('LBL_RECORD_COLLECTOR')}
{if empty($SHOW_BTN_LABEL)}{App\Language::translate('LBL_RECORD_COLLECTOR')}{/if}
</button>
<div class="dropdown-menu" aria-label="{App\Language::translate('LBL_RECORD_COLLECTOR')}">
<div class="dropdown-menu" aria-label="LBL_RECORD_COLLECTOR">
{foreach item=COLLECTOR_LINK from=$RECORD_COLLECTOR}
{assign var=COLLECTOR value=\App\RecordCollector::getInstance($COLLECTOR_LINK->get('linkurl'), $MODULE_NAME)}
{if !empty($COLLECTOR) && $COLLECTOR->isActive() && $COLLECTOR_LINK->get('linkicon') neq 1}
Expand Down
2 changes: 1 addition & 1 deletion layouts/basic/modules/Vtiger/Modals/QuickEditHeader.tpl
Expand Up @@ -34,7 +34,7 @@
</div>
<div class="col-xl-6 col-12 text-center text-xl-right">
{if \App\Privilege::isPermitted($MODULE_NAME, 'RecordCollector') && !empty($QUICKCREATE_LINKS['EDIT_VIEW_RECORD_COLLECTOR'])}
{include file=\App\Layout::getTemplatePath('Edit/RecordCollectors.tpl', $MODULE) RECORD_COLLECTOR=$QUICKCREATE_LINKS['EDIT_VIEW_RECORD_COLLECTOR']}
{include file=\App\Layout::getTemplatePath('Edit/RecordCollectors.tpl', $MODULE) SHOW_BTN_LABEL=1 RECORD_COLLECTOR=$QUICKCREATE_LINKS['EDIT_VIEW_RECORD_COLLECTOR']}
{/if}
{if !empty($QUICKCREATE_LINKS['QUICKEDIT_VIEW_HEADER'])}
{foreach item=LINK from=$QUICKCREATE_LINKS['QUICKEDIT_VIEW_HEADER']}
Expand Down
2 changes: 1 addition & 1 deletion layouts/basic/modules/Vtiger/QuickCreate.tpl
Expand Up @@ -56,7 +56,7 @@
</div>
<div class="col-xl-6 col-12 text-center text-xl-right">
{if \App\Privilege::isPermitted($MODULE_NAME, 'RecordCollector') && !empty($QUICKCREATE_LINKS['EDIT_VIEW_RECORD_COLLECTOR'])}
{include file=\App\Layout::getTemplatePath('Edit/RecordCollectors.tpl', $MODULE) RECORD_COLLECTOR=$QUICKCREATE_LINKS['EDIT_VIEW_RECORD_COLLECTOR']}
{include file=\App\Layout::getTemplatePath('Edit/RecordCollectors.tpl', $MODULE) SHOW_BTN_LABEL=1 RECORD_COLLECTOR=$QUICKCREATE_LINKS['EDIT_VIEW_RECORD_COLLECTOR']}
{/if}
{assign var="EDIT_VIEW_URL" value=$MODULE_MODEL->getCreateRecordUrl()}
{if !empty($QUICKCREATE_LINKS['QUICKCREATE_VIEW_HEADER'])}
Expand Down

0 comments on commit eb181f1

Please sign in to comment.