You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Application-Web/src/App/Views/home.twig

97 lines
2.4 KiB

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Page d'accueil</title>
<style>
body {
padding-left: 10%;
padding-right: 10%;
}
#bandeau {
display: flex;
flex-direction: row;
}
#bandeau > h1 {
self-align: center;
padding: 0%;
margin: 0%;
justify-content: center;
}
#account {
display: flex;
flex-direction: column;
align-content: center;
}
#account:hover {
background-color: gray;
}
#account img {
width: 70%;
height: auto;
align-self: center;
padding: 5%;
margin: 0%;
}
#account p {
align-self: center;
}
</style>
</head>
<body>
<button onclick="location.pathname='{{ path('/disconnect') }}'"> Se déconnecter</button>
<div id="bandeau">
<h1>IQ CourtObjects</h1>
<div id="account" onclick="location.pathname='{{ path('/settings') }}'">
<img
src="{{ path('/assets/icon/account.svg') }}"
alt="Account logo"
/>
<p>Mon profil
<p>
</div>
</div>
<h2>Mes équipes</h2>
<button onclick="location.pathname='{{ path('/team/new') }}'"> Créer une nouvelle équipe</button>
{% if recentTeam != null %}
{% for team in recentTeam %}
<div>
<p> {{ team.name }} </p>
</div>
{% endfor %}
{% else %}
<p>Aucune équipe créée !</p>
{% endif %}
<h2> Mes strategies </h2>
<button onclick="location.pathname='{{ path('/tactic/new') }}'"> Créer une nouvelle tactique</button>
{% if recentTactic != null %}
{% for tactic in recentTactic %}
<div onclick="location.pathname='{{ path("/tactic/#{strategie.id}/edit") }}'">
<p> {{ tactic.id }} - {{ tactic.name }} - {{ tactic.creation_date }} </p>
<button onclick="location.pathname='{{ path("/tactic/#{tactic.id}/edit") }}'"> Editer la
stratégie {{ tactic.id }} </button>
</div>
{% endfor %}
{% else %}
<p> Aucune tactique créée !</p>
{% endif %}
</body>
</html>