{$_title = "[s`Sign-in with Webasyst ID`] — {$wa->accountName(false)}"}

[s`Sign-in with Webasyst ID`] {if $is_connected} [s`Disable Webasyst ID sign-in for all users`] {/if}

[s`Sign-in with Webasyst ID is a universal authorization option that unites Webasyst Customer Center and sign-in to Webasyst backends on your own domains.`] [s`Webasyst ID allows you to use all Webasyst apps, sites, and services, and to avoid the use of different passwords on various domains.`] {sprintf(_ws('%sRead more%s.'), '', '')}
{if $is_connected}
{sprintf(_ws('Use only sign-in option with Webasyst ID — recommended'), 's-green')} [s`Saved`]
[s`When sign-in with Webasyst ID is enabled by default, the usual sign-in method is disabled, with all its configuration saved for later use. Backend users who are not yet connected to Webasyst ID will be able to get connected later on, or you may send them an email invitation. Newly added users will get connected to Webasyst ID right away.`]
{if $not_connected_users}

[s`Pending upgrade to Webasyst ID`] ({_ws("%d user", "%d users", $not_connected_users_count)})

{foreach $not_connected_users as $user} {/foreach}
{$user.name|escape} [s`Awaiting the user to confirm`] {$_email = $user.email.0|default:''} {if $_email}
{if $user.is_current_contact} [s`Connect Webasyst ID for my account`] {else} {if !$user.waid_invite_datetime} {$_link_text = '[s`Send sign-in instructions by email`]'} {else} {$_link_text = '[s`Re-send`]'} {/if} {$_link_text} {if $user.waid_invite_datetime}{$user.waid_invite_datetime|wa_date:'humandatetime'}{/if} {/if}
{else} [s`User email is unknown.`] {/if}
{/if} {if $connected_users}

[s`Successfully upgraded to Webasyst ID`] {if $users_count == $connected_users_count} ([s`all users!`]) {else} ({_ws("%d user", "%d users", $connected_users_count)}) {/if}

{foreach $connected_users as $user} {/foreach}
[s`Name`] [s`Webasyst ID`] [s`Connected`] [s`Last sign-in with Webasyst ID`]
{$user.name|escape} {$user.webasyst_id|escape} {$user.waid_create_datetime|wa_date:'humandatetime'} {$user.waid_login_datetime|wa_date:'humandatetime'}
{/if} {else}

[s`Allow users to use their Webasyst ID accounts to sign into the backend:`]

{if $users_count > 1}

[s`Should the sending of email invitations fail, users will still see a notification with an upgrade link in the backend. Users will also have the option to enable or disable the sign-in with Webasyst ID in their profiles.`]
{/if}
{/if} {$_locale = [ 'disabled_toggle_reason' => _ws('You need to connect Webasyst ID to your account.') ]}