PATH:
home
/
letacommog
/
crmleta
/
layouts
/
vlayout
/
modules
/
Vtiger
/
uitypes
{*<!-- /********************************************************************************* ** 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. * ********************************************************************************/ -->*} {* To check current user has permission to make outbound call. If so, make all the detail view phone fields as links to call *} {assign var=MODULE value='PBXManager'} {assign var=MODULEMODEL value=Vtiger_Module_Model::getInstance($MODULE)} {assign var=FIELD_VALUE value=$FIELD_MODEL->get('fieldvalue')} {if $MODULEMODEL and $MODULEMODEL->isActive() and $FIELD_VALUE} {assign var=PERMISSION value=PBXManager_Server_Model::checkPermissionForOutgoingCall()} {if $PERMISSION} {assign var=PHONE_FIELD_VALUE value=$FIELD_VALUE} {assign var=PHONE_NUMBER value=$PHONE_FIELD_VALUE|regex_replace:"/[-()\s]/":""} <a class="phoneField" data-value="{$PHONE_NUMBER}" record="{$RECORD->getId()}" onclick="Vtiger_PBXManager_Js.registerPBXOutboundCall('{$PHONE_NUMBER}',{$RECORD->getId()})">{$FIELD_MODEL->get('fieldvalue')}</a> {else} {$FIELD_MODEL->getDisplayValue($FIELD_MODEL->get('fieldvalue'), $RECORD->getId(), $RECORD)} {/if} {else} {$FIELD_MODEL->getDisplayValue($FIELD_MODEL->get('fieldvalue'), $RECORD->getId(), $RECORD)} {/if}
[+]
..
[-] PhoneDetailView.tpl
[edit]
[-] DocumentsFolder.tpl
[edit]
[-] Url.tpl
[edit]
[-] String.tpl
[edit]
[-] Salutation.tpl
[edit]
[-] SalutationDetailView.tpl
[edit]
[-] Recurrence.tpl
[edit]
[-] TimeFieldSearchView.tpl
[edit]
[-] Text.tpl
[edit]
[-] MultiSelectFieldSearchView.tpl
[edit]
[-] Theme.tpl
[edit]
[-] Boolean.tpl
[edit]
[-] Email.tpl
[edit]
[-] Phone.tpl
[edit]
[-] Number.tpl
[edit]
[-] Currency.tpl
[edit]
[-] UserRole.tpl
[edit]
[-] MultiPicklist.tpl
[edit]
[-] FieldSearchView.tpl
[edit]
[-] CurrencyList.tpl
[edit]
[-] Password.tpl
[edit]
[-] ReminderDetailView.tpl
[edit]
[-] StringDetailView.tpl
[edit]
[-] BooleanFieldSearchView.tpl
[edit]
[-] PickListFieldSearchView.tpl
[edit]
[-] Owner.tpl
[edit]
[-] Reference.tpl
[edit]
[-] ProductTax.tpl
[edit]
[-] RecurrenceDetailView.tpl
[edit]
[-] DateTime.tpl
[edit]
[-] DocumentsFileUpload.tpl
[edit]
[-] FileLocationType.tpl
[edit]
[-] Image.tpl
[edit]
[-] Picklist.tpl
[edit]
[-] DateFieldSearchView.tpl
[edit]
[-] OwnerFieldSearchView.tpl
[edit]
[-] Reminder.tpl
[edit]
[-] MultiOwner.tpl
[edit]
[-] Percentage.tpl
[edit]
[-] ImageDetailView.tpl
[edit]
[-] Date.tpl
[edit]
[-] Time.tpl
[edit]