@@ -8,12 +8,13 @@ import PrimaryButton from '@/Components/PrimaryButton.vue';
88import { useProjectsStore } from ' @/utils/useProjects' ;
99import { useFocus } from ' @vueuse/core' ;
1010import ClientDropdown from ' @/Components/Common/Client/ClientDropdown.vue' ;
11- import { twMerge } from ' tailwind-merge' ;
1211import Badge from ' @/Components/Common/Badge.vue' ;
1312import { useClientsStore } from ' @/utils/useClients' ;
1413import { storeToRefs } from ' pinia' ;
1514import ProjectColorSelector from ' @/Components/Common/Project/ProjectColorSelector.vue' ;
1615import ProjectEditBillableSection from ' @/Components/Common/Project/ProjectEditBillableSection.vue' ;
16+ import { UserCircleIcon } from ' @heroicons/vue/20/solid' ;
17+ import InputLabel from ' @/Components/InputLabel.vue' ;
1718
1819const { updateProject } = useProjectsStore ();
1920const { clients } = storeToRefs (useClientsStore ());
@@ -63,10 +64,14 @@ const currentClientName = computed(() => {
6364 <div
6465 class =" sm:flex items-center space-y-2 sm:space-y-0 sm:space-x-4" >
6566 <div class =" flex-1 flex items-center" >
66- <div class =" px-3" >
67+ <div class =" text-center pr-5" >
68+ <InputLabel for =" color" value =" Color" />
6769 <ProjectColorSelector
6870 v-model =" project.color" ></ProjectColorSelector >
6971 </div >
72+ </div >
73+ <div class =" w-full" >
74+ <InputLabel for =" projectName" value =" Project name" />
7075 <TextInput
7176 id =" projectName"
7277 ref =" projectNameInput"
@@ -79,22 +84,26 @@ const currentClientName = computed(() => {
7984 autocomplete =" projectName" />
8085 </div >
8186 <div class =" " >
82- <ClientDropdown v-model =" project.client_id" >
87+ <InputLabel for =" client" value =" Client" />
88+ <ClientDropdown class =" mt-2" v-model =" project.client_id" >
8389 <template #trigger >
84- <Badge size =" large" >
85- <div
86- :class ="
87- twMerge('inline-block rounded-full')
88- " ></div >
89- <span >
90- {{ currentClientName }}
91- </span >
90+ <Badge
91+ class =" bg-input-background cursor-pointer hover:bg-tertiary"
92+ size =" xlarge" >
93+ <div class =" flex items-center space-x-2" >
94+ <UserCircleIcon
95+ class =" w-5 text-icon-default" ></UserCircleIcon >
96+ <span >
97+ {{ currentClientName }}
98+ </span >
99+ </div >
92100 </Badge >
93101 </template >
94102 </ClientDropdown >
95103 </div >
96104 </div >
97105 <ProjectEditBillableSection
106+ @submit =" submit"
98107 v-model:isBillable =" project.is_billable"
99108 v-model:billableRate ="
100109 project.billable_rate
0 commit comments