trial app

This commit is contained in:
2024-03-31 18:48:05 +03:00
commit aadc3c50d5
59 changed files with 13017 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
{% extends 'layout.html.twig' %}
{% block body %}
<div class="d-flex flex-column-reverse flex-lg-row container w-100">
<div class="container pt-3">
<h4>Start you trial now: <strong>{{ test.getName() }}</strong></h4>
<div class="row">
{{ form(form) }}
</div>
</div>
</div>
{% endblock %}
+23
View File
@@ -0,0 +1,23 @@
{% extends 'layout.html.twig' %}
{% block body %}
<div class="d-flex flex-column-reverse flex-lg-row container w-100">
<div class="container pt-3">
<h4>You finished trial: <strong>{{ test.getName() }}</strong></h4>
<h5>Your results <a href="{{ url('test_results', {'test_id': test.getId(), 'uuid': uuid}) }}">link</a></h5>
<div class="row">
<ul class="list-group">
{% for existingAnswer in existingAnswers %}
<li class="list-group-item {% if not existingAnswer.isCorrect() %}list-group-item-danger{% else %}list-group-item-success{% endif %}">
{{ service.getQuestionModel(existingAnswer.question).getPrompt() }}
{% for answer in existingAnswer.getAnswer() %}
{{ service.assembleString(answer) }}{% if not loop.last %},{% endif %}
{% endfor %}
</li>
{% endfor %}
</ul>
</div>
</div>
</div>
{% endblock %}
+37
View File
@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="en" class="h-100">
<head>
<meta charset="UTF-8">
<title>{% block title %}Trial app{% endblock %}</title>
<link rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
{% block stylesheets %}
{{ encore_entry_link_tags('app') }}
{% endblock %}
{% block javascripts %}
{{ encore_entry_script_tags('app') }}
{% endblock %}
</head>
<body class="d-flex flex-column h-100 m-0 p-0 w-100 bg-light">
<header class="p-3 text-bg-dark w-100">
<div class="container">
<div class="d-flex flex-wrap align-items-center justify-content-center justify-content-lg-between">
<a href="{{ path('index') }}"
class="d-flex align-items-center mb-2 mb-lg-0 text-white text-decoration-none">
<span class="fs-4">Home</span>
</a>
</div>
</div>
</header>
{% block body %}
{% endblock %}
<footer class="mt-auto bg-dark text-bg-dark py-2 footer">
<p class="text-center">© {{ date().format('Y') }} Trial app</p>
</footer>
</body>
</html>