Update styling on attendance check page
This commit is contained in:
parent
0536b7a537
commit
71e2b7cef3
|
|
@ -147,40 +147,45 @@ const formattedCourseDueDate = computed(() => {
|
||||||
<span>{{ $t("general.back") }}</span>
|
<span>{{ $t("general.back") }}</span>
|
||||||
</router-link>
|
</router-link>
|
||||||
</nav>
|
</nav>
|
||||||
<div class="flex items-center justify-between">
|
<div class="flex items-center justify-between"></div>
|
||||||
<button
|
|
||||||
v-if="attendanceSaved"
|
|
||||||
class="flex"
|
|
||||||
data-cy="export-button"
|
|
||||||
@click="exportData"
|
|
||||||
>
|
|
||||||
<it-icon-export></it-icon-export>
|
|
||||||
<span class="ml inline-block">{{ $t("a.Als Excel exportieren") }}</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<section v-if="attendanceCourses.length && currentCourse">
|
<section v-if="attendanceCourses.length && currentCourse">
|
||||||
<div class="flex flex-col justify-between gap-8 bg-white py-6">
|
<div class="grid grid-cols-[2fr_1fr] justify-between gap-8 bg-white py-6">
|
||||||
<div class="flex flex-col gap-2 px-6">
|
<div class="col-span-1 flex flex-col gap-2 px-6">
|
||||||
<h3 class="pb-1 text-4xl font-bold">{{ $t("a.Präsenzkurs") }}</h3>
|
<h3 class="pb-1 text-4xl font-bold">{{ $t("a.Präsenzkurs") }}</h3>
|
||||||
<h5>Circle «{{ currentCourse?.learning_content.circle?.title }}»</h5>
|
<h5>Circle «{{ currentCourse?.learning_content.circle?.title }}»</h5>
|
||||||
<h5>{{ formattedCourseDueDate }}</h5>
|
<h5>{{ formattedCourseDueDate }}</h5>
|
||||||
</div>
|
</div>
|
||||||
<div class="px-6">
|
<button
|
||||||
|
v-if="attendanceSaved"
|
||||||
|
class="col-span-1 mr-4 hidden justify-self-end lg:flex"
|
||||||
|
data-cy="export-button"
|
||||||
|
@click="exportData"
|
||||||
|
>
|
||||||
|
<it-icon-export class="fill-current text-blue-900"></it-icon-export>
|
||||||
|
<span class="ml inline-block text-blue-900">
|
||||||
|
{{ $t("a.Als Excel exportieren") }}
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
|
<div
|
||||||
|
class="col-span-2 flex flex-col gap-4 px-6 lg:gap-6"
|
||||||
|
:class="attendanceSaved ? 'lg:flex-row lg:items-center' : 'gap-8 lg:gap-8'"
|
||||||
|
>
|
||||||
<AttendanceStatus
|
<AttendanceStatus
|
||||||
class="px-6"
|
class="inline-flex px-6"
|
||||||
:done="attendanceSaved"
|
:done="attendanceSaved"
|
||||||
:date="courseDueDate"
|
:date="courseDueDate"
|
||||||
/>
|
/>
|
||||||
</div>
|
|
||||||
<AttendanceCheck
|
|
||||||
:attendance-saved="attendanceSaved"
|
|
||||||
:disclaimer-confirmed="disclaimerConfirmed"
|
|
||||||
@reopen="editAgain"
|
|
||||||
@toggle="toggleDisclaimer"
|
|
||||||
@confirm="onSubmit"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<div class="border-t border-gray-500 px-6">
|
<AttendanceCheck
|
||||||
|
:attendance-saved="attendanceSaved"
|
||||||
|
:disclaimer-confirmed="disclaimerConfirmed"
|
||||||
|
@reopen="editAgain"
|
||||||
|
@toggle="toggleDisclaimer"
|
||||||
|
@confirm="onSubmit"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-span-2 border-t border-gray-500 px-6">
|
||||||
<ItPersonRow
|
<ItPersonRow
|
||||||
v-for="(csu, index) in courseSessionDetailResult.filterMembers()"
|
v-for="(csu, index) in courseSessionDetailResult.filterMembers()"
|
||||||
:key="csu.user_id"
|
:key="csu.user_id"
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ defineEmits(["toggle", "reopen", "confirm"]);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div v-if="!attendanceSaved" class="flex flex-col gap-4 px-6">
|
<div v-if="!attendanceSaved" class="flex flex-col gap-4">
|
||||||
<div class="flex flex-row content-center items-center">
|
<div class="flex flex-row content-center items-center">
|
||||||
<ItCheckbox
|
<ItCheckbox
|
||||||
:checkbox-item="{
|
:checkbox-item="{
|
||||||
|
|
@ -34,7 +34,7 @@ defineEmits(["toggle", "reopen", "confirm"]);
|
||||||
{{ $t("Anwesenheit bestätigen") }}
|
{{ $t("Anwesenheit bestätigen") }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div v-else class="px-6">
|
<div v-else class="flex-inline">
|
||||||
<button class="btn-link link" @click="$emit('reopen')">
|
<button class="btn-link link" @click="$emit('reopen')">
|
||||||
{{ $t("a.Erneut bearbeiten") }}
|
{{ $t("a.Erneut bearbeiten") }}
|
||||||
</button>
|
</button>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue