brotherton-erpnext/erpnext/public/js/education/web-academy/components/Quiz/QuizSingleChoice.vue
2019-02-19 13:06:30 +05:30

24 lines
597 B
Vue

<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>