{if $is_bound_with_webasyst_contact}
{* own or other uses's profile is connected to webasyst ID *}
{if $webasyst_id_email}
{sprintf(_w('Webasyst ID account %s is connected.'), $webasyst_id_email)}
{else}
[s`Sign in with Webasyst ID`] [s`is connected`].
{/if}
{* authorize into customer center - available only for own profile *}
{if $customer_center_auth_url}
[s`Go to the Webasyst Customer Center`]
{/if}
[s`Disconnect`]
{elseif $is_own_profile}
{* own profile is not connected to webasyst ID *}
[s`Connect your Webasyst ID account and sign into the backend securely with no extra passwords.`] [s`How it works?`]
{else}
{* other user's profile (not own) is connected to webasyst ID *}
[s`Sign in with Webasyst ID`] [s`is not connected`].
{/if}
{/if}
{/capture}
{if !$is_superadmin}
[`Login`]
{if $contact.login}{$contact.login|escape}{/if}
{$password_block}
{$waid_block}
{elseif $is_superadmin}
[`Backend`]
{if $gFullAccess}
[`Administrator`][`This access level is inherited from groups. To change it, please adjust group settings or edit group membership for this user.`]
{elseif $fullAccess && !empty($own_profile)}
[`Administrator`] [`You cannot revoke administrative access level for yourself. Only another Administrator can do this.`]
{else}
[`Confirm access change`]
[`or`]
[`cancel`]
{if !$gNoAccess}
[`Cannot set “No access” because some access rights are inherited from groups. To revoke access rights, edit group settings or group membership for this user.`]
{/if}
[`Saved`]
{/if}
{* Invite tokens *}
{foreach $invite_tokens as $_token}
{* Output all possible names to be able to change them via JS *}
{foreach $access_types as $at}
{$at.name|default:""|escape}
{/foreach}
{/foreach}
{/if}{* if $is_superadmin *}
{* Access *}
[`Access`]
{* Toggle to ban user or contact. Can not ban self. *}
{if empty($own_profile)}{strip}
[`Block contact`][`Unblock contact`]
{/strip}{else}
{if $contact.is_user == '-1'}[`Disabled`]{else}[`Enabled`]{/if}
{/if}
{if $personal_portal_available}
[`Available`]
{else}
[`Not available`]
{/if}
[`Customer portal is a part of your site available for registered clients and containing their personal data. To access their customer portals, your clients must log in with an email address and a password.`]
{if $is_superadmin}
{sprintf('[`Manage personal portal settings in Site app.`]', "`$wa_backend_url`site/#/personal/settings")}
{/if}