{* HEADER *}

[`SMS`]

{if count($sms_adapters)}

{sprintf('[`Once connection to a gateway is set up, add SMS notifications in “Notifications” settings.`]', "{$wa_app_url}settings/notifications/")}
{sprintf('[`See documentation for details.`]', '[`https://support.webasyst.com/22505/crm-sms-notifications/`]')}

{else}

{sprintf('[`To enable SMS message sending, install and configure sending plugin for your preferred SMS gateway.
Browse for SMS gateway plugins in Installer app.`]', $wa_backend_url|cat:'installer/#/plugins/wa-plugins/sms/')}

{/if}
[s`National direct-dialing code (NDD)`]
{$_phone_transform_prefix = $phone_transform_prefix|default:[]}
{$_input_code = $_phone_transform_prefix['input_code']|default:''}
[s`Enter the NDD code which is used for making calls within your country.`]
[s`The NDD, if specified, will be replaced with the country code in website visitors’ phone numbers.`]
[s`Country code`]
{$_output_code = $_phone_transform_prefix['output_code']|default:''} +
[s`Enter your country’s phone number code to be used in website visitors’ phone numbers instead of the NDD.`]
{if count($sms_adapters)} {foreach $sms_adapters as $i => $a}

{if $a.icon} {/if}{$a.name}

{if !empty($a.controls_html)} {$a.controls_html} {else}
{if isset($a.controls.from.title)}{$a.controls.from.title}{else}[`Sender IDs`]{/if}
{strip} {/strip}

{if isset($a.controls.from.description)}{$a.controls.from.description}{else}[`Enter Sender IDs to use with this SMS gateway (Sender ID is either your phone number or up-to-11-characters text label). Enter * to use default Sender ID issued for your account by the gateway.`]{/if}

{foreach $a.controls as $k => $v} {if $k != 'from'}
{$v.title}
{if ifset($v.control_type) == 'checkbox'} {else} {/if} {if !empty($v.description)}

{$v.description}

{/if}
{/if} {/foreach} {/if}
{/foreach} {/if}