{* * User tab in contact profile. * There's no separate action for this template. It gets included from ContactsInfo.html * and template variables are loaded in ContactsInfoAction. *} {$email = ''} {$emails = $contact->get('email', 'value')} {if is_array($emails) && $emails} {$email = reset($emails)} {/if} {capture assign="password_block"} {/capture}
[`Access`]
{if empty($own_profile)} {else} {if $contact.is_user == '-1'}[`Disabled`]{else}[`Enabled`]{/if} {/if}
[`Status`]: {$status = $contact->getStatus()} {if $status == 'online'} [`Online`] {else} [`Offline`] {if !$contact.last_datetime} ([`never logged in`]) {else} ([`last login:`] {$contact.last_datetime|wa_date:"datetime"}) {/if} {/if}
{if $contact.is_user == '-1'}{$access_disable_msg}{/if}
[`Customer portal`]

{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 email and password.`] {if $superadmin} [`Personal portal settings`] [`in Site app`] {/if}

{if !empty($limited_own_profile)}
[`Login`]
{$password_block} {/if}
{if $access_to_contacts}
{if $superadmin}
[`Backend`]
{if $gFullAccess}

[`Administrator`] [`This access level is inherited from groups. To change you must customize these group settings or group membership for this user.`]

{elseif $fullAccess && !empty($own_profile)}

[`Administrator`] [`You can not revoke administrative access level for yourself. Only another Administrator can do this.`]

{else} {if !$gNoAccess} {/if} {/if}
{$password_block}
[`Belongs to groups`]
{if $groups} {foreach $groups as $id => $name} {if strlen($name) > 0}{$name|escape}{else}[`<no name>`]{/if}{if !$name@last},{/if} {/foreach} {else} [`<none>`] {/if} {if $all_groups} [`customize groups`] {/if}
{if $all_groups} {/if}
[`Access rights`]

[`Backend access rights are customized for every app separately and appear to be a combination of personal and group access rights.`]

{foreach from=$apps key=app_id item=app} {/foreach}
  {$app.name|escape} {if $app.gaccess >= 2} [`Full access is inherited from groups.`] {else} {* 'Customize' link *} {if $app.customizable} {/if} {* (i) icon with tooltip *} {if $app_id == 'contacts'} {/if} {* Loading icon and 'Saved' message *} {* Message to show when user tries to revoke access given by group. *} {if $app.gaccess > 0} {/if} {/if}
{/if}
{/if}
{if empty($readonly) && !$wa->request('readonly')} {/if}