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

24 lines
597 B
Vue
Raw Normal View History

2018-11-01 14:21:33 +00:00
<template>
<div class="question mt-4">
<h5>{{ question.question }}</h5>
<div class="options ml-2">
<div v-for="option in question.options" class="form-check pb-1">
<input class="form-check-input" type="radio" :name="question.name" :id="option.option" :value="option.option">
<label class="form-check-label" :for="option.option">
{{ option.option }}
</label>
</div>
</div>
</div>
</template>
<script>
export default {
props: ['question'],
name: 'QuizSingleChoice',
};
</script>
<style lang="css" scoped>
</style>