Skip to content

Commit

Permalink
N21-1705 class page tabs to wireframe (#3213)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnegns authored Apr 19, 2024
1 parent e9b989c commit 26d77f0
Showing 1 changed file with 24 additions and 12 deletions.
36 changes: 24 additions & 12 deletions src/pages/administration/ClassOverview.page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,24 @@
:full-width="true"
data-testid="admin-class-title"
>
<v-tabs class="tabs-max-width mb-5" grow v-model="activeTab">
<v-tab value="next" data-testid="admin-class-next-year-tab">
<span>{{ nextYear }}</span>
</v-tab>
<v-tab value="current" data-testid="admin-class-current-year-tab">
<span>{{ currentYear }}</span>
</v-tab>
<v-tab value="archive" data-testid="admin-class-previous-years-tab">
<span>{{ t("pages.administration.classes.label.archive") }}</span>
</v-tab>
</v-tabs>

<template #header>
<h1 class="text-h3 pl-2">
{{ t("pages.administration.classes.index.title") }}
</h1>
<div class="mx-n6 mx-md-0 pb-0 d-flex justify-center">
<v-tabs class="tabs-max-width" grow v-model="activeTab">
<v-tab value="next" data-testid="admin-class-next-year-tab">
<span>{{ nextYear }}</span>
</v-tab>
<v-tab value="current" data-testid="admin-class-current-year-tab">
<span>{{ currentYear }}</span>
</v-tab>
<v-tab value="archive" data-testid="admin-class-previous-years-tab">
<span>{{ t("pages.administration.classes.label.archive") }}</span>
</v-tab>
</v-tabs>
</div>
</template>
<v-data-table-server
:headers="headers"
:items="classes"
Expand Down Expand Up @@ -460,3 +466,9 @@ const getInstituteTitle: ComputedRef<string> = computed(() => {
}
});
</script>

<style scoped>
.v-tabs {
margin-bottom: -2px;
}
</style>

0 comments on commit 26d77f0

Please sign in to comment.