Added indicator to student if badge is not available

This commit is contained in:
PMKuipers 2023-11-02 07:18:37 +01:00
parent 24370631ab
commit 93e174967f
5 changed files with 9 additions and 2 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

@ -98,6 +98,8 @@ export default {
badgeissuedstats: "badgeissuedstats", badgeissuedstats: "badgeissuedstats",
completion_incomplete: "completion_incomplete_badge", completion_incomplete: "completion_incomplete_badge",
completion_completed: "completion_completed_badge", completion_completed: "completion_completed_badge",
completioninfo: "completioninfo",
badgedisabled: "badgedisabled"
}, },
course: { course: {
completion_incomplete: "completion_incomplete", completion_incomplete: "completion_incomplete",
@ -2444,6 +2446,9 @@ export default {
</template> </template>
</template> </template>
</template> </template>
<tr v-if="!value.badge.active" class="mt-1">
<td colspan="2" class="alert alert-warning alert-block">{{text.badgedisabled}}</td>
</tr>
</table> </table>
<ul class="list-unstyled w-100 border-grey border-top border-bottom pt-1 pb-1 mb-1" <ul class="list-unstyled w-100 border-grey border-top border-bottom pt-1 pb-1 mb-1"
v-if="value.badge.criteria"><li v-for="crit in value.badge.criteria" v-if="value.badge.criteria"><li v-for="crit in value.badge.criteria"

View File

@ -328,6 +328,7 @@ $string["dateissued"] = "Issued on";
$string["dateexpire"] = "Expires on"; $string["dateexpire"] = "Expires on";
$string["badgeinfo"] = "Badge details"; $string["badgeinfo"] = "Badge details";
$string["badgeissuedstats"] = "Issuing progress"; $string["badgeissuedstats"] = "Issuing progress";
$string["badgedisabled"] = "This badge is currently not available";
$string["period_edit"] = 'Change period details'; $string["period_edit"] = 'Change period details';
$string["period_default_fullname"] = 'Period {$a}'; $string["period_default_fullname"] = 'Period {$a}';

View File

@ -326,6 +326,7 @@ $string["dateissued"] = "Afgegeven op";
$string["dateexpire"] = "Veloopt op"; $string["dateexpire"] = "Veloopt op";
$string["badgeinfo"] = "Meer details"; $string["badgeinfo"] = "Meer details";
$string["badgeissuedstats"] = "Voortgang van uitgifte"; $string["badgeissuedstats"] = "Voortgang van uitgifte";
$string["badgedisabled"] = "Deze badge is op dit moment niet beschikbaar";
$string["period_edit"] = 'Periode aanpassen'; $string["period_edit"] = 'Periode aanpassen';
$string["period_default_fullname"] = 'Periode {$a}'; $string["period_default_fullname"] = 'Periode {$a}';