Questtype ?textinput?: show count of correctly filled fields (implements #3)

This commit is contained in:
oliver 2015-04-08 16:24:01 +02:00
commit 0060dfee8a
4 changed files with 17 additions and 5 deletions

View file

@ -9,5 +9,6 @@
<?php endforeach ?>
<?=$t->t(mb_substr($task['text'], $posStart, mb_strlen($task['text'], 'UTF-8')-$posStart, 'UTF-8'))?>
</p>
<p><?=sprintf(_('You filled %d of %d fields correctly'), $count, count($fields))?>.</p>
<input type="submit" name="submit" value="<?=_('solve')?>" />
</form>