{user ? 'Edit User' : 'Create New User'}
{user ? `Editing: ${user.name}` : 'Fill in the details below to create a new system user'}
{#if status}
{status}
{/if} {#if errors && errors.length > 0}
{#each errors as error}
{error}
{/each}
{/if}
{#if user}
{/if}
Full Name
Email Address
Roles
{#each roles as role}
toggleRole(role.id)} >
{role.name}
{/each}
Password {user ? '(Leave blank to keep current)' : ''}
Confirm Password
{user ? 'Update User' : 'Create User'}
Cancel