Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Chronos
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-Chronos
Commits
41d01800
Commit
41d01800
authored
4 months ago
by
Jonathan Weth
Browse files
Options
Downloads
Plain Diff
Merge branch '271-make-substitutions-table-more-compact' into 'master'
Resolve "Make substitutions table more compact" Closes
#271
See merge request
!389
parents
6fba91e4
94b39831
No related branches found
No related tags found
1 merge request
!389
Resolve "Make substitutions table more compact"
Pipeline
#193858
failed
3 months ago
Stage: prepare
Stage: test
Stage: build
Stage: publish
Stage: docker
Stage: deploy
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
aleksis/apps/chronos/frontend/components/Substitutions.vue
+68
-39
68 additions, 39 deletions
aleksis/apps/chronos/frontend/components/Substitutions.vue
aleksis/apps/chronos/frontend/messages/de.json
+2
-2
2 additions, 2 deletions
aleksis/apps/chronos/frontend/messages/de.json
with
70 additions
and
41 deletions
aleksis/apps/chronos/frontend/components/Substitutions.vue
+
68
−
39
View file @
41d01800
...
...
@@ -17,17 +17,23 @@ import DateSelectFooter from "aleksis.core/components/generic/DateSelectFooter.v
:show-select="false"
:enable-create="false"
:enable-edit="false"
:dense="true"
:items-per-page="-1"
:mobile-breakpoint="0"
>
<template
#title
>
<v-row
class=
"d-flex align-center pt-2 pa-2"
>
<v-card-title
class=
"text-h4"
>
{{
$d
(
new
Date
(
date
),
"
dateWithWeekday
"
)
}}
</v-card-title>
<v-card-title
class=
"full-width flex-nowrap pb-0"
>
{{
$d
(
new
Date
(
date
),
$vuetify
.
breakpoint
.
xs
?
"
shortWithWeekday
"
:
"
dateWithWeekday
"
,
)
}}
<v-spacer
/>
<primary-action-button
class=
"mr-4"
i18n-key=
"chronos.substitutions.print"
icon-text=
"$print"
:icon=
"$vuetify.breakpoint.xs"
:to=
"
{
name: 'chronos.printSubstitutionsForDate',
params: {
...
...
@@ -35,39 +41,58 @@ import DateSelectFooter from "aleksis.core/components/generic/DateSelectFooter.v
},
}"
/>
</v-row>
<v-card-text>
<div
v-if=
"affectedTeachers.length > 0"
>
<strong>
{{
$t
(
"
chronos.substitutions.affected_teachers
"
)
}}
:
</strong>
<person-chip
v-for=
"teacher in affectedTeachers"
:key=
"teacher.id"
class=
"ma-1"
:person=
"teacher"
:to=
"
{
name: 'chronos.timetableWithId',
params: {
type: 'person',
id: teacher.id,
},
}"
/>
</div>
<div
v-if=
"affectedGroups.length > 0"
>
<strong>
{{
$t
(
"
chronos.substitutions.affected_groups
"
)
}}
:
</strong>
<!-- TODO: Link to group-timetable as well -->
<!-- as soon as it becomes possible to resolve a -->
<!-- group-timetable from the lesson-event group too. -->
<group-chip
v-for=
"group in affectedGroups"
class=
"ma-1"
:key=
"group.id"
:group=
"group"
format=
"short"
/>
</div>
</v-card-title>
<v-card-text
v-if=
"affectedTeachers.length > 0 || affectedGroups.length > 0"
class=
"pb-0"
>
<v-expansion-panels
accordion
multiple
flat
>
<v-expansion-panel
v-if=
"affectedTeachers.length > 0"
>
<v-expansion-panel-header
class=
"px-0"
>
<strong>
{{
$t
(
"
chronos.substitutions.affected_teachers
"
)
}}
</strong>
</v-expansion-panel-header>
<v-expansion-panel-content>
<person-chip
v-for=
"teacher in affectedTeachers"
:key=
"teacher.id"
class=
"ma-1"
:person=
"teacher"
small
:to=
"
{
name: 'chronos.timetableWithId',
params: {
type: 'person',
id: teacher.id,
},
}"
/>
</v-expansion-panel-content>
</v-expansion-panel>
<v-expansion-panel
v-if=
"affectedGroups.length > 0"
>
<v-expansion-panel-header
class=
"px-0"
>
<strong>
{{
$t
(
"
chronos.substitutions.affected_groups
"
)
}}
</strong
>
</v-expansion-panel-header>
<!-- TODO: Link to group-timetable as well -->
<!-- as soon as it becomes possible to resolve a -->
<!-- group-timetable from the lesson-event group too. -->
<v-expansion-panel-content
class=
"px-0"
>
<group-chip
v-for=
"group in affectedGroups"
class=
"ma-1"
:key=
"group.id"
:group=
"group"
format=
"short"
small
/>
</v-expansion-panel-content>
</v-expansion-panel>
</v-expansion-panels>
</v-card-text>
</
template
>
<!-- TODO: Extract strike -> bold || normal pattern into own -->
...
...
@@ -140,7 +165,7 @@ import DateSelectFooter from "aleksis.core/components/generic/DateSelectFooter.v
}}
</span>
</
template
>
<
template
#notes=
"{ item: { cancelled, notes } }"
>
<v-chip
v-if=
"cancelled"
color=
"green"
text-color=
"white"
>
<v-chip
v-if=
"cancelled"
color=
"green"
text-color=
"white"
small
>
{{
$t
(
"
chronos.substitutions.cancelled
"
)
}}
</v-chip>
{{
notes
}}
...
...
@@ -233,4 +258,8 @@ export default {
.strike-through
{
text-decoration
:
line-through
;
}
.v-expansion-panel-content__wrap
{
padding
:
0
;
padding-bottom
:
4px
;
}
</
style
>
This diff is collapsed.
Click to expand it.
aleksis/apps/chronos/frontend/messages/de.json
+
2
−
2
View file @
41d01800
...
...
@@ -26,13 +26,13 @@
"print"
:
"Drucken"
,
"groups"
:
"Gruppen"
,
"time"
:
"Zeit"
,
"teachers"
:
"Lehre
r
"
,
"teachers"
:
"Lehr
kräft
e"
,
"subject"
:
"Fach"
,
"rooms"
:
"Räume"
,
"notes"
:
"Notizen"
,
"supervision"
:
"Aufsicht"
,
"cancelled"
:
"Entfällt"
,
"affected_teachers"
:
"Betroffene Lehre
r
"
,
"affected_teachers"
:
"Betroffene Lehr
kräft
e"
,
"affected_groups"
:
"Betroffene Gruppen"
,
"all_day"
:
"Ganztägig"
,
"no_substitutions"
:
"Keine Vertretungen"
...
...
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