56 lines
2.5 KiB
Smarty
56 lines
2.5 KiB
Smarty
{*<!--
|
|
/*********************************************************************************
|
|
** 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.
|
|
*
|
|
********************************************************************************/
|
|
-->*}
|
|
{strip}
|
|
<div class="col-lg-6 col-md-6 col-sm-6">
|
|
<div class="record-header clearfix ">
|
|
<div class="hidden-sm hidden-xs recordImage bgcontacts app-{$SELECTED_MENU_CATEGORY}">
|
|
{assign var=IMAGE_DETAILS value=$RECORD->getImageDetails()}
|
|
{foreach key=ITER item=IMAGE_INFO from=$IMAGE_DETAILS}
|
|
{if !empty($IMAGE_INFO.path)}
|
|
<img src="{$IMAGE_INFO.path}_{$IMAGE_INFO.orgname}" alt="{$IMAGE_INFO.orgname}" title="{$IMAGE_INFO.orgname}" width="100%" height="100%" align="left"><br>
|
|
{else}
|
|
<img src="{vimage_path('summary_Contact.png')}" class="summaryImg"/>
|
|
{/if}
|
|
{/foreach}
|
|
{if empty($IMAGE_DETAILS)}
|
|
<div class="name"><span><strong>{$MODULE_MODEL->getModuleIcon()}</strong></span></div>
|
|
{/if}
|
|
</div>
|
|
<div class="recordBasicInfo">
|
|
<div class="info-row">
|
|
<h4>
|
|
<span class="recordLabel pushDown" title="{$RECORD->getDisplayValue('salutationtype')} {$RECORD->getName()}">
|
|
{assign var=COUNTER value=0}
|
|
{foreach item=NAME_FIELD from=$MODULE_MODEL->getNameFields()}
|
|
{assign var=FIELD_MODEL value=$MODULE_MODEL->getField($NAME_FIELD)}
|
|
{if $FIELD_MODEL->getPermissions()}
|
|
<span class="{$NAME_FIELD}">
|
|
{if $RECORD->getDisplayValue('salutationtype') && $FIELD_MODEL->getName() eq 'firstname'}
|
|
{$RECORD->getDisplayValue('salutationtype')}
|
|
{/if}
|
|
{trim($RECORD->get($NAME_FIELD))}
|
|
</span>
|
|
{if $COUNTER eq 0 && ($RECORD->get($NAME_FIELD))} {assign var=COUNTER value=$COUNTER+1}{/if}
|
|
{/if}
|
|
{/foreach}
|
|
</span>
|
|
</h4>
|
|
</div>
|
|
{include file="DetailViewHeaderFieldsView.tpl"|vtemplate_path:$MODULE}
|
|
<div class="info-row">
|
|
<i class="fa fa-map-marker"></i>
|
|
<a class="showMap" href="javascript:void(0);" onclick='Vtiger_Index_Js.showMap(this);' data-module='{$RECORD->getModule()->getName()}' data-record='{$RECORD->getId()}'>{vtranslate('LBL_SHOW_MAP', $MODULE_NAME)}</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{/strip} |