✨ feat (user): implement user entry form with status and type selection
This commit is contained in:
No files matched your search
@@ -3,8 +3,9 @@ import Action from '~/components/pub/custom-ui/nav-footer/ba-dr-su.vue'
|
||||
|
||||
const data = ref({
|
||||
name: '',
|
||||
specialization: '',
|
||||
hospital: '',
|
||||
password: '',
|
||||
status: '',
|
||||
type: '',
|
||||
})
|
||||
|
||||
function onClick(type: string) {
|
||||
@@ -23,9 +24,8 @@ function onClick(type: string) {
|
||||
<Icon name="i-lucide-user" class="me-2" />
|
||||
<span class="font-semibold">Tambah</span> Dokter
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<AppDoctorEntryForm v-model="data" />
|
||||
<AppDoctorEntryForm v-if="data.type === 'doctor'" v-model="data" />
|
||||
</div>
|
||||
<AppUserEntryForm v-model="data" />
|
||||
<div class="my-2 flex justify-end py-2">
|
||||
|
||||
Reference in New Issue
Block a user