feat: edit view
This commit is contained in:
parent
5d956cbfd7
commit
51540324b4
|
|
@ -1,10 +1,8 @@
|
|||
<script setup lang="ts">
|
||||
import { useUserStore } from "@/stores/user";
|
||||
import { useEntities } from "@/services/onboarding";
|
||||
import { ref } from "vue";
|
||||
|
||||
const user = useUserStore();
|
||||
const { organisations } = useEntities();
|
||||
|
||||
const formData = ref({
|
||||
firstName: user.first_name,
|
||||
|
|
@ -33,10 +31,10 @@ const formData = ref({
|
|||
</label>
|
||||
<div class="mb-4">
|
||||
<input
|
||||
id="first-name"
|
||||
v-model="formData.firstName"
|
||||
type="text"
|
||||
name="first-name"
|
||||
id="first-name"
|
||||
autocomplete="given-name"
|
||||
disabled
|
||||
class="disabled:bg-gray-50 block w-full border-0 py-1.5 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-blue-600 disabled:cursor-not-allowed disabled:text-gray-500 disabled:ring-gray-200 sm:max-w-xs sm:text-sm sm:leading-6"
|
||||
|
|
@ -47,10 +45,10 @@ const formData = ref({
|
|||
</label>
|
||||
<div class="mb-4">
|
||||
<input
|
||||
id="last-name"
|
||||
v-model="formData.lastName"
|
||||
type="text"
|
||||
name="last-name"
|
||||
id="last-name"
|
||||
autocomplete="family-name"
|
||||
disabled
|
||||
class="disabled:bg-gray-50 block w-full border-0 py-1.5 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-blue-600 disabled:cursor-not-allowed disabled:text-gray-500 disabled:ring-gray-200 sm:max-w-xs sm:text-sm sm:leading-6"
|
||||
|
|
@ -61,10 +59,10 @@ const formData = ref({
|
|||
</label>
|
||||
<div class="mb-8">
|
||||
<input
|
||||
id="email"
|
||||
v-model="formData.email"
|
||||
type="email"
|
||||
name="email"
|
||||
id="email"
|
||||
autocomplete="email"
|
||||
disabled
|
||||
class="disabled:bg-gray-50 block w-full border-0 py-1.5 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-blue-600 disabled:cursor-not-allowed disabled:text-gray-500 disabled:ring-gray-200 sm:max-w-xs sm:text-sm sm:leading-6"
|
||||
|
|
@ -79,10 +77,10 @@ const formData = ref({
|
|||
</label>
|
||||
<div class="mb-4">
|
||||
<input
|
||||
id="street"
|
||||
v-model="formData.street"
|
||||
type="text"
|
||||
name="street"
|
||||
id="street"
|
||||
autocomplete="street"
|
||||
class="disabled:bg-gray-50 block w-full border-0 py-1.5 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-blue-600 disabled:cursor-not-allowed disabled:text-gray-500 disabled:ring-gray-200 sm:max-w-xs sm:text-sm sm:leading-6"
|
||||
/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue