-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…atus Feature/#528/banner infomation status
- Loading branch information
Showing
10 changed files
with
235 additions
and
69 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
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 |
---|---|---|
@@ -1,33 +1,81 @@ | ||
<template> | ||
<div> | ||
<Banner :message="message" /> | ||
<h1>Review</h1> | ||
<ul> | ||
<li | ||
v-for="item in applicationRecords" | ||
:key="item.application.id" | ||
<form @submit.prevent="checkForm"> | ||
<button | ||
class="govuk-button govuk-!-margin-right-2" | ||
:disabled="isButtonDisabled" | ||
> | ||
<RouterLink | ||
:to="{ name: 'exercise-stages-review-edit', params: { applicationId: item.application.id } }" | ||
Set status | ||
</button> | ||
<table> | ||
<tr | ||
v-for="item in applicationRecords" | ||
:key="item.application.id" | ||
> | ||
{{ item.candidate.fullName }}, {{ item.status }} | ||
</RouterLink> | ||
</li> | ||
</ul> | ||
<td> | ||
<CheckboxGroup | ||
:id="`item-${item.application.id}`" | ||
v-model="selectedItems" | ||
label="" | ||
hint="" | ||
value="" | ||
> | ||
<CheckboxItem | ||
:value="item.application.id" | ||
label="" | ||
/> | ||
</CheckboxGroup> | ||
</td> | ||
<td> | ||
{{ item.candidate.fullName }}, {{ item.status }} | ||
</td> | ||
</tr> | ||
</table> | ||
</form> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import Banner from '@/components/Page/Banner'; | ||
import CheckboxGroup from '@/components/Form/CheckboxGroup'; | ||
import CheckboxItem from '@/components/Form/CheckboxItem'; | ||
export default { | ||
components: { | ||
Banner, | ||
CheckboxGroup, | ||
CheckboxItem, | ||
}, | ||
data() { | ||
return { | ||
message: null, | ||
selectedItems: null, | ||
}; | ||
}, | ||
computed: { | ||
applicationRecords() { | ||
return this.$store.state.stageReview.records; | ||
}, | ||
exercise() { | ||
return this.$store.state.exerciseDocument.record; | ||
}, | ||
isButtonDisabled() { | ||
const isDisabled = this.selectedItems && this.selectedItems.length; | ||
return !isDisabled; | ||
}, | ||
}, | ||
created() { | ||
async created() { | ||
this.$store.dispatch('stageReview/bind', { exerciseId: this.exercise.id }); | ||
this.message = await this.$store.dispatch('stageReview/getMessages'); | ||
this.$store.dispatch('stageReview/storeItems', { items: [] }); | ||
}, | ||
methods: { | ||
checkForm() { | ||
this.$store.dispatch('stageReview/storeItems', { items: this.selectedItems }); | ||
this.$router.push({ name: 'exercise-stages-review-edit' }); | ||
}, | ||
}, | ||
}; | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,14 @@ | ||
<template> | ||
<div> | ||
<TabsList | ||
:tabs="tabs" | ||
:active-tab.sync="activeTab" | ||
/> | ||
{{ activeTab }} | ||
</div> | ||
<Banner | ||
:message="'gabe'" | ||
:status="'success'" | ||
/> | ||
</template> | ||
<script> | ||
import TabsList from '@/components/Page/TabsList'; | ||
import Banner from '@/components/Page/Banner'; | ||
export default { | ||
components: { | ||
TabsList, | ||
}, | ||
data() { | ||
return { | ||
tabs: [ | ||
{ | ||
ref: 'one', | ||
title: 'this is tab 1', | ||
}, | ||
{ | ||
ref: 'two', | ||
title: 'here is tab 2', | ||
}, | ||
], | ||
activeTab: null, | ||
}; | ||
Banner, | ||
}, | ||
}; | ||
</script> |
Oops, something went wrong.