This commit is contained in:
PMKuipers 2024-06-03 10:51:18 +02:00
parent dbb1386b7d
commit e999fdb125
3 changed files with 7 additions and 4 deletions

View File

@ -54,6 +54,8 @@ $text = (object)[
'coacheditmode' => get_string("coacheditmode", 'local_treestudyplan'), 'coacheditmode' => get_string("coacheditmode", 'local_treestudyplan'),
'showoverview' => get_string("showoverview", 'local_treestudyplan'), 'showoverview' => get_string("showoverview", 'local_treestudyplan'),
'studyplan_noneselected' => get_string("studyplan_noneselected", 'local_treestudyplan'), 'studyplan_noneselected' => get_string("studyplan_noneselected", 'local_treestudyplan'),
'selectstudent_btn' => get_string('selectstudent_btn', 'local_treestudyplan'),
'back' => get_string('back', 'local_treestudyplan'),
]; ];
print <<<END print <<<END
@ -67,14 +69,14 @@ print <<<END
<div class="m-buttonbar" style="margin-bottom: 1em;"> <div class="m-buttonbar" style="margin-bottom: 1em;">
<template v-if="displayedstudyplan"> <template v-if="displayedstudyplan">
<a href='#' @click.prevent='closeStudyplan' <a href='#' @click.prevent='closeStudyplan'
><i style='font-size: 150%;' class='fa fa-chevron-left'></i> <?php t('back');?></a> ><i style='font-size: 150%;' class='fa fa-chevron-left'></i> {$text->back}</a>
<span>{$text->studyplan_select}</span>&nbsp; <span>{$text->studyplan_select}</span>&nbsp;
<s-studyplan-details <s-studyplan-details
v-model="displayedstudyplan" v-model="displayedstudyplan"
v-if="displayedstudyplan.description" v-if="displayedstudyplan.description"
></s-studyplan-details> ></s-studyplan-details>
<div class="flex-grow-1"><!-- Spacer to align student selector right --></div> <div class="flex-grow-1"><!-- Spacer to align student selector right --></div>
<span><?php t('selectstudent_btn') ?></span> <span>{ $text->selectstudent_btn}</span>
<s-prevnext-selector <s-prevnext-selector
:options="associatedstudents" :options="associatedstudents"
title="firstname" title="firstname"

View File

@ -112,6 +112,7 @@ $text = (object)[
'studyplan_select' => get_string("studyplan_select", 'local_treestudyplan'), 'studyplan_select' => get_string("studyplan_select", 'local_treestudyplan'),
'studyplan_noneselected' => get_string("studyplan_noneselected", 'local_treestudyplan'), 'studyplan_noneselected' => get_string("studyplan_noneselected", 'local_treestudyplan'),
'defaultaggregation' => get_config("local_treestudyplan", "aggregation_mode"), 'defaultaggregation' => get_config("local_treestudyplan", "aggregation_mode"),
'back' => get_string('back', 'local_treestudyplan'),
]; ];
print <<<END print <<<END
@ -142,7 +143,7 @@ print <<<END
<h3 v-else>{$contextname}</h3> <h3 v-else>{$contextname}</h3>
<div class="m-buttonbar" style="margin-bottom: 1em;"> <div class="m-buttonbar" style="margin-bottom: 1em;">
<a href='#' v-if='activestudyplan' @click.prevent='closeStudyplan' <a href='#' v-if='activestudyplan' @click.prevent='closeStudyplan'
><i style='font-size: 150%;' class='fa fa-chevron-left'></i> <?php t('back');?></a> ><i style='font-size: 150%;' class='fa fa-chevron-left'></i> {$text->back}</a>
<span v-if='activestudyplan'>{$text->studyplan_select}</span>&nbsp; <span v-if='activestudyplan'>{$text->studyplan_select}</span>&nbsp;
<b-form-select v-if='activestudyplan' lazy :text='dropdown_title' :value='activestudyplan.id' @change="selectStudyplan"> <b-form-select v-if='activestudyplan' lazy :text='dropdown_title' :value='activestudyplan.id' @change="selectStudyplan">
<b-form-select-option <b-form-select-option

View File

@ -156,7 +156,7 @@ print <<<END
></s-studyplan-details> ></s-studyplan-details>
<div class="flex-grow-1"><!-- Spacer to align student selector right --></div> <div class="flex-grow-1"><!-- Spacer to align student selector right --></div>
<div> <div>
<span><?php t('selectstudent_btn') ?></span> <span>{$text->selectstudent_btn}</span>
<s-prevnext-selector <s-prevnext-selector
:options="associatedstudents" :options="associatedstudents"
title="firstname" title="firstname"