mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-03-05 20:44:19 +01:00
Add Sheet upload function
This commit is contained in:
@@ -3,9 +3,14 @@
|
||||
{% block title %}Hello BackofficeController!{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h2 class="py-2">
|
||||
{{ is_granted('ROLE_ADMIN') ? 'All Seasons'|trans : 'Your Seasons'|trans }}
|
||||
</h2>
|
||||
<div class="d-flex flex-row align-items-center">
|
||||
<h2 class="py-2 pe-2">
|
||||
{{ is_granted('ROLE_ADMIN') ? 'All Seasons'|trans : 'Your Seasons'|trans }}
|
||||
</h2>
|
||||
<a class="link" href="{{ path('app_backoffice_season_add') }}">
|
||||
{{ 'Add'|trans }}
|
||||
</a>
|
||||
</div>
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
@@ -17,6 +17,10 @@
|
||||
<a class="nav-link{% if 'app_backoffice_index' == app.current_route() %} active{% endif %}"
|
||||
href="{{ path('app_backoffice_index') }}">{{ 'Seasons'|trans }}</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link"
|
||||
href="{{ path('app_backoffice_template') }}">{{ 'Download Template'|trans }}</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="navbar-nav mb-auto me-2 me-lg-0">
|
||||
<li class="nav-item">
|
||||
|
||||
25
templates/backoffice/quiz_add.html.twig
Normal file
25
templates/backoffice/quiz_add.html.twig
Normal file
@@ -0,0 +1,25 @@
|
||||
{% extends 'backoffice/base.html.twig' %}
|
||||
|
||||
{% block body %}
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-12">
|
||||
<h2 class="py-2">{{ 'Add a quiz to '|trans }} {{ season.name }}</h2>
|
||||
{{ form_start(form) }}
|
||||
{{ form_row(form.name) }}
|
||||
{{ form_row(form.sheet) }}
|
||||
<button type="submit" class="btn btn-primary">{{ 'Submit'|trans }}</button>
|
||||
{{ form_end(form) }}
|
||||
</div>
|
||||
<div class="col-md-6 col-12">
|
||||
<p class="pt-5">
|
||||
Hier kan nog tekst komen met wat uitleg
|
||||
</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block title %}
|
||||
|
||||
{% endblock %}
|
||||
@@ -3,7 +3,11 @@
|
||||
<h2 class="py-2">{{ 'Season'|trans }}: {{ season.name }}</h2>
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-12">
|
||||
<h4 class="py-2">{{ 'Quizzes'|trans }}</h4>
|
||||
<div class="d-flex flex-row align-items-center">
|
||||
<h4 class="py-2 pe-2">{{ 'Quizzes'|trans }}</h4>
|
||||
<a class="link"
|
||||
href="{{ path('app_backoffice_quiz_add', {seasonCode: season.seasonCode}) }}">{{ 'Add'|trans }}</a>
|
||||
</div>
|
||||
<div class="list-group">
|
||||
{% for quiz in season.quizzes %}
|
||||
<a class="list-group-item list-group-item-action{% if season.activeQuiz == quiz %} active{% endif %}"
|
||||
@@ -14,9 +18,10 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3 col-12">
|
||||
<div style="display: flex ;flex-direction: row; justify-content: space-between">
|
||||
<h4 class="py-2">{{ 'Candidates'|trans }}</h4>
|
||||
<button class="btn btn-outline-primary">{{ 'Add Candidate'|trans }}</button>
|
||||
<div class="d-flex flex-row align-items-center">
|
||||
<h4 class="py-2 pe-2">{{ 'Candidates'|trans }}</h4>
|
||||
<a class="link"
|
||||
href="{{ path('app_backoffice_add_candidates', {seasonCode: season.seasonCode}) }}">{{ 'Add Candidate'|trans }}</a>
|
||||
|
||||
</div>
|
||||
<ul>
|
||||
|
||||
22
templates/backoffice/season_add.html.twig
Normal file
22
templates/backoffice/season_add.html.twig
Normal file
@@ -0,0 +1,22 @@
|
||||
{% extends 'backoffice/base.html.twig' %}
|
||||
|
||||
{% block body %}
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-12">
|
||||
<h2 class="py-2">{{ 'Create a season'|trans }}</h2>
|
||||
{{ form_start(form) }}
|
||||
{{ form_row(form.name) }}
|
||||
<button type="submit" class="btn btn-primary">{{ 'Submit'|trans }}</button>
|
||||
{{ form_end(form) }}
|
||||
</div>
|
||||
<div class="col-md-6 col-12">
|
||||
<p class="pt-5">
|
||||
Hier kan nog tekst komen met wat uitleg
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block title %}
|
||||
|
||||
{% endblock %}
|
||||
22
templates/backoffice/season_add_candidates.html.twig
Normal file
22
templates/backoffice/season_add_candidates.html.twig
Normal file
@@ -0,0 +1,22 @@
|
||||
{% extends 'backoffice/base.html.twig' %}
|
||||
|
||||
{% block body %}
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-12">
|
||||
<h2 class="py-2">{{ 'Add Candidates'|trans }}</h2>
|
||||
{{ form_start(form) }}
|
||||
{{ form_row(form.candidates) }}
|
||||
<button type="submit" class="btn btn-primary">{{ 'Submit'|trans }}</button>
|
||||
{{ form_end(form) }}
|
||||
</div>
|
||||
<div class="col-md-6 col-12">
|
||||
<p class="pt-5">
|
||||
Hier kan nog tekst komen met wat uitleg
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block title %}
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user