Skip to content
Snippets Groups Projects
Commit ac24b2df authored by Elmar Ludwig's avatar Elmar Ludwig
Browse files

add missing file, re #118

parent 4b79d6a4
No related branches found
No related tags found
No related merge requests found
...@@ -65,6 +65,10 @@ form.default fieldset { ...@@ -65,6 +65,10 @@ form.default fieldset {
padding-top: 0px; padding-top: 0px;
} }
form.default .cw-exercise-fieldset {
padding-top: 1.5ex;
}
form.default fieldset:not(.collapsed) > label:last-child::after { form.default fieldset:not(.collapsed) > label:last-child::after {
content: none; content: none;
} }
...@@ -602,10 +606,6 @@ button.vips_file_upload:hover { ...@@ -602,10 +606,6 @@ button.vips_file_upload:hover {
height: 4px; height: 4px;
} }
.cw-exercise-fieldset {
padding-top: 1.5ex;
}
.cw-exercise-fieldset header { .cw-exercise-fieldset header {
background-color: #e7ebf1; background-color: #e7ebf1;
background-color: var(--fieldset-header, #e7ebf1); background-color: var(--fieldset-header, #e7ebf1);
......
<? setlocale(LC_NUMERIC, $_SESSION['_language'] . '.UTF-8') ?>
<? if ($tries_left > 0 && !$show_solution): ?>
<?= MessageBox::warning(sprintf(n_vips(
'Ihr Lösungsversuch war nicht korrekt. Sie haben noch %d weiteren Versuch.',
'Ihr Lösungsversuch war nicht korrekt. Sie haben noch %d weitere Versuche.', $tries_left), $tries_left)) ?>
<? endif ?>
<div class="description">
<?= formatReady($exercise->description) ?>
</div>
<?= $this->render_partial('exercises/show_exercise_hint') ?>
<? if (count($exercise->files) && !$exercise->options['files_hidden']): ?>
<div class="label-text">
<?= _vips('Dateien zur Aufgabe:') ?>
</div>
<ul>
<? foreach ($exercise->files as $file): ?>
<li>
<a href="<?= htmlReady($file->getDownloadURL()) ?>">
<?= htmlReady($file->name) ?>
</a>
</li>
<? endforeach ?>
</ul>
<? endif ?>
<?= $this->render_partial($exercise_template) ?>
<? if ($show_solution): ?>
<? if ($exercise->options['comment'] && $solution->student_comment != ''): ?>
<div class="label-text">
<?= _vips('Bemerkungen zur Lösung') ?>
</div>
<div class="vips_output">
<?= htmlReady($solution->student_comment, true, true) ?>
</div>
<? endif ?>
<header>
<?= _vips('Bewertung') ?>
</header>
<? if ($solution->corrector_comment != ''): ?>
<div class="label-text">
<?= _vips('Anmerkungen zur Lösung') ?>
</div>
<div class="vips_output">
<?= formatReady($solution->corrector_comment) ?>
</div>
<? endif ?>
<div class="description">
<?= sprintf(_vips('Erreichte Punkte: %s von %s'), (float) $reached_points, (float) $max_points) ?>
</div>
<? else: ?>
<? if ($exercise->options['comment']): ?>
<label>
<?= _vips('Bemerkungen zur Lösung (optional)') ?>
<textarea name="student_comment"><?= htmlReady($solution->student_comment) ?></textarea>
</label>
<? endif ?>
<? endif ?>
<? setlocale(LC_NUMERIC, 'C') ?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment