Files
upstream-espocrm/client/res/templates/fields/phone/detail.tpl
upstream-mirror 7cc7e6b4f3
Some checks failed
Test / Test on PHP 8.3 (push) Failing after 5s
Test / Test on PHP 8.4 (push) Failing after 4s
Test / Test on PHP 8.5 (push) Failing after 3s
TypeScript static analysis / TypeScript check (push) Failing after 14s
Test Integration on MySQL / Test on PHP 8.3 (push) Failing after 2s
Test Integration on MySQL / Test on PHP 8.5 (push) Failing after 0s
Test Integration on PostgreSQL / Test on PHP 8.4 fix (push) Failing after 1s
Test Integration on PostgreSQL / Test on PHP 8.4 master (push) Failing after 1s
snapshot of https://github.com/espocrm/espocrm.git (master, 2026-09-18; blobs > 131072B omitted)
2026-09-18 04:19:15 +05:00

39 lines
1.2 KiB
Smarty

{{#if phoneNumberData}}
{{#each phoneNumberData}}
<div>
{{#unless invalid}}
{{#unless erased}}
<a
href="tel:{{valueForLink}}"
data-phone-number="{{valueForLink}}"
data-action="dial"
style="display: inline-block;"
class="selectable"
>
{{/unless}}
{{/unless}}
<span {{#if lineThrough}}style="text-decoration: line-through"{{/if}}>{{phoneNumber}}</span>
{{#unless invalid}}
{{#unless erased}}
</a>
{{/unless}}
{{/unless}}
{{#if type}}
<span class="text-muted small">{{translateOption type scope=../scope field=../name}}</span>
{{/if}}
</div>
{{/each}}
{{else}}
{{#if value}}
{{#if lineThrough}}<s>{{/if}}<a
href="tel:{{valueForLink}}"
data-phone-number="{{valueForLink}}"
data-action="dial"
class="selectable"
>{{value}}</a>{{#if lineThrough}}</s>{{/if}}
{{else}}
{{#if valueIsSet}}<span class="none-value">{{translate 'None'}}</span>{{else}}
<span class="loading-value"></span>{{/if}}
{{/if}}
{{/if}}