Fixed feedback display

This commit is contained in:
PMKuipers 2024-06-05 23:38:38 +02:00
parent 6b9826934f
commit ba9d58c01d
3 changed files with 27 additions and 16 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1820,17 +1820,19 @@ export default {
<td v-if="g.feedback"> <td v-if="g.feedback">
<a v-b-modal="'r-grade-feedback-'+g.id" <a v-b-modal="'r-grade-feedback-'+g.id"
href="#" href="#"
@click.prevent.stop=""
>{{ text["view_feedback"]}}</a> >{{ text["view_feedback"]}}</a>
<b-modal <b-modal
:id="'r-grade-feedback-'+g.id" :id="'r-grade-feedback-'+g.id"
size="sm"
ok-only ok-only
centered centered
scrollable scrollable
> >
<template #modal-header> <template #modal-header>
<h2><i class="fa fa-graduation-cap"></i>{{ value.course.fullname }}</h2><br> <div>
<span class="r-activity-icon" :title="g.typename" v-html="g.icon"></span>{{g.name}} <h3><i class="fa fa-graduation-cap"></i>{{ value.course.fullname }}</h3><br>
<span class="r-activity-icon" :title="g.typename" v-html="g.icon + g.name"></span>
</div>
</template> </template>
<span v-html="g.feedback"></span> <span v-html="g.feedback"></span>
</b-modal> </b-modal>
@ -1968,17 +1970,19 @@ export default {
<td v-if="ci.feedback"> <td v-if="ci.feedback">
<a v-b-modal="'r-grade-feedback-'+ci.id" <a v-b-modal="'r-grade-feedback-'+ci.id"
href="#" href="#"
@click.prevent.stop=""
>{{ text["view_feedback"]}}</a> >{{ text["view_feedback"]}}</a>
<b-modal <b-modal
:id="'r-grade-feedback-'+ci.id" :id="'r-grade-feedback-'+ci.id"
size="sm"
ok-only ok-only
centered centered
scrollable scrollable
> >
<template #modal-header> <template #modal-header>
<h2><i class="fa fa-graduation-cap"></i>{{ course.fullname }}</h2><br> <div>
<span class="r-activity-icon" :title="ci.typename" v-html="ci.icon"></span>{{ci.name}} <h3><i class="fa fa-graduation-cap"></i>{{ course.fullname }}</h3>
<span class="r-activity-icon" :title="ci.typename" v-html="ci.icon + ci.name"></span>
</div>
</template> </template>
<span v-html="ci.feedback"></span> <span v-html="ci.feedback"></span>
</b-modal> </b-modal>
@ -2135,13 +2139,14 @@ export default {
>{{ text["view_feedback"]}}</a> >{{ text["view_feedback"]}}</a>
<b-modal <b-modal
:id="'r-competency-feedback-'+c.id" :id="'r-competency-feedback-'+c.id"
size="sm"
ok-only ok-only
centered centered
scrollable scrollable
> >
<template #modal-header> <template #modal-header>
<h2><i class="fa fa-puzzle-piece"></i>{{ c.title }}</h2><br> <div>
<h3><i class="fa fa-puzzle-piece"></i>{{ c.title }}</h3>
</div>
</template> </template>
<span v-html="c.feedback"></span> <span v-html="c.feedback"></span>
</b-modal> </b-modal>
@ -2190,16 +2195,18 @@ export default {
<td v-if="cc.feedback"> <td v-if="cc.feedback">
<a v-b-modal="'r-competency-feedback-'+cc.id" <a v-b-modal="'r-competency-feedback-'+cc.id"
href="#" href="#"
@click.prevent.stop=""
>{{ text["view_feedback"]}}</a> >{{ text["view_feedback"]}}</a>
<b-modal <b-modal
:id="'r-competency-feedback-'+cc.id" :id="'r-competency-feedback-'+cc.id"
size="sm"
ok-only ok-only
centered centered
scrollable scrollable
> >
<template #modal-header> <template #modal-header>
<h2><i class="fa fa-puzzle-piece"></i>{{ cc.title }}</h2><br> <div>
<h3><i class="fa fa-puzzle-piece"></i>{{ cc.title }}</h3><br>
</div>
</template> </template>
<span v-html="cc.feedback"></span> <span v-html="cc.feedback"></span>
</b-modal> </b-modal>
@ -2916,16 +2923,18 @@ export default {
<td v-if="c.feedback"> <td v-if="c.feedback">
<a v-b-modal="'r-competency-feedback-'+c.id" <a v-b-modal="'r-competency-feedback-'+c.id"
href="#" href="#"
@click.prevent.stop=""
>{{ text["view_feedback"]}}</a> >{{ text["view_feedback"]}}</a>
<b-modal <b-modal
:id="'r-competency-feedback-'+c.id" :id="'r-competency-feedback-'+c.id"
size="sm"
ok-only ok-only
centered centered
scrollable scrollable
> >
<template #modal-header> <template #modal-header>
<h2><i class="fa fa-puzzle-piece"></i>{{ c.title }}</h2><br> <div>
<h3><i class="fa fa-puzzle-piece"></i>{{ c.title }}</h3><br>
</div>
</template> </template>
<span v-html="c.feedback"></span> <span v-html="c.feedback"></span>
</b-modal> </b-modal>
@ -2970,16 +2979,18 @@ export default {
<td v-if="cc.feedback"> <td v-if="cc.feedback">
<a v-b-modal="'r-competency-feedback-'+cc.id" <a v-b-modal="'r-competency-feedback-'+cc.id"
href="#" href="#"
@click.prevent.stop=""
>{{ text["view_feedback"]}}</a> >{{ text["view_feedback"]}}</a>
<b-modal <b-modal
:id="'r-competency-feedback-'+cc.id" :id="'r-competency-feedback-'+cc.id"
size="sm"
ok-only ok-only
centered centered
scrollable scrollable
> >
<template #modal-header> <template #modal-header>
<h2><i class="fa fa-puzzle-piece"></i>{{ cc.title }}</h2><br> <div>
<h3><i class="fa fa-puzzle-piece"></i>{{ cc.title }}</h3><br>
</div>
</template> </template>
<span v-html="cc.feedback"></span> <span v-html="cc.feedback"></span>
</b-modal> </b-modal>