{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:[]}
{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'}
{/if}
{/foreach}
{/if}
{/foreach}
{/if}