File tree Expand file tree Collapse file tree 3 files changed +0
-50
lines changed Expand file tree Collapse file tree 3 files changed +0
-50
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,8 @@ public function toArray($request): array
20
20
"role " => $ this ->role ,
21
21
"position " => $ this ->profile ->position ,
22
22
"employmentForm " => $ this ->profile ->employment_form ,
23
- "employmentDate " => $ this ->profile ->employment_date ->toDateString (),
24
23
"birthday " => $ this ->profile ->birthday ->toDateString (),
25
24
"slackId " => $ this ->profile ->slack_id ,
26
- "lastMedicalExamDate " => $ this ->profile ->last_medical_exam_date ?->toDateString(),
27
- "nextMedicalExamDate " => $ this ->profile ->next_medical_exam_date ?->toDateString(),
28
- "lastOhsTrainingDate " => $ this ->profile ->last_ohs_training_date ?->toDateString(),
29
- "nextOhsTrainingDate " => $ this ->profile ->next_ohs_training_date ?->toDateString(),
30
25
];
31
26
}
32
27
}
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ const form = useForm({
16
16
employmentForm: props .employmentForms [0 ],
17
17
role: props .roles [0 ],
18
18
position: null ,
19
- employmentDate: null ,
20
19
birthday: null ,
21
20
slackId: null ,
22
21
})
@@ -245,28 +244,6 @@ function createUser() {
245
244
</p >
246
245
</div >
247
246
</Listbox >
248
- <div class =" items-center py-4 sm:grid sm:grid-cols-3" >
249
- <label
250
- for =" employment_date"
251
- class =" block text-sm font-medium text-gray-700 sm:mt-px"
252
- >
253
- Data zatrudnienia
254
- </label >
255
- <div class =" mt-1 sm:col-span-2 sm:mt-0" >
256
- <FlatPickr
257
- id =" employment_date"
258
- v-model =" form.employmentDate"
259
- class =" block w-full max-w-lg rounded-md shadow-sm sm:text-sm"
260
- :class =" { 'border-red-300 text-red-900 focus:outline-none focus:ring-red-500 focus:border-red-500': form.errors.employmentDate, 'focus:ring-blumilk-500 focus:border-blumilk-500 sm:text-sm border-gray-300': !form.errors.employmentDate }"
261
- />
262
- <p
263
- v-if =" form.errors.employmentDate"
264
- class =" mt-2 text-sm text-red-600"
265
- >
266
- {{ form.errors.employmentDate }}
267
- </p >
268
- </div >
269
- </div >
270
247
<div class =" items-center py-4 sm:grid sm:grid-cols-3" >
271
248
<label
272
249
for =" slackId"
Original file line number Diff line number Diff line change @@ -253,28 +253,6 @@ function editUser() {
253
253
</p >
254
254
</div >
255
255
</Listbox >
256
- <div class =" items-center py-4 sm:grid sm:grid-cols-3" >
257
- <label
258
- for =" employment_date"
259
- class =" block text-sm font-medium text-gray-700 sm:mt-px"
260
- >
261
- Data zatrudnienia
262
- </label >
263
- <div class =" mt-1 sm:col-span-2 sm:mt-0" >
264
- <FlatPickr
265
- id =" employment_date"
266
- v-model =" form.employmentDate"
267
- class =" block w-full max-w-lg rounded-md shadow-sm sm:text-sm"
268
- :class =" { 'border-red-300 text-red-900 focus:outline-none focus:ring-red-500 focus:border-red-500': form.errors.employmentDate, 'focus:ring-blumilk-500 focus:border-blumilk-500 sm:text-sm border-gray-300': !form.errors.employmentDate }"
269
- />
270
- <p
271
- v-if =" form.errors.employmentDate"
272
- class =" mt-2 text-sm text-red-600"
273
- >
274
- {{ form.errors.employmentDate }}
275
- </p >
276
- </div >
277
- </div >
278
256
<div class =" items-center py-4 sm:grid sm:grid-cols-3" >
279
257
<label
280
258
for =" birthday"
You can’t perform that action at this time.
0 commit comments