Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #129 from SELab-2/web/feature/last-mockupfixes
Browse files Browse the repository at this point in the history
Frontend: mockupfixes
  • Loading branch information
arvheule authored Mar 16, 2023
2 parents a9201cf + eb9d87c commit c20d687
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 25 deletions.
2 changes: 1 addition & 1 deletion web/src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const routes = [
component: UserCreation,
},
{
path: "/dashboard/ronde/rapport",
path: "/dashboard/rondes/rapport",
name: "Ronde rapport",
component: RoundReport,
},
Expand Down
12 changes: 2 additions & 10 deletions web/src/views/BuildingFollowup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,16 +111,8 @@ const mockbuildingdata: any[] = [
student: "Mats Van Belle",
comments: [
{
title: "Ambetant gebouw",
comment: "geen leuk gebouw",
},
{
title: "Lange code",
comment: "12 karakters is te lang",
},
{
title: "Ver",
comment: "Zeer ver van de andere gebouwen in de ronde",
title: "Kapotte deur",
comment: "De deur in de berging is kapot",
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion web/src/views/LoginScreen.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</span>
</p>
<!-- Login button -->
<router-link to="/dashboard">
<router-link to="/planning">
<v-btn prepend-icon="mdi-login" color="success">Login</v-btn>
</router-link>
</div>
Expand Down
9 changes: 9 additions & 0 deletions web/src/views/RoundDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,15 @@
</v-timeline-item>
</v-timeline>
</v-container>
<v-card-actions class="d-flex">
<v-spacer></v-spacer>
<v-btn
to="/dashboard/rondes/rapport"
prepend-icon="mdi-check"
color="primary"
>Ronde stoppen</v-btn
>
</v-card-actions>
</v-card>
</v-container>
</template>
Expand Down
3 changes: 2 additions & 1 deletion web/src/views/RoundFollowup.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<template>
<!-- Simple vlist that uses the custom component RoundCard -->
<v-list>
<v-list class="mx-3">
<v-card-title>Rondes van vandaag</v-card-title>
<RoundCard
v-for="(round, i) in mockrounds"
:key="i"
Expand Down
2 changes: 1 addition & 1 deletion web/src/views/RoundPlanner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
:items="rounds"
></v-select>
<v-spacer></v-spacer>
<router-link to="/rondes/maken">
<router-link to="/dashboard/rondes/nieuw">
<v-btn
v-if="selectedRound"
prepend-icon="mdi-pencil"
Expand Down
8 changes: 6 additions & 2 deletions web/src/views/RoundReport.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,12 @@
</v-container>
<v-card-actions class="d-flex">
<v-spacer></v-spacer>
<v-btn prepend-icon="mdi-close" color="error">Niet afsluiten</v-btn>
<v-btn prepend-icon="mdi-check" color="primary">Afsluiten</v-btn>
<v-btn to="/rondes/detail" prepend-icon="mdi-close" color="error"
>Niet afsluiten</v-btn
>
<v-btn to="/planning" prepend-icon="mdi-check" color="primary"
>Afsluiten</v-btn
>
</v-card-actions>
</v-card>
</v-container>
Expand Down
23 changes: 14 additions & 9 deletions web/src/views/StudentFollowUp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
<!-- Card that lets you select the round -->
<v-card title="Kies ronde" prepend-icon="mdi-transit-detour" class="ma-3">
<template v-slot:append>
<v-select
prepend-inner-icon="mdi-filter"
label="Sorteer"
:items="['Datum', 'Naam']"
v-model="mockDefaultSort"
variant="solo"
></v-select>
<v-card-actions>
<router-link to="/rondes/plannen">
<v-btn color="primary"> Ronde plannen </v-btn>
</router-link>
<router-link to="/dashboard/rondes/nieuw">
<v-btn color="primary"> Ronde aanmaken </v-btn>
</router-link>
</v-card-actions>
</template>

<v-row class="py-0 my-0 mx-1">
Expand Down Expand Up @@ -57,7 +58,12 @@
</v-chip>
</template>
<template v-slot:append>
<v-btn prepend-icon="mdi-file-eye" color="primary">Details</v-btn>
<v-btn
to="/dashboard/ronde/rapport"
prepend-icon="mdi-file-eye"
color="primary"
>Details</v-btn
>
</template>
</v-card>
</template>
Expand All @@ -66,7 +72,6 @@
import { ref } from "vue";
import Avatar from "@/components/Avatar.vue";
const mockDefaultSort = ref("Datum");
const mockDefaultWeek = ref("Week 1");
const mockDefaultRound = ref("Ronde 1");
Expand Down

0 comments on commit c20d687

Please sign in to comment.