{$i18n.t('Edit User')}
{ submitHandler(); }} >
User profile
{selectedUser.name}
{$i18n.t('Created at')} {dayjs(selectedUser.created_at * 1000).format('LL')}
{$i18n.t('Role')}
{$i18n.t('Email')}
{$i18n.t('Name')}
{$i18n.t('New Password')}
{$i18n.t('Groups')}
{#if loadingGroups}
{$i18n.t('Loading groups...')}
{:else if _user_groups.length === 0}
{$i18n.t('No groups assigned')}
{:else}
{_user_groups.map(g => g.name).join(', ')}
{/if}