-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated the download button for schools
- Loading branch information
1 parent
3259fdf
commit 01ff652
Showing
8 changed files
with
90 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<script setup lang="ts"> | ||
import { useAppStore } from '@/stores/app' | ||
import { ref } from 'vue' | ||
const appStore = useAppStore() | ||
// used for open and close modal | ||
const dialog = ref(false) | ||
// varibles used for search | ||
</script> | ||
<template> | ||
<v-dialog v-model="dialog" width="25%"> | ||
<template v-slot:activator="{ props }"> | ||
<v-btn | ||
block | ||
variant="outlined" | ||
color="bcGovBlue" | ||
class="text-none text-subtitle-1 my-1" | ||
v-bind="props" | ||
> | ||
Download Schools | ||
</v-btn> | ||
|
||
</template> | ||
<template v-slot:default="{ isActive }"> | ||
<v-card title="Download Schools"> | ||
<v-card-actions> | ||
<v-column> | ||
<v-row class="pt-2"> | ||
<v-col class="py-1 my-0"><v-btn | ||
href="/api/v1/download/csv/school/PUBLIC?filepath=publicschoolcontacts" | ||
block | ||
class="v-btn-align-left text-none text-subtitle-1 my-1" | ||
@click="dialog = false" | ||
><template v-slot:prepend> <v-icon icon="mdi-download" /> </template> | ||
Public Schools (CSV)</v-btn | ||
></v-col> | ||
</v-row> | ||
<v-row> | ||
<v-col class="py-1 my-0"> <v-btn | ||
href="/api/v1/download/csv/school/INDEPEND?filepath=independentschoolcontacts" | ||
block | ||
style="text-align: left" | ||
class="v-btn-align-left text-left text-none text-subtitle-1 my-1" | ||
@click="dialog = false" | ||
><template v-slot:prepend> <v-icon icon="mdi-download" /> </template> | ||
|
||
Independent Schools (CSV)</v-btn | ||
></v-col> | ||
</v-row> | ||
<v-row> | ||
<v-col class="py-1 my-0"> <v-btn | ||
href="/api/v1/download/csv/school/ALL?filepath=allschoolcontacts" | ||
block | ||
class="v-btn-align-left text-left text-none text-subtitle-1 my-1" | ||
@click="dialog = false" | ||
><template v-slot:prepend> <v-icon icon="mdi-download" /> </template> | ||
All Schools (CSV)</v-btn | ||
></v-col> | ||
</v-row> | ||
</v-column> | ||
</v-card-actions> | ||
<v-card-actions> | ||
<v-spacer></v-spacer> | ||
<v-btn color="error" variant="text" @click="dialog = false"> Close </v-btn> | ||
</v-card-actions> | ||
</v-card> | ||
</template> | ||
|
||
</v-dialog> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters