Add a way of validating answers and render whole group of questions not just one file at a time. Add a cs-fixer package

This commit is contained in:
Krzysztof Płaczek
2024-10-24 16:23:43 +02:00
parent adb1449085
commit d07e20a1d5
13 changed files with 289 additions and 110 deletions

View File

@@ -3,16 +3,16 @@
{% block body %}
<div class="mx-auto mt-5 max-w-7xl px-2 sm:px-6 lg:px-8">
<div class="mt-5 max-w-7xl px-2 sm:px-6 lg:px-8">
{% set test = '' %}
{% set currentGroup = '' %}
{% for challenge in list %}
{% if test != challenge.getRelativePath %}
{% if currentGroup != challenge.getRelativePath %}
<h2 class="text-2xl font-bold leading-7 text-gray-900 sm:truncate sm:text-3xl sm:tracking-tight">
<a href="">{{ challenge.getRelativePath|replace({'_': ' '})|capitalize }} / All</a>
<a href="{{ path('app_challenge_group', {'group': challenge.getRelativePath}) }}">{{ challenge.getRelativePath|replace({'_': ' '})|capitalize }} / All</a>
</h2>
{% endif %}
<h2 class="leading-7 hover:text-cyan-600 text-gray-900 sm:truncate sm:tracking-tight ms-8">
<h2 class="leading-7 hover:text-cyan-600 text-gray-900 sm:truncate sm:tracking-tight ms-8 text-sm">
<a href="{{ path('app_challenge', {'challenge': challenge.getfilename}) }}">{{ challenge.getFilenameWithoutExtension|replace({'_': ' '})|capitalize }}</a></h2>
{% set test = challenge.getRelativePath %}
{% set currentGroup = challenge.getRelativePath %}
{% endfor %}
<div class="lg:flex lg:items-center lg:justify-between">
<div class="min-w-0 flex-1">