SOITA/templates/category.html

25 lines
1.1 KiB
HTML
Raw Normal View History

2022-01-08 22:15:30 +01:00
{% extends "base.html" %}
2022-01-25 18:17:58 +01:00
{% block title %}Kategoria - {{name}}{% endblock %}
2022-01-08 22:15:30 +01:00
{% block content %}
2022-01-25 18:17:58 +01:00
<h1>Testy w kategorii {{name}}</h1>
2022-01-08 22:15:30 +01:00
{% for test in tests %}
<div class="mainTestContainer">
<div class="mainTestName">
{{test.name}}
</div>
<div class="mainTestMeta">
2022-01-25 18:17:58 +01:00
<div class="left">Kategoria: {{test.category}}</div>
<div class="center">Próg zaliczenia: {{test.passing_score}}</div>
<div class="right">Ilość pytań: {{test.questions|length}}</div>
2022-01-08 22:15:30 +01:00
</div>
<div class="mainTestDesc">
<!-- TODO 250 words limit-->
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus volutpat scelerisque tortor, id sodales leo finibus id. Vivamus id viverra nunc, ac faucibus metus. Nulla a mauris imperdiet sapien lobortis dapibus. Quisque ornare posuere pulvinar.
</div>
2022-01-25 18:17:58 +01:00
<button><a href="/tests/{{test.id}}/show">Rozwiąż</a></button>
2022-01-08 22:15:30 +01:00
</div>
<br>
{% endfor %}
{% endblock %}