diff --git a/README.md b/README.md index 40601187..45e4a4e5 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,16 @@ The basic development workflow follows these steps: - Pages load the appropriate content from `components/content/`. - They do not contain UI or logic directly, just route level layout or guards. +### Validation + +- UI level validation in `components/app`. help users avoid mistakes before submitting. + - Lightweight/instant validation related to UX. + - Basic formatting (email regex, numeric-only, password length). + - Showing error messages directly under the field. + +- Business level validation in `components/flow`. cannot rely only on the UI, since it often requires server-side checks or rules that may change. + - More complex validation rules tied to business logic. + ## Code Conventions - Under the script setup block, putting things in group with the following order: diff --git a/app/components/app/doctor/entry-form.vue b/app/components/app/doctor/entry-form.vue index 5aec1ba3..b5ac8613 100644 --- a/app/components/app/doctor/entry-form.vue +++ b/app/components/app/doctor/entry-form.vue @@ -11,76 +11,34 @@ const data = computed({ get: () => props.modelValue, set: (val) => emit('update:modelValue', val), }) + +const items = [ + { value: 'doctor', label: 'Dokter' }, + { value: 'nurse', label: 'Perawat' }, +]