{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}
{sprintf(_w('%sSign-in with Webasyst ID%s is connected.'), '', '')}
{/if}
{* authorize into customer center - available only for own profile *}
{if $customer_center_auth_url}
[`Go to the Webasyst Customer Center`]
{/if}
{if !$is_webasyst_id_forced}
[`Disconnect`]
{/if}
{elseif $is_own_profile}
{* own profile is not connected to webasyst ID *}
[`Connect your Webasyst ID account and sign into the backend securely with no extra passwords.`] [`How does it work?`]
{else}
{* other user's profile (not own) is connected to webasyst ID *}
{sprintf(_w('%sSign-in with Webasyst ID%s is not connected.'), '', '')}
{/if}
{/if}
{/capture}
{if !$is_superadmin}
{if !$is_webasyst_id_forced}
[`Login`]
{if $contact.login}{$contact.login|escape}{/if}
{$password_block}
{/if}
{$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}
{$_has_credentials = $contact.login && $contact.password}
{*
Selector not avaiable if contact without credentials and webasyst ID forced mode on
Only option for contact became backend user send invitation link
*}
{$_selector_avaiable = !$is_webasyst_id_forced || $_has_credentials}
{if $_selector_avaiable}
[`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`]
{else}
[`No access`]
{/if}
{/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}