{% extends "smaoahpa.html" %} {% comment %} This is the main game template, which is used in mgame.html, and other templates belonging to specific games. Settings form is rendered here, and most of the form for the game. Morfa templates are a bit more complex, and there are sub-templates which inherit up two levels. Inheritance is something like this: smaoahpa_main.html smaoahpa.html drills/game.html drills/mgame.html drills/mgame_a.html drills/mgame_l.html drills/mgame_n.html drills/mgame_v.html drills/quizz.html drills/num.html * NB! smaoahpa_main.html is different from drills/smaoahpa_main.html but the latter is not in use at the moment. Game form is kind of messy now, but previously survived on many many tables. Currently working on cleaning this up, because it's much easier to extend. Should probably use something like the following:
| ||||||
{% if 1 %}
{% if all_correct %} {% trans "Congratulations!" %} {% endif %} {% trans "Your score:" %} {{ score }} {% endif %} {% if comment %} {{ comment }} {% endif %} |