Add TPL files
This commit is contained in:
20
include/SugarFields/Fields/New_phone/DetailView.tpl
Executable file
20
include/SugarFields/Fields/New_phone/DetailView.tpl
Executable file
@@ -0,0 +1,20 @@
|
||||
{php}
|
||||
global $current_language; $app_list_strings = return_app_list_strings_language($current_language);
|
||||
$this->assign('APP_LIST', $app_list_strings['phone_type_dom']);
|
||||
{/php}
|
||||
|
||||
{assign var=phones value="^|^"|explode:{{sugarvar key='value' string=true}}}
|
||||
|
||||
{foreach name=outer item=phone from=$phones}
|
||||
{assign var=item value="^,^"|explode:$phone}
|
||||
|
||||
{if $item.2 == '1'}
|
||||
<span>{$item.0}</span>
|
||||
{else}
|
||||
<b>{$item.0}</b>
|
||||
{/if}
|
||||
{if $item.1 == '1'} <i style="color:blue;">({$APP.LBL_PHONE_MAIN})</i>{/if}
|
||||
{if $item.2 == '1'} <i class="error">({$APP.LBL_PHONE_DONT_CALL})</i>{/if}
|
||||
(<i>{assign var=it value=$item.3}{$APP_LIST.$it}</i>)
|
||||
<br>
|
||||
{/foreach}
|
||||
Reference in New Issue
Block a user