working on UserCreate form...

This commit is contained in:
sockenklaus
2023-07-12 00:44:19 +02:00
parent 3a85d2c196
commit cd7784e04f
6 changed files with 141 additions and 44 deletions

View File

@@ -1,22 +1,33 @@
<template>
<div class="flex justify-between mb-2">
<n-button
<UserNav
@clickBack="() => { router.get('/users') }"
/>
>
</n-button>
<n-button
>
Speichern
</n-button>
</div>
<UserForm
:userModel="form"
/>
</template>
<script setup>
import BELayout from '@/layouts/BELayout.vue'
import UserForm from '@/components/UserForm.vue'
import UserForm from '@/components/Users/UserForm.vue'
import UserNav from '@/components/Users/UserNav.vue'
import { router, useForm } from '@inertiajs/vue3'
import { renderIcon } from '@/util'
import {
ArrowBackRound as Back,
SaveRound as Save
} from '@vicons/material'
defineOptions({ layout: BELayout })
const form = useForm({
username: null,
password: null,
is_admin: false,
password_repeat: null,
})
</script>