Files
L-Ami-Fiduciaire/resources/js/pages/users/Create.vue
Saad Ibn-Ezzoubayr 4807376c49 feat: implement Story 2.2 — Priority Alerts Panel with UI fixes
Add PriorityAlertsPanel component to the dashboard, update DashboardController
with alert logic, and apply misc UI fixes across sidebar, forms, and pages.
Includes epic-1 retrospective and sprint status update.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 12:33:27 +00:00

53 lines
1.2 KiB
Vue

<script setup lang="ts">
import { Head, useForm } from '@inertiajs/vue3';
import Heading from '@/components/Heading.vue';
import UserForm from '@/components/UserForm.vue';
import type { UserFormData } from '@/components/UserForm.vue';
import AppLayout from '@/layouts/AppLayout.vue';
type Props = {
indexUrl: string;
storeUrl: string;
userGroups: Record<string, string>;
};
const props = defineProps<Props>();
const form = useForm<UserFormData>({
name: '',
email: '',
password: '',
password_confirmation: '',
group: 'user',
});
function submit() {
form.post(props.storeUrl);
}
</script>
<template>
<AppLayout
:breadcrumbs="[
{ title: 'Users', href: props.indexUrl },
{ title: 'Create user' },
]"
>
<Head title="Create user" />
<div class="flex flex-col space-y-6 p-4">
<Heading
title="Create user"
description="Add a new user to the system"
/>
<UserForm
:form="form"
:user-groups="userGroups"
:show-password-fields="true"
submit-label="Create user"
@submit="submit"
/>
</div>
</AppLayout>
</template>