Files
CRM/layouts/v7/modules/Settings/Leads/MappingDetail.tpl
BACHIR SOULDI 2794e62571 first commit
2025-09-28 08:49:37 +01:00

68 lines
3.9 KiB
Smarty

{*+**********************************************************************************
* The contents of this file are subject to the vtiger CRM Public License Version 1.1
* ("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="leadsFieldMappingListPageDiv">
<div class="col-sm-12 col-xs-12">
<div class="row settingsHeader">
<span class="col-sm-12">
<span class="pull-right">
{foreach item=LINK_MODEL from=$MODULE_MODEL->getDetailViewLinks()}
<button type="button" class="btn btn-default" onclick={$LINK_MODEL->getUrl()}>{vtranslate($LINK_MODEL->getLabel(), $QUALIFIED_MODULE)}</button>
{/foreach}
</span>
</span>
</div>
<div class="contents table-container" id="detailView">
<table id="listview-table" class="table listview-table">
<thead>
<tr>
<th width="5%"></th>
<th width="15%">{vtranslate('LBL_FIELD_LABEL', $QUALIFIED_MODULE)}</th>
<th width="15%">{vtranslate('LBL_FIELD_TYPE', $QUALIFIED_MODULE)}</th>
<th colspan="3" width="70%">{vtranslate('LBL_MAPPING_WITH_OTHER_MODULES', $QUALIFIED_MODULE)}</th>
</tr>
<tr>
<th width="5%">{vtranslate('LBL_ACTIONS', $QUALIFIED_MODULE)}</th>
{foreach key=key item=LABEL from=$MODULE_MODEL->getHeaders()}
<th width="15%">{vtranslate($LABEL, $LABEL)}</th>
{/foreach}
</tr>
</thead>
<tbody>
{foreach key=MAPPING_ID item=MAPPING from=$MODULE_MODEL->getMapping()}
<tr class="listViewEntries" data-cfmid="{$MAPPING_ID}">
<td width="5%">
{if $MAPPING['editable'] eq 1}
{foreach item=LINK_MODEL from=$MODULE_MODEL->getMappingLinks()}
<div class="table-actions">
<span>
<a onclick={$LINK_MODEL->getUrl()}><i title="{vtranslate($LINK_MODEL->getLabel(), $MODULE)}" class="fa fa-trash alignMiddle"></i></a>
</span>
</div>
{/foreach}
{/if}
</td>
<td width="10%">{vtranslate({$MAPPING['Leads']['label']}, 'Leads')}</td>
<td width="10%">{vtranslate({$MAPPING['Leads']['fieldDataType']}, $QUALIFIED_MODULE)}</td>
<td width="10%">{vtranslate({$MAPPING['Accounts']['label']}, 'Accounts')}</td>
<td width="10%">{vtranslate({$MAPPING['Contacts']['label']}, 'Contacts')}</td>
<td width="10%">{vtranslate({$MAPPING['Potentials']['label']}, 'Potentials')}</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
<div id="scroller_wrapper" class="bottom-fixed-scroll">
<div id="scroller" class="scroller-div"></div>
</div>
</div>
</div>
{/strip}