|
30 | 30 | <h3 class="heading">Work Experience</h3> |
31 | 31 | <div |
32 | 32 | v-if="memberAuth" |
| 33 | + class="cursor-pointer bg-contain w-5 h-5 bg-no-repeat" |
| 34 | + :class="showAddWorkExperienceForm ? 'bg-xIcon' : 'bg-addIcon'" |
33 | 35 | @click=" |
34 | 36 | () => { |
35 | | - showAddWorkExperienceForm = true |
| 37 | + showAddWorkExperienceForm = !showAddWorkExperienceForm |
36 | 38 | showUpdateWorkExperienceForm = false |
37 | 39 | state.form.workExperience = { ...defaultWorkExperience } |
38 | 40 | } |
39 | 41 | " |
40 | 42 | > |
41 | | - <img |
42 | | - v-if="!showAddWorkExperienceForm" |
43 | | - src="/icons/add.svg" |
44 | | - alt="" |
45 | | - class="cursor-pointer" |
46 | | - /> |
47 | | - <img v-else src="/icons/x.svg" alt="" class="cursor-pointer" /> |
48 | 43 | </div> |
49 | 44 | </div> |
50 | 45 | <ul v-if="props.experience.length"> |
|
58 | 53 | <h4 class="title">{{ experience.company_name }}</h4> |
59 | 54 | <h5 class="sub-title">{{ experience.position }}</h5> |
60 | 55 | </div> |
61 | | - <p class="date-container"> |
62 | | - {{ formatDate(experience.start_date) }} – |
63 | | - {{ |
64 | | - experience.end_date |
65 | | - ? formatDate(experience.end_date) |
66 | | - : 'Current' |
67 | | - }} |
68 | | - </p> |
69 | | - <div class="flex justify-end mt-4 md:mt-0"> |
70 | | - <!-- Delete Work Experience Form --> |
71 | | - <div v-if="memberAuth"> |
72 | | - <form @submit.prevent="deleteMemberWorkExperience"> |
| 56 | + <div class="w-full flex flex-row justify-between"> |
| 57 | + <p class="date-container"> |
| 58 | + {{ formatDate(experience.start_date) }} – |
| 59 | + {{ |
| 60 | + experience.end_date |
| 61 | + ? formatDate(experience.end_date) |
| 62 | + : 'Current' |
| 63 | + }} |
| 64 | + </p> |
| 65 | + <div |
| 66 | + v-if="memberAuth" |
| 67 | + class="flex flex-row justify-around gap-x-2 m-2" |
| 68 | + > |
| 69 | + <!-- Delete Work Experience Form --> |
| 70 | + <form |
| 71 | + class="inline-flex w-4 h-4" |
| 72 | + @submit.prevent="deleteMemberWorkExperience"> |
73 | 73 | <input |
74 | 74 | type="hidden" |
75 | 75 | name="experienceId" |
76 | 76 | :value="experience.id" |
77 | 77 | /> |
78 | 78 | <FormAppButton btnStyle="delete-btn"></FormAppButton> |
79 | 79 | </form> |
80 | | - </div> |
81 | | - <!-- Update Work Experience Form Trigger --> |
82 | | - <div |
83 | | - v-if="memberAuth" |
84 | | - @click=" |
85 | | - () => { |
86 | | - showUpdateWorkExperienceForm = true |
87 | | - showAddWorkExperienceForm = false |
88 | | - state.form.workExperience = { ...experience } |
89 | | - } |
90 | | - " |
91 | | - > |
92 | | - <img src="/icons/edit.svg" alt="" class="cursor-pointer" /> |
| 80 | + <!-- Update Work Experience Form Trigger --> |
| 81 | + <div |
| 82 | + class="edit-btn bg-editIcon" |
| 83 | + @click=" |
| 84 | + () => { |
| 85 | + showUpdateWorkExperienceForm = true |
| 86 | + showAddWorkExperienceForm = false |
| 87 | + state.form.workExperience = { ...experience } |
| 88 | + } |
| 89 | + " |
| 90 | + ></div> |
93 | 91 | </div> |
94 | 92 | </div> |
95 | 93 | </div> |
|
223 | 221 | <h3 class="heading">Education</h3> |
224 | 222 | <div |
225 | 223 | v-if="memberAuth" |
| 224 | + class="cursor-pointer bg-contain w-5 h-5 bg-no-repeat" |
| 225 | + :class="showAddEducationForm ? 'bg-xIcon' : 'bg-addIcon'" |
226 | 226 | @click=" |
227 | 227 | () => { |
228 | | - showAddEducationForm = true |
| 228 | + showAddEducationForm = !showAddEducationForm |
229 | 229 | showUpdateEducationForm = false |
230 | 230 | state.form.education = { ...defaultEducation } |
231 | 231 | } |
232 | 232 | " |
233 | 233 | > |
234 | | - <img |
235 | | - v-if="!showAddEducationForm" |
236 | | - src="/icons/add.svg" |
237 | | - alt="" |
238 | | - class="cursor-pointer" |
239 | | - /> |
240 | | - <img v-else src="/icons/x.svg" alt="" class="cursor-pointer" /> |
241 | 234 | </div> |
242 | 235 | </div> |
243 | 236 | <ul v-if="props.education.length"> |
|
251 | 244 | <h4 class="title">{{ education.institution_name }}</h4> |
252 | 245 | <h5 class="sub-title">{{ education.degree }}</h5> |
253 | 246 | </div> |
254 | | - <p class="date-container"> |
255 | | - {{ |
256 | | - education.graduated |
257 | | - ? formatDate(education.graduated) |
258 | | - : 'Current' |
259 | | - }} |
260 | | - </p> |
261 | | - <div class="flex justify-end mt-4 md:mt-0"> |
262 | | - <!-- Delete Education Form Button --> |
263 | | - <div v-if="memberAuth"> |
264 | | - <form @submit.prevent="deleteMemberEducation"> |
| 247 | + <div class="w-full flex flex-row justify-between"> |
| 248 | + <p class="date-container"> |
| 249 | + {{ |
| 250 | + education.graduated |
| 251 | + ? formatDate(education.graduated) |
| 252 | + : 'Current' |
| 253 | + }} |
| 254 | + </p> |
| 255 | + <div |
| 256 | + v-if="memberAuth" |
| 257 | + class="flex flex-row justify-around gap-x-2 m-2" |
| 258 | + > |
| 259 | + <!-- Delete Education Form Button --> |
| 260 | + <form |
| 261 | + class="inline-flex w-4 h-4" |
| 262 | + @submit.prevent="deleteMemberEducation" |
| 263 | + > |
265 | 264 | <input |
266 | 265 | type="hidden" |
267 | 266 | name="educationId" |
268 | 267 | :value="education.id" |
269 | 268 | /> |
270 | 269 | <FormAppButton btnStyle="delete-btn"></FormAppButton> |
271 | 270 | </form> |
272 | | - </div> |
273 | | - <!-- Update Education trigger --> |
274 | | - <div |
275 | | - v-if="memberAuth" |
276 | | - @click=" |
277 | | - () => { |
278 | | - showUpdateEducationForm = true |
279 | | - showAddEducationForm = false |
280 | | - state.form.education = { ...education } |
281 | | - } |
282 | | - " |
283 | | - > |
284 | | - <img src="/icons/edit.svg" alt="" class="cursor-pointer" /> |
| 271 | + <!-- Update Education trigger --> |
| 272 | + <div |
| 273 | + @click=" |
| 274 | + () => { |
| 275 | + showUpdateEducationForm = true |
| 276 | + showAddEducationForm = false |
| 277 | + state.form.education = { ...education } |
| 278 | + } |
| 279 | + " |
| 280 | + class="edit-btn bg-editIcon" |
| 281 | + ></div> |
285 | 282 | </div> |
286 | 283 | </div> |
287 | 284 | </div> |
|
0 commit comments