Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Alsijil
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-App-Alsijil
Commits
f3eb9b5e
Commit
f3eb9b5e
authored
9 months ago
by
permcu
Browse files
Options
Downloads
Patches
Plain Diff
Implement absence-creation-summary list
parent
e8cb889d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!356
Add dialog for creation of long-term absences
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aleksis/apps/alsijil/frontend/components/coursebook/absences/AbsenceCreationSummary.vue
+48
-3
48 additions, 3 deletions
...components/coursebook/absences/AbsenceCreationSummary.vue
with
48 additions
and
3 deletions
aleksis/apps/alsijil/frontend/components/coursebook/absences/AbsenceCreationSummary.vue
+
48
−
3
View file @
f3eb9b5e
<
template
>
<!-- TODO: Hide header -->
<!-- MAYBE introduce a minimal variant of CRUDIterator -->
<!-- with most features disabled for this list usecase -->
<c-r-u-d-iterator
i18n-key=
"TODO"
:gql-query=
"gqlQuery"
:gql-additional-query-args=
"gqlArgs"
:enable-search=
"false"
:enable-create=
"false"
:enable-edit=
"false"
:elevated=
"false"
disable-pagination
hide-default-footer
>
<template
#default
="
{ items }">
<v-expansion-panels>
...
...
@@ -14,10 +19,42 @@
:key=
"person.id"
>
<v-expansion-panel-header>
{{
persons
.
find
((
p
)
=>
p
.
id
===
person
.
id
)
}}
<div>
{{
persons
.
find
((
p
)
=>
p
.
id
===
person
.
id
).
fullName
}}
</div>
<v-spacer
/>
<div>
<!-- TODO i18 Stunden -->
{{
person
.
lessons
.
length
}}
Stunden
</div>
</v-expansion-panel-header>
<v-expansion-panel-content>
TODO
<v-divider
/>
<v-list-item
v-for=
"lesson in person.lessons"
class=
"px-0"
>
<!-- TODO: We should extract this display & share it -->
<time
:datetime=
"lesson.datetimeStart"
class=
"pr-2 text-no-wrap"
>
{{
$d
(
toDateTime
(
lesson
.
datetimeStart
),
"
shortWithWeekday
"
)
}}
</time>
<span>
(
</span>
<time
:datetime=
"lesson.datetimeStart"
class=
"text-no-wrap"
>
{{
$d
(
toDateTime
(
lesson
.
datetimeStart
),
"
shortTime
"
)
}}
</time>
<span>
-
</span>
<time
:datetime=
"lesson.datetimeEnd"
class=
"text-no-wrap"
>
{{
$d
(
toDateTime
(
lesson
.
datetimeEnd
),
"
shortTime
"
)
}}
</time>
<span>
)
</span>
<v-spacer
/>
<div
class=
"pr-2"
>
{{
lesson
.
course
.
name
}}
</div>
<subject-chip
:subject=
"lesson.subject"
/>
</v-list-item>
</v-expansion-panel-content>
</v-expansion-panel>
</v-expansion-panels>
...
...
@@ -27,12 +64,15 @@
<
script
>
import
CRUDIterator
from
"
aleksis.core/components/generic/CRUDIterator.vue
"
;
import
SubjectChip
from
"
aleksis.apps.cursus/components/SubjectChip.vue
"
;
import
{
lessonsForPersons
}
from
"
./absenceCreation.graphql
"
;
import
{
DateTime
}
from
"
luxon
"
;
export
default
{
name
:
"
AbsenceCreationSummary
"
,
components
:
{
CRUDIterator
,
SubjectChip
,
},
props
:
{
persons
:
{
...
...
@@ -62,5 +102,10 @@ export default {
};
},
},
methods
:
{
toDateTime
(
dateString
)
{
return
DateTime
.
fromISO
(
dateString
);
},
},
};
</
script
>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment