mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-03-05 20:44:19 +01:00
Refactor translations to XLIFF format, enhance elimination workflows, and update compose configuration
This commit switches translations from YAML to XLIFF format for better standardization, updates the elimination preparation process with UI and functionality improvements, tweaks form structures, adjusts compose.override.yaml for improved asset handling, and optimizes back office usability with refined translation handling.
This commit is contained in:
@@ -24,16 +24,18 @@
|
||||
<div class="col-4">
|
||||
<select id="colour-{{ candidate|lower }}" class="form-select"
|
||||
name="colour-{{ candidate|lower }}">
|
||||
<option value="green"{% if colour == 'green' %} selected{% endif %}>Green</option>
|
||||
<option value="red"{% if colour == 'red' %} selected{% endif %}>Red</option>
|
||||
<option
|
||||
value="green"{% if colour == 'green' %} selected{% endif %}>{{ 'Green'|trans }}</option>
|
||||
<option
|
||||
value="red"{% if colour == 'red' %} selected{% endif %}>{{ 'Red'|trans }}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
<div class="btn-group py-2">
|
||||
<button type="submit" class="btn btn-primary" name="start" value="1">{{ 'Save'|trans }}</button>
|
||||
<button type="submit" class="btn btn-primary" name="start" value="0">{{ 'Save'|trans }}</button>
|
||||
<button type="submit" class="btn btn-success" name="start"
|
||||
value="0">{{ 'Save and start elimination'|trans }}</button>
|
||||
value="1">{{ 'Save and start elimination'|trans }}</button>
|
||||
<a href="{{ path('app_backoffice_quiz', {seasonCode: elimination.quiz.season.seasonCode, quiz: elimination.quiz.id}) }}"
|
||||
class="btn btn-secondary">{{ 'Back'|trans }}</a>
|
||||
</div>
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
<h4 class="py-2">{{ 'Score'|trans }}</h4>
|
||||
<div class="btn-toolbar" role="toolbar">
|
||||
<div class="btn-group btn-group-lg me-2">
|
||||
<a class="btn btn-primary">{{ 'Start Elimination'|trans }}</a>
|
||||
{# <a class="btn btn-primary">{{ 'Start Elimination'|trans }}</a> #}
|
||||
<a href="{{ path('app_prepare_elimination', {seasonCode: season.seasonCode, quiz: quiz.id}) }}"
|
||||
class="btn btn-secondary">{{ 'Prepare Custom Elimination'|trans }}</a>
|
||||
{%~ if not quiz.eliminations.empty %}
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
{% extends 'quiz/base.html.twig' %}
|
||||
|
||||
{% block body %}
|
||||
<img src="{{ asset("img/#{colour}.png") }}" class="elimination-screen" id="{{ colour }}"
|
||||
alt="Screen with colour {{ colour }}">
|
||||
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,20 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<title>Hello EliminationController!</title>
|
||||
|
||||
{% extends 'quiz/base.html.twig' %}
|
||||
{% block body %}
|
||||
<style>
|
||||
.example-wrapper { margin: 1em auto; max-width: 800px; width: 95%; font: 18px/1.5 sans-serif; }
|
||||
.example-wrapper code { background: #F5F5F5; padding: 2px 6px; }
|
||||
</style>
|
||||
|
||||
<div class="example-wrapper">
|
||||
<h1>Hello {{ controller_name }}! ✅</h1>
|
||||
|
||||
This friendly message is coming from:
|
||||
<ul>
|
||||
<li>Your controller at <code>/app/src/Controller/EliminationController.php</code></li>
|
||||
<li>Your template at <code>/app/templates/elimination/index.html.twig</code></li>
|
||||
</ul>
|
||||
</div>
|
||||
{% endblock %}
|
||||
{{ form(form) }}
|
||||
{% endblock body %}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{% extends 'quiz/base.html.twig' %}
|
||||
{% block body %}
|
||||
{{ season.name }}
|
||||
{{ form(form) }}
|
||||
{% endblock body %}
|
||||
|
||||
Reference in New Issue
Block a user