Cleanup
This commit is contained in:
parent
dbb1386b7d
commit
e999fdb125
|
@ -54,6 +54,8 @@ $text = (object)[
|
|||
'coacheditmode' => get_string("coacheditmode", 'local_treestudyplan'),
|
||||
'showoverview' => get_string("showoverview", '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
|
||||
|
@ -67,14 +69,14 @@ print <<<END
|
|||
<div class="m-buttonbar" style="margin-bottom: 1em;">
|
||||
<template v-if="displayedstudyplan">
|
||||
<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>
|
||||
<s-studyplan-details
|
||||
v-model="displayedstudyplan"
|
||||
v-if="displayedstudyplan.description"
|
||||
></s-studyplan-details>
|
||||
<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
|
||||
:options="associatedstudents"
|
||||
title="firstname"
|
||||
|
|
|
@ -112,6 +112,7 @@ $text = (object)[
|
|||
'studyplan_select' => get_string("studyplan_select", 'local_treestudyplan'),
|
||||
'studyplan_noneselected' => get_string("studyplan_noneselected", 'local_treestudyplan'),
|
||||
'defaultaggregation' => get_config("local_treestudyplan", "aggregation_mode"),
|
||||
'back' => get_string('back', 'local_treestudyplan'),
|
||||
];
|
||||
|
||||
print <<<END
|
||||
|
@ -142,7 +143,7 @@ print <<<END
|
|||
<h3 v-else>{$contextname}</h3>
|
||||
<div class="m-buttonbar" style="margin-bottom: 1em;">
|
||||
<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>
|
||||
<b-form-select v-if='activestudyplan' lazy :text='dropdown_title' :value='activestudyplan.id' @change="selectStudyplan">
|
||||
<b-form-select-option
|
||||
|
|
|
@ -156,7 +156,7 @@ print <<<END
|
|||
></s-studyplan-details>
|
||||
<div class="flex-grow-1"><!-- Spacer to align student selector right --></div>
|
||||
<div>
|
||||
<span><?php t('selectstudent_btn') ?></span>
|
||||
<span>{$text->selectstudent_btn}</span>
|
||||
<s-prevnext-selector
|
||||
:options="associatedstudents"
|
||||
title="firstname"
|
||||
|
|
Loading…
Reference in New Issue
Block a user