Commit 8ce0c18f authored by Curtis Adam's avatar Curtis Adam

Transcript bonus info: Add Maximum bonus points

parent d31dde93
......@@ -7,11 +7,12 @@
<div class="card card-block">
<table class="table table-condensed table-striped table-hover infoBoxTable">
<tbody>
{{> cardsetInfoBoxItemTranscriptBonusMaxPoints}}
{{> cardsetInfoBoxItemBonusPointsFAQ}}
{{> cardsetInfoBoxItemTranscriptLectureDates}}
{{> cardsetInfoBoxItemTranscriptLectureEnd}}
{{> cardsetInfoBoxItemTranscriptSubmissionDeadline}}
{{> cardsetInfoBoxItemTranscriptEditDeadline}}
{{> cardsetInfoBoxItemBonusPointsFAQ}}
</tbody>
</table>
</div>
......
......@@ -2,6 +2,7 @@
import {Template} from "meteor/templating";
import {CardsetVisuals} from "../../../../api/cardsetVisuals";
import "./item/bonusPointsFAQ.js";
import "./item/transcript/bonusMaxPoints.js";
import "./item/transcript/editDeadline.js";
import "./item/transcript/lectureDates.js";
import "./item/transcript/submissionDeadline.js";
......
<template name="cardsetInfoBoxItemTranscriptBonusMaxPoints">
<tr>
<td>{{_ "transcriptForm.bonus.form.percentage"}}:</td>
<td>{{getBonusPoints this}} %</td>
</tr>
</template>
//------------------------ IMPORTS
import {Template} from "meteor/templating";
import "./bonusMaxPoints.html";
/*
* ############################################################################
* cardsetInfoBoxItemTranscriptBonusMaxPoints
* ############################################################################
*/
Template.cardsetInfoBoxItemTranscriptBonusMaxPoints.helpers({
getBonusPoints: function (cardset) {
if (cardset.transcriptBonus !== undefined) {
return cardset.transcriptBonus.percentage;
}
}
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment