brotherton-erpnext/erpnext/public/js/education/web-academy/components/ContentNavigation.vue

23 lines
694 B
Vue
Raw Normal View History

2018-11-01 11:50:04 +00:00
<template>
<div class="nav-buttons">
2018-11-02 10:59:04 +00:00
<button class='btn btn-outline-secondary' @click="$router.go(-1)">Back</button>
<button v-if="nextContent" class='btn btn-primary' @click="$router.push({ name: 'content', params: { course: $route.params.course, type:nextContentType, content:nextContent }})">Next</button>
<button v-else class='btn btn-primary' @click="$router.push({ name: 'program', params: { code: $route.params.code}})">Finish Course</button>
2018-11-01 11:50:04 +00:00
</div>
</template>
<script>
export default {
props: ['nextContent', 'nextContentType'],
2018-11-02 10:59:04 +00:00
name: 'ContentNavigation'
2018-11-01 11:50:04 +00:00
};
</script>
<style lang="css" scoped>
.nav-buttons {
position: absolute;
bottom: 0;
right: 0;
}
</style>