layouts/basic/modules/Users/PreferenceDetailViewHeader.tpl
{*<!--
/*********************************************************************************
** 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.
* Contributor(s): YetiForce S.A.
********************************************************************************/
-->*}
{strip}
<!-- tpl-Users-PreferenceDetailViewHeader -->
{assign var="MODULE_NAME" value=$MODULE_MODEL->get('name')}
<input id="recordId" type="hidden" value="{$RECORD->getId()}" />
<div class="tpl-Users-PreferenceDetailViewHeader detailViewContainer">
<div class="detailViewTitle px-2 marginTop5 d-flex flex-column justify-content-lg-between flex-lg-row"
id="prefPageHeader">
<div class="ml-0 d-flex justify-content-center">
<div class="logo pl-0 mt-2 d-flex">
{assign var=IMAGE value=$RECORD->getImage()}
{if $IMAGE}
<img src="{$IMAGE.url}" class="mr-2" alt="{$RECORD->getName()}" title="{$RECORD->getName()}"
height="80" align="left">
<br />
{else}
<span class="o-detail__icon js-detail__icon yfm-{$MODULE}"></span>
{/if}
</div>
<div class="p-0 d-flex flex-column">
<div id="myPrefHeading">
<h3 class="my-0">{\App\Language::translate('LBL_MY_PREFERENCES')} </h3>
</div>
<div>
{\App\Language::translate('LBL_USERDETAIL_INFO', $MODULE_NAME)}
<strong class="ml-1">"{$RECORD->getName()}"</strong>
</div>
</div>
</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 $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}
</div>
</div>
</div>
<div class="detailViewInfo px-2 mt-0 userPreferences w-100">
<div class="details w-100">
<form id="detailView" data-name-fields="{\App\Purifier::encodeHtml(\App\Json::encode($MODULE_MODEL->getNameFields()))}"
method="POST">
<div class="contents">
<!-- /tpl-Users-PreferenceDetailViewHeader -->
{/strip}