Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Commit

Permalink
Fixed the height of the add record button when reloading the page
Browse files Browse the repository at this point in the history
  • Loading branch information
areksolek committed Jul 26, 2023
1 parent cbe8394 commit b0c7cc9
Show file tree
Hide file tree
Showing 28 changed files with 129 additions and 183 deletions.
4 changes: 2 additions & 2 deletions layouts/basic/modules/OSSMailView/widgets.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
'confirm' => \App\Language::translate('LBL_REMOVE_RELATION_CONFIRMATION'), 'id' => $ROW['id'], 'url'=> $RELATION_MODEL->getDeleteUrl($ROW['id'])
]
])}
{include file=\App\Layout::getTemplatePath('ButtonLink.tpl', $MODULE_NAME) MODULE=$MODULE_NAME}
{include file=\App\Layout::getTemplatePath('ButtonLink.tpl', $MODULE_NAME) BUTTON_VIEW='' MODULE=$MODULE_NAME}
{/if}
{if \App\Privilege::isPermitted($MODULE_NAME, 'Delete', $ROW['id'])}
{assign var=LINK value=Vtiger_Link_Model::getInstanceFromValues(['dataUrl' => "index.php?module={$MODULE_NAME}&action=Delete&record={$ROW['id']}",
Expand All @@ -65,7 +65,7 @@
'linkdata' => ['confirm' => \App\Language::translate('LBL_DELETE_RECORD_COMPLETELY_DESC')],
'linkclass' => 'btn-xs btn-dark relationDelete entityStateBtn'
])}
{include file=\App\Layout::getTemplatePath('ButtonLink.tpl', $MODULE_NAME) MODULE=$MODULE_NAME}
{include file=\App\Layout::getTemplatePath('ButtonLink.tpl', $MODULE_NAME) BUTTON_VIEW='' MODULE=$MODULE_NAME}
{/if}
{/if}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</td>
<td nowrap class="{$WIDTHTYPE} rightRecordActions listButtons {$WIDTHTYPE}">
{assign var=LINKS value=$LISTVIEW_ENTRY->getRecordLinks()}
{if count($LINKS) > 0}
{if !empty($LINKS) > 0}
<div class="actions">
<div class="float-right">
{foreach from=$LINKS item=LINK}
Expand Down
9 changes: 3 additions & 6 deletions layouts/basic/modules/Settings/Vtiger/EditViewActions.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,14 @@
{assign var=SINGLE_MODULE_NAME value='SINGLE_'|cat:$MODULE}
<button class="btn btn-success js-form-submit-btn" type="submit">
<span class="fas fa-check mr-1"></span>
<strong>{\App\Language::translate('LBL_SAVE', $MODULE)}</strong>
<strong>{\App\Language::translate('LBL_SAVE', $QUALIFIED_MODULE)}</strong>
</button>
<button class="btn btn-danger ml-2" type="reset" onclick="javascript:window.history.back();">
<span class="fas fa-times mr-1"></span>
<strong>{\App\Language::translate('LBL_CANCEL', $MODULE)}</strong>
<strong>{\App\Language::translate('LBL_CANCEL', $QUALIFIED_MODULE)}</strong>
</button>
ffff
{if isset($EDITVIEW_LINKS['EDIT_VIEW_HEADER'])}
{foreach item=LINK from=$EDITVIEW_LINKS['EDIT_VIEW_HEADER']}
{include file=\App\Layout::getTemplatePath('ButtonLink.tpl', $MODULE) BUTTON_VIEW='editViewHeader'}
{/foreach}
{include file=\App\Layout::getTemplatePath('ButtonLinks.tpl', $QUALIFIED_MODULE) LINKS=$EDITVIEW_LINKS['EDIT_VIEW_HEADER'] BUTTON_VIEW='editViewHeader' MODULE=$QUALIFIED_MODULE SKIP_GROUP=true}
{/if}
</div>
</form>
Expand Down
4 changes: 1 addition & 3 deletions layouts/basic/modules/Settings/Vtiger/ListViewContents.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@
{if count($LINKS) > 0}
<div class="actions">
<div class="float-right">
{foreach from=$LINKS item=LINK}
{include file=\App\Layout::getTemplatePath('ButtonLink.tpl', $QUALIFIED_MODULE) BUTTON_VIEW='listViewBasic' MODULE_NAME=$QUALIFIED_MODULE MODULE=$QUALIFIED_MODULE}
{/foreach}
{include file=\App\Layout::getTemplatePath('ButtonLinks.tpl', $QUALIFIED_MODULE) LINKS=$LINKS BUTTON_VIEW='listViewBasic' MODULE=$QUALIFIED_MODULE}
</div>
</div>
{/if}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
<div class="editViewContainer tab-pane active mt-2" id="{$TYPE_API}" data-type="{$TYPE_API}">
<div class="listViewActionsDiv row">
<div class="col-md-8 tn-toolbar">
{foreach item=LINK from=$LISTVIEW_LINKS['LISTVIEWBASIC']}
{include file=\App\Layout::getTemplatePath('ButtonLink.tpl', $MODULE) BUTTON_VIEW='listViewBasic'}
{/foreach}
{include file=\App\Layout::getTemplatePath('ButtonLinks.tpl', $QUALIFIED_MODULE) LINKS=$LISTVIEW_LINKS['LISTVIEWBASIC'] BUTTON_VIEW='listViewBasic' MODULE=$QUALIFIED_MODULE SKIP_GROUP=true}
</div>
<div class="col-md-4 ">
<div class="float-right">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
</div>
<div class="actions col-3">
<div class="float-right pr-1">
{foreach item=LINK from=$WIDGET_MODEL->getSettingsLinks()}
{include file=\App\Layout::getTemplatePath('ButtonLink.tpl', $QUALIFIED_MODULE) BUTTON_VIEW='' BTN_CLASS=""}
{/foreach}
{if !empty($WIDGET_MODEL->getSettingsLinks())}
{include file=\App\Layout::getTemplatePath('ButtonLinks.tpl', $QUALIFIED_MODULE) LINKS=$WIDGET_MODEL->getSettingsLinks() MODULE=$QUALIFIED_MODULE SKIP_GROUP=true}
{/if}
</div>
</div>
</span>
Expand Down
12 changes: 5 additions & 7 deletions layouts/basic/modules/Users/ListViewContents.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@
{assign var=ONLY_ONE value=count($LINKS) eq 1}
<div class="actions">
{if $ONLY_ONE}
{foreach from=$LINKS item=LINK}
{include file=\App\Layout::getTemplatePath('ButtonLink.tpl', $MODULE) BUTTON_VIEW='listViewBasic'}
{/foreach}
{include file=\App\Layout::getTemplatePath('ButtonLinks.tpl', $QUALIFIED_MODULE) LINKS=$LINKS BUTTON_VIEW='listViewBasic' MODULE=$QUALIFIED_MODULE}
{else}
<div class="dropright u-remove-dropdown-icon">
<button class="btn btn-sm btn-light toolsAction dropdown-toggle" type="button"
Expand All @@ -55,9 +53,9 @@
<span class="sr-only">{\App\Language::translate('LBL_ACTIONS')}</span>
</button>
<div class="dropdown-menu" aria-label="{\App\Language::translate('LBL_ACTIONS')}">
{foreach from=$LINKS item=LINK}
{include file=\App\Layout::getTemplatePath('ButtonLink.tpl', $MODULE) BUTTON_VIEW='listViewBasic'}
{/foreach}
{if !empty($LINKS)}
{include file=\App\Layout::getTemplatePath('ButtonLinks.tpl', $QUALIFIED_MODULE) LINKS=$LINKS BUTTON_VIEW='listViewBasic' MODULE=$QUALIFIED_MODULE SKIP_GROUP=true}
{/if}
</div>
</div>
{/if}
Expand Down Expand Up @@ -116,7 +114,7 @@
{assign var="SEARCH_INFO" value=[]}
{/if}
{include file=\App\Layout::getTemplatePath($FIELD_UI_TYPE_MODEL->getListSearchTemplateName(), $MODULE_NAME)
FIELD_MODEL= $LISTVIEW_HEADER SEARCH_INFO=$SEARCH_INFO USER_MODEL=$USER_MODEL}
FIELD_MODEL= $LISTVIEW_HEADER SEARCH_INFO=$SEARCH_INFO USER_MODEL=$USER_MODEL}
</td>
{/foreach}
</tr>
Expand Down
6 changes: 3 additions & 3 deletions layouts/basic/modules/Users/PreferenceDetailViewHeader.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
</div>
<div class="mr-0 pl-1 py-2 mt-0 detailViewButtoncontainer d-flex justify-content-center">
<div class="btn-group btn-toolbar flex-md-nowrap u-w-sm-down-100">
{foreach item=LINK from=$DETAILVIEW_LINKS['DETAILVIEWPREFERENCE']}
{include file=\App\Layout::getTemplatePath('ButtonLink.tpl', $MODULE) BUTTON_VIEW='detailViewBasic' BREAKPOINT='md' CLASS='c-btn-link--responsive'}
{/foreach}
{if !empty($DETAILVIEW_LINKS['DETAILVIEWPREFERENCE'])}
{include file=\App\Layout::getTemplatePath('ButtonLinks.tpl', $MODULE) LINKS=$DETAILVIEW_LINKS['DETAILVIEWPREFERENCE'] BUTTON_VIEW='detailViewBasic' BREAKPOINT='md' CLASS='c-btn-link--responsive'}
{/if}
{if $DETAILVIEW_LINKS['DETAIL_VIEW_BASIC']|@count gt 0}
{include file=\App\Layout::getTemplatePath('ButtonViewLinks.tpl') TEXT_HOLDER='LBL_MORE' LINKS=$DETAILVIEW_LINKS['DETAIL_VIEW_BASIC'] CLASS='c-btn-link--responsive btn-group' BTN_CLASS=' btn-outline-dark'}
{/if}
Expand Down
4 changes: 1 addition & 3 deletions layouts/basic/modules/Users/RecordPopover.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
<span class="mb-1 u-text-ellipsis--no-hover" title="{$RECORD->getDisplayName()}">{$RECORD->getDisplayName()}</span>
{if $HEADER_LINKS}
<div class="c-popover--link__header__buttons btn-group">
{foreach item=LINK from=$HEADER_LINKS}
{include file=\App\Layout::getTemplatePath('ButtonLink.tpl', $MODULE_NAME) BUTTON_VIEW='recordPopover'}
{/foreach}
{include file=\App\Layout::getTemplatePath('ButtonLinks.tpl', $MODULE_NAME) LINKS=$HEADER_LINKS BUTTON_VIEW='recordPopover' MODULE=$MODULE_NAME SKIP_GROUP=true}
</div>
{/if}
</h5>
Expand Down
109 changes: 53 additions & 56 deletions layouts/basic/modules/Users/UserViewHeader.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,70 +10,67 @@
********************************************************************************/
-->*}
{strip}
{assign var="MODULE_NAME" value=$MODULE_MODEL->get('name')}
<input id="recordId" type="hidden" value="{$RECORD->getId()}"/>
<div class="tpl-Users-UserViewHeader detailViewContainer">
<div class="detailViewTitle pt-md-0 pt-1" id="userPageHeader">
<div class="o-breadcrumb widget_header row"
data-js="container">
<div class="col-12 d-flex flex-wrap justify-content-between">
{include file=\App\Layout::getTemplatePath('BreadCrumbs.tpl', $MODULE_NAME)}
<div class="my-auto o-header-toggle__actions js-header-toggle__actions d-flex flex-column flex-md-row" id="o-view-actions__container">
<div class="detailViewButtoncontainer">
<div class="btn-toolbar btn-group">
{if isset($DETAILVIEW_LINKS['DETAIL_VIEW_ADDITIONAL'])}
{foreach item=LINK from=$DETAILVIEW_LINKS['DETAIL_VIEW_ADDITIONAL']}
{include file=\App\Layout::getTemplatePath('ButtonLink.tpl', $MODULE) BUTTON_VIEW='detailViewBasic' CLASS='c-btn-link--responsive'}
{/foreach}
{/if}
{if $DETAILVIEW_LINKS['DETAIL_VIEW_BASIC']|@count gt 0}
<div class="btn-group c-btn-link--responsive dropdown">
<button class="btn btn-outline-dark dropdown-toggle" id="more-actions-button"
{assign var="MODULE_NAME" value=$MODULE_MODEL->get('name')}
<input id="recordId" type="hidden" value="{$RECORD->getId()}" />
<div class="tpl-Users-UserViewHeader detailViewContainer">
<div class="detailViewTitle pt-md-0 pt-1" id="userPageHeader">
<div class="o-breadcrumb widget_header row"
data-js="container">
<div class="col-12 d-flex flex-wrap justify-content-between">
{include file=\App\Layout::getTemplatePath('BreadCrumbs.tpl', $MODULE_NAME)}
<div class="my-auto o-header-toggle__actions js-header-toggle__actions d-flex flex-column flex-md-row" id="o-view-actions__container">
<div class="detailViewButtoncontainer">
<div class="btn-toolbar btn-group">
{if isset($DETAILVIEW_LINKS['DETAIL_VIEW_ADDITIONAL'])}
{include file=\App\Layout::getTemplatePath('ButtonLinks.tpl', $MODULE) LINKS=$DETAILVIEW_LINKS['DETAIL_VIEW_ADDITIONAL'] BUTTON_VIEW='detailViewBasic' CLASS='c-btn-link--responsive'}
{/if}
{if $DETAILVIEW_LINKS['DETAIL_VIEW_BASIC']|@count gt 0}
<div class="btn-group c-btn-link--responsive dropdown">
<button class="btn btn-outline-dark dropdown-toggle" id="more-actions-button"
data-toggle="dropdown" href="javascript:void(0);"
aria-haspopup="true" aria-expanded="false">
<strong>{\App\Language::translate('LBL_MORE', $MODULE_NAME)}</strong>
</button>
<div class="dropdown-menu" aria-labelledby="more-actions-button">
{foreach item=DETAIL_VIEW_LINK from=$DETAILVIEW_LINKS['DETAIL_VIEW_BASIC']}
{if $DETAIL_VIEW_LINK->getLabel() eq 'Delete'}
{if $USER_MODEL->isAdminUser() && $USER_MODEL->getId() neq $RECORD->getId()}
<a class="dropdown-item"
id="{$MODULE_NAME}_detailView_moreAction_{Vtiger_Util_Helper::replaceSpaceWithUnderScores($DETAIL_VIEW_LINK->getLabel())}"
href={$DETAIL_VIEW_LINK->getUrl()}>
<strong>{\App\Language::translate('LBL_MORE', $MODULE_NAME)}</strong>
</button>
<div class="dropdown-menu" aria-labelledby="more-actions-button">
{foreach item=DETAIL_VIEW_LINK from=$DETAILVIEW_LINKS['DETAIL_VIEW_BASIC']}
{if $DETAIL_VIEW_LINK->getLabel() eq 'Delete'}
{if $USER_MODEL->isAdminUser() && $USER_MODEL->getId() neq $RECORD->getId()}
<a class="dropdown-item"
id="{$MODULE_NAME}_detailView_moreAction_{Vtiger_Util_Helper::replaceSpaceWithUnderScores($DETAIL_VIEW_LINK->getLabel())}"
href={$DETAIL_VIEW_LINK->getUrl()}>
<span>
{\App\Language::translate($DETAIL_VIEW_LINK->getLabel(), $MODULE_NAME)}</span></a>
{/if}
{else}
<a class="dropdown-item {$DETAIL_VIEW_LINK->getClassName()}"
id="{$MODULE_NAME}_detailView_moreAction_{Vtiger_Util_Helper::replaceSpaceWithUnderScores($DETAIL_VIEW_LINK->getLabel())}"
href="#"
data-url="{if !empty($DETAIL_VIEW_LINK->linkdata['url'])}{$DETAIL_VIEW_LINK->linkdata['url']}{/if}"
onclick="{$DETAIL_VIEW_LINK->linkurl}">
<span class="{$DETAIL_VIEW_LINK->linkicon} mr-1"></span>
<span>
{\App\Language::translate($DETAIL_VIEW_LINK->getLabel(), $MODULE_NAME)}</span></a>
{\App\Language::translate($DETAIL_VIEW_LINK->getLabel(), $MODULE_NAME)}</span>
</a>
{/if}
{else}
<a class="dropdown-item {$DETAIL_VIEW_LINK->getClassName()}"
id="{$MODULE_NAME}_detailView_moreAction_{Vtiger_Util_Helper::replaceSpaceWithUnderScores($DETAIL_VIEW_LINK->getLabel())}"
href="#"
data-url="{if !empty($DETAIL_VIEW_LINK->linkdata['url'])}{$DETAIL_VIEW_LINK->linkdata['url']}{/if}"
onclick="{$DETAIL_VIEW_LINK->linkurl}"
>
<span class="{$DETAIL_VIEW_LINK->linkicon} mr-1"></span>
<span>
{\App\Language::translate($DETAIL_VIEW_LINK->getLabel(), $MODULE_NAME)}</span>
</a>
{/if}
{/foreach}
{/foreach}
</div>
</div>
</div>
{/if}
{/if}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="detailViewInfo userPreferences row">
<div class="details col-md-12">
<a class="btn btn-outline-dark d-md-none o-header-toggle__actions-btn js-header-toggle__actions-btn mb-1" href="#" data-js="click" role="button"
aria-expanded="false" aria-controls="o-view-actions__container">
<span class="fas fa-ellipsis-h fa-fw"
title="{\App\Language::translate('LBL_ACTION_MENU')}"></span>
</a>
<form id="detailView"
data-name-fields="{\App\Purifier::encodeHtml(\App\Json::encode($MODULE_MODEL->getNameFields()))}">
<div class="contents">
{/strip}
<div class="detailViewInfo userPreferences row">
<div class="details col-md-12">
<a class="btn btn-outline-dark d-md-none o-header-toggle__actions-btn js-header-toggle__actions-btn mb-1" href="#" data-js="click" role="button"
aria-expanded="false" aria-controls="o-view-actions__container">
<span class="fas fa-ellipsis-h fa-fw"
title="{\App\Language::translate('LBL_ACTION_MENU')}"></span>
</a>
<form id="detailView"
data-name-fields="{\App\Purifier::encodeHtml(\App\Json::encode($MODULE_MODEL->getNameFields()))}">
<div class="contents">
{/strip}
2 changes: 1 addition & 1 deletion layouts/basic/modules/Vtiger/ButtonLinks.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{assign var=BREAKPOINT value=''}
{/if}
{assign var=COUNT_LINKS value=count($LINKS)}
<div class="c-btn-link {if ($COUNT_LINKS > 1 && $USER_MODEL->get('rowheight') eq 'narrow') && !isset($SKIP_GROUP)}btn-group-sm{elseif $COUNT_LINKS > 1 && !isset($SKIP_GROUP)}btn-group{/if} {$CLASS}">
<div class="c-btn-link {if ($COUNT_LINKS > 1 && $USER_MODEL->get('rowheight') eq 'narrow') && !isset($SKIP_GROUP)}btn-group-sm{elseif $COUNT_LINKS > 1 && !isset($SKIP_GROUP)}btn-group{/if} {$CLASS} {if !empty($CLASS) && $CLASS eq 'c-btn-link--responsive'}d-inline-block d-md-inline-flex{/if}">
{foreach item=LINK from=$LINKS}
{include file=\App\Layout::getTemplatePath('ButtonLink.tpl', $MODULE) BUTTON_VIEW=$BUTTON_VIEW MODULE_NAME=$MODULE BREAKPOINT=$BREAKPOINT}
{/foreach}
Expand Down
6 changes: 2 additions & 4 deletions layouts/basic/modules/Vtiger/Comment.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,8 @@
</button>
{/if}
{assign var=LINKS value=$COMMENT->getCommentLinks()}
{if count($LINKS) > 0}
{foreach from=$LINKS item=LINK}
{include file=\App\Layout::getTemplatePath('ButtonLink.tpl', $MODULE_NAME) BUTTON_VIEW='comment' MODULE=$MODULE_NAME BTN_CLASS='btn-sm'}
{/foreach}
{if !empty($LINKS)}
{include file=\App\Layout::getTemplatePath('ButtonLinks.tpl', $MODULE_NAME) BUTTON_VIEW='comment' MODULE=$MODULE_NAME BTN_CLASS='btn-sm'}
{/if}
{/if}
{assign var=CHILD_COMMENTS_COUNT value=$COMMENT->getChildCommentsCount()}
Expand Down
6 changes: 2 additions & 4 deletions layouts/basic/modules/Vtiger/CommentThreadList.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,8 @@
</button>
{/if}
{assign var=LINKS value=$COMMENT->getCommentLinks()}
{if count($LINKS) > 0}
{foreach from=$LINKS item=LINK}
{include file=\App\Layout::getTemplatePath('ButtonLink.tpl', $MODULE_NAME) BUTTON_VIEW='comment' MODULE=$MODULE_NAME}
{/foreach}
{if !empty($LINKS)}
{include file=\App\Layout::getTemplatePath('ButtonLinks.tpl', $MODULE_NAME) LINKS=$LINKS BUTTON_VIEW='comment' MODULE=$MODULE_NAME}
{/if}
</span>
</div>
Expand Down
12 changes: 3 additions & 9 deletions layouts/basic/modules/Vtiger/Detail/HeaderButtons.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,17 @@
id="o-view-actions__container">
{if isset($DETAILVIEW_LINKS['DETAIL_VIEW_ADDITIONAL'])}
<div class="btn-group btn-toolbar mr-md-2 flex-md-nowrap d-block d-md-flex">
{foreach item=LINK from=$DETAILVIEW_LINKS['DETAIL_VIEW_ADDITIONAL']}
{include file=\App\Layout::getTemplatePath('ButtonLink.tpl', $MODULE_NAME) BUTTON_VIEW='detailViewAdditional' BREAKPOINT='md' CLASS='c-btn-link--responsive'}
{/foreach}
{include file=\App\Layout::getTemplatePath('ButtonLinks.tpl', $MODULE_NAME) LINKS=$DETAILVIEW_LINKS['DETAIL_VIEW_ADDITIONAL'] BUTTON_VIEW='detailViewAdditional' BREAKPOINT='md' MODULE=$MODULE_NAME CLASS='c-btn-link--responsive'}
</div>
{/if}
{if isset($DETAILVIEW_LINKS['DETAIL_VIEW_BASIC'])}
<div class="btn-group btn-toolbar mr-md-2 flex-md-nowrap d-block d-md-flex">
{foreach item=LINK from=$DETAILVIEW_LINKS['DETAIL_VIEW_BASIC']}
{include file=\App\Layout::getTemplatePath('ButtonLink.tpl', $MODULE_NAME) BUTTON_VIEW='detailViewBasic' BREAKPOINT='md' CLASS='c-btn-link--responsive'}
{/foreach}
{include file=\App\Layout::getTemplatePath('ButtonLinks.tpl', $MODULE_NAME) LINKS=$DETAILVIEW_LINKS['DETAIL_VIEW_BASIC'] BUTTON_VIEW='detailViewBasic' BREAKPOINT='md' MODULE=$MODULE_NAME CLASS='c-btn-link--responsive'}
</div>
{/if}
{if isset($DETAILVIEW_LINKS['DETAIL_VIEW_EXTENDED'])}
<div class="btn-group btn-toolbar mr-md-2 flex-md-nowrap d-block d-md-flex">
{foreach item=LINK from=$DETAILVIEW_LINKS['DETAIL_VIEW_EXTENDED']}
{include file=\App\Layout::getTemplatePath('ButtonLink.tpl', $MODULE_NAME) BUTTON_VIEW='detailViewExtended' BREAKPOINT='md' CLASS='c-btn-link--responsive'}
{/foreach}
{include file=\App\Layout::getTemplatePath('ButtonLinks.tpl', $MODULE_NAME) LINKS=$DETAILVIEW_LINKS['DETAIL_VIEW_EXTENDED'] BUTTON_VIEW='detailViewExtended' BREAKPOINT='md' MODULE=$MODULE_NAME CLASS='c-btn-link--responsive'}
</div>
{/if}
</div>
Expand Down
6 changes: 3 additions & 3 deletions layouts/basic/modules/Vtiger/Detail/ProcessWizard.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
{/foreach}
</div>
<div class="process-actions mt-3 mb-1 text-center">
{foreach item=LINK from=$PROCESS_WIZARD->getActions()}
{include file=\App\Layout::getTemplatePath('ButtonLink.tpl', $MODULE_NAME) BUTTON_VIEW='detailViewProcessWizard' BREAKPOINT='md' CLASS='c-btn-link--responsive'}
{/foreach}
{if !empty($PROCESS_WIZARD->getActions())}
{include file=\App\Layout::getTemplatePath('ButtonLinks.tpl', $MODULE_NAME) LINKS=$PROCESS_WIZARD->getActions() BUTTON_VIEW='detailViewProcessWizard' BREAKPOINT='md' MODULE=$MODULE_NAME SKIP_GROUP=true CLASS='c-btn-link--responsive'}
{/if}
</div>
{/if}
<!-- /tpl-Base-Detail-ProcessWizard -->
Expand Down
4 changes: 1 addition & 3 deletions layouts/basic/modules/Vtiger/Detail/Widget/Basic.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@
</button>
{/if}
{if !empty($WIDGET['buttonHeader'])}
{foreach from=$WIDGET['buttonHeader'] item=$LINK}
{include file=\App\Layout::getTemplatePath('ButtonLink.tpl', $MODULE_NAME) BUTTON_VIEW='detailViewBasic' MODULE=$MODULE_NAME}
{/foreach}
{include file=\App\Layout::getTemplatePath('ButtonLinks.tpl', $MODULE_NAME) LINKS=$WIDGET['buttonHeader'] BUTTON_VIEW='detailViewBasic' MODULE=$MODULE_NAME SKIP_GROUP=true}
{/if}
{/if}
</div>
Expand Down
Loading

0 comments on commit b0c7cc9

Please sign in to comment.