mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
[subTask] v-select employee, [refactor], [masterTaskDetail] formattedDates
This commit is contained in:
1 parent
e941534b5e
commit
0a842dcb32
41 files changed
+558
-965
No files matched your search
@@ -1,69 +1,65 @@
|
||||
<template>
|
||||
<W-loadable :content="user ? true : false">
|
||||
<div v-if="user">
|
||||
<div class="border-bottom py-5 px-5">
|
||||
<h1>Všeobecné informácie</h1>
|
||||
<v-text-field
|
||||
class="w-75"
|
||||
variant="solo"
|
||||
label="Meno"
|
||||
v-model="user.name"
|
||||
:class="{ error: v$.user.name.$errors.length }"
|
||||
:hint="
|
||||
v$.user.name.$errors
|
||||
? errorUtils.parseErrors(v$.user.name.$errors)
|
||||
: null
|
||||
"
|
||||
></v-text-field>
|
||||
<v-text-field
|
||||
class="w-75"
|
||||
variant="solo"
|
||||
label="Priezvisko"
|
||||
v-model="user.surname"
|
||||
:class="{ error: v$.user.surname.$errors.length }"
|
||||
:hint="
|
||||
v$.user.surname.$errors
|
||||
? errorUtils.parseErrors(v$.user.surname.$errors)
|
||||
: null
|
||||
"
|
||||
></v-text-field>
|
||||
</div>
|
||||
<div class="py-5 px-5 border-bottom">
|
||||
<h1>Pracovná doba</h1>
|
||||
<v-text-field
|
||||
class="w-75"
|
||||
variant="solo"
|
||||
label="Začiatok"
|
||||
v-model="user.work_hours_from"
|
||||
append-inner-icon="mdi-clock-outline"
|
||||
type="time"
|
||||
:class="{ error: v$.user.work_hours_from.$errors.length }"
|
||||
:hint="
|
||||
v$.user.work_hours_from.$errors
|
||||
? errorUtils.parseErrors(v$.user.work_hours_from.$errors)
|
||||
: null
|
||||
"
|
||||
></v-text-field>
|
||||
<v-text-field
|
||||
class="w-75"
|
||||
variant="solo"
|
||||
label="Koniec"
|
||||
v-model="user.work_hours_to"
|
||||
append-inner-icon="mdi-clock-outline"
|
||||
:class="{ error: v$.user.work_hours_to.$errors.length }"
|
||||
:hint="
|
||||
v$.user.work_hours_to.$errors
|
||||
? errorUtils.parseErrors(v$.user.work_hours_to.$errors)
|
||||
: null
|
||||
"
|
||||
type="time"
|
||||
></v-text-field>
|
||||
</div>
|
||||
<div class="py-5 px-5">
|
||||
<v-btn class="z-btn" @click="updateUserInfo()">ULOŽIŤ ZMENY</v-btn>
|
||||
</div>
|
||||
</div>
|
||||
</W-loadable>
|
||||
<div class="border-bottom py-5 px-5">
|
||||
<h1>Všeobecné informácie</h1>
|
||||
<v-text-field
|
||||
class="w-75"
|
||||
variant="solo"
|
||||
label="Meno"
|
||||
v-model="user.name"
|
||||
:class="{ error: v$.user.name.$errors.length }"
|
||||
:hint="
|
||||
v$.user.name.$errors
|
||||
? errorUtils.parseErrors(v$.user.name.$errors)
|
||||
: null
|
||||
"
|
||||
></v-text-field>
|
||||
<v-text-field
|
||||
class="w-75"
|
||||
variant="solo"
|
||||
label="Priezvisko"
|
||||
v-model="user.surname"
|
||||
:class="{ error: v$.user.surname.$errors.length }"
|
||||
:hint="
|
||||
v$.user.surname.$errors
|
||||
? errorUtils.parseErrors(v$.user.surname.$errors)
|
||||
: null
|
||||
"
|
||||
></v-text-field>
|
||||
</div>
|
||||
<div class="py-5 px-5 border-bottom">
|
||||
<h1>Pracovná doba</h1>
|
||||
<v-text-field
|
||||
class="w-75"
|
||||
variant="solo"
|
||||
label="Začiatok"
|
||||
v-model="user.work_hours_from"
|
||||
append-inner-icon="mdi-clock-outline"
|
||||
type="time"
|
||||
:class="{ error: v$.user.work_hours_from.$errors.length }"
|
||||
:hint="
|
||||
v$.user.work_hours_from.$errors
|
||||
? errorUtils.parseErrors(v$.user.work_hours_from.$errors)
|
||||
: null
|
||||
"
|
||||
></v-text-field>
|
||||
<v-text-field
|
||||
class="w-75"
|
||||
variant="solo"
|
||||
label="Koniec"
|
||||
v-model="user.work_hours_to"
|
||||
append-inner-icon="mdi-clock-outline"
|
||||
:class="{ error: v$.user.work_hours_to.$errors.length }"
|
||||
:hint="
|
||||
v$.user.work_hours_to.$errors
|
||||
? errorUtils.parseErrors(v$.user.work_hours_to.$errors)
|
||||
: null
|
||||
"
|
||||
type="time"
|
||||
></v-text-field>
|
||||
</div>
|
||||
<div class="py-5 px-5">
|
||||
<v-btn class="z-btn" @click="updateUserInfo()">ULOŽIŤ ZMENY</v-btn>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
Reference in new issue
Block a user