40 lines
1.4 KiB
Vue
40 lines
1.4 KiB
Vue
<script setup lang="ts">
|
|
import { Head, router } from '@inertiajs/vue3';
|
|
import { computed } from 'vue';
|
|
import ManagedUserForm from '@/components/ManagedUserForm.vue';
|
|
import { useLocalization } from '@/composables/useLocalization';
|
|
import AppLayout from '@/layouts/AppLayout.vue';
|
|
import { create, index } from '@/routes/admin/users';
|
|
import type { BreadcrumbItem } from '@/types';
|
|
|
|
const { t } = useLocalization();
|
|
const breadcrumbs = computed<BreadcrumbItem[]>(() => [
|
|
{ title: t('adminUsers.title'), href: index() },
|
|
{ title: t('adminUsers.create.title'), href: create() },
|
|
]);
|
|
</script>
|
|
|
|
<template>
|
|
<AppLayout :breadcrumbs="breadcrumbs">
|
|
<Head :title="t('adminUsers.create.title')" />
|
|
|
|
<div
|
|
class="gap-page md:p-page mx-auto flex w-full min-w-0 max-w-4xl flex-1 flex-col p-4"
|
|
>
|
|
<header class="gap-stack grid min-w-0">
|
|
<p class="text-label text-muted-foreground uppercase">
|
|
{{ t('adminUsers.eyebrow') }}
|
|
</p>
|
|
<h1 class="text-headline-mobile md:text-headline">
|
|
{{ t('adminUsers.create.title') }}
|
|
</h1>
|
|
<p class="text-muted-foreground max-w-2xl">
|
|
{{ t('adminUsers.create.description') }}
|
|
</p>
|
|
</header>
|
|
|
|
<ManagedUserForm mode="create" @cancel="router.visit(index())" />
|
|
</div>
|
|
</AppLayout>
|
|
</template>
|