-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6023 from usu/feat/checklist-admin
feat(frontend): admin interface for checklists
- Loading branch information
Showing
40 changed files
with
723 additions
and
502 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
41 changes: 16 additions & 25 deletions
41
frontend/src/views/checklist/Checklist.vue → .../components/checklist/ChecklistDetail.vue
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,55 @@ | ||
<template> | ||
<content-card :title="$tc('entity.checklist.name', 2)" toolbar> | ||
<template #title-actions> | ||
<ChecklistCreate :camp="camp" :checklist-collection="checklistCollection" /> | ||
</template> | ||
<v-card-text> | ||
<v-list class="mx-n2 py-0"> | ||
<v-list-item | ||
v-for="checklist in checklists" | ||
:key="checklist._meta.self" | ||
:to="checklistRoute(camp, checklist)" | ||
class="px-2 rounded" | ||
> | ||
<v-list-item-content> | ||
<v-list-item-title> | ||
{{ checklist.name }} | ||
</v-list-item-title> | ||
</v-list-item-content> | ||
|
||
<v-list-item-action style="display: inline"> | ||
<v-item-group> | ||
<ButtonEdit color="primary--text" text class="my-n1 v-btn--has-bg" /> | ||
</v-item-group> | ||
</v-list-item-action> | ||
</v-list-item> | ||
</v-list> | ||
</v-card-text> | ||
</content-card> | ||
</template> | ||
|
||
<script> | ||
import ContentCard from '@/components/layout/ContentCard.vue' | ||
import ChecklistCreate from '@/components/checklist/ChecklistCreate.vue' | ||
import { checklistRoute } from '@/router.js' | ||
import ButtonEdit from '@/components/buttons/ButtonEdit.vue' | ||
export default { | ||
name: 'ChecklistOverview', | ||
components: { | ||
ButtonEdit, | ||
ChecklistCreate, | ||
ContentCard, | ||
}, | ||
props: { | ||
camp: { type: Object, required: false, default: null }, | ||
checklistCollection: { type: Object, required: true }, | ||
}, | ||
computed: { | ||
checklists() { | ||
return this.checklistCollection.items | ||
}, | ||
}, | ||
methods: { checklistRoute }, | ||
} | ||
</script> |
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
Oops, something went wrong.