{#if isLoading} {:else if user}

{user.id ? $t('user.edit') : $t('user.create')}

{#if form?.success}

Um einen fehlerhaften upload Ihres Bildes zu vermeiden, clicke bitte auf den "Update" Button unten.

{/if} {#if form?.errors} {#each form?.errors as error (error.id)}

{$t(error.field) + ': ' + $t(error.key)}

{/each} {/if}
{#each TABS as tab} {/each}
{#if hasPrivilige(editor, PERMISSIONS.Super)} {/if} {#if hasPrivilige(user, PERMISSIONS.Member)} {/if} {#if hasPrivilige(user, PERMISSIONS.Member)} {/if} {#if !readonlyUser} {/if}
{#if hasPrivilige(user, PERMISSIONS.Member)}

{$t('licence_categories')}

{#each Object.entries(groupedCategories) as [, categories], groupIndex} {#if groupIndex > 0}
{/if} {#each categories as category}
cat.category === category.category)} />
{$t(`licenceCategory.${category.category}`)}
{/each} {/each}
{/if}
{#if hasPrivilige(user, PERMISSIONS.Member)}

{$t('subscription.monthly_fee')}: {selectedSubscriptionModel?.monthly_fee || '-'} €

{$t('subscription.hourly_rate')}: {selectedSubscriptionModel?.hourly_rate || '-'} €

{#if selectedSubscriptionModel?.included_hours_per_year}

{$t('subscription.included_hours_per_year')}: {selectedSubscriptionModel?.included_hours_per_year}

{/if} {#if selectedSubscriptionModel?.included_hours_per_month}

{$t('subscription.included_hours_per_month')}: {selectedSubscriptionModel?.included_hours_per_month}

{/if}
{/if}

{$t('details')}: {selectedSubscriptionModel?.details || '-'}

{#if selectedSubscriptionModel?.conditions}

{$t('subscription.conditions')}: {selectedSubscriptionModel?.conditions}

{/if}
{#if hasPrivilige(user, PERMISSIONS.Member)} {/if}
{#if isUpdating} {:else} {/if}
{/if}