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.
61 lines
1.6 KiB
61 lines
1.6 KiB
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Twig view</title>
|
|
<style>
|
|
body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
background-color: #f1f1f1;
|
|
align-items: center;
|
|
}
|
|
section{
|
|
flex-direction: row;
|
|
justify-content: space-around;
|
|
background-color: white;
|
|
width: 60%;
|
|
}
|
|
|
|
.team {
|
|
border-radius: 10px;
|
|
border-color: darkgrey;
|
|
}
|
|
|
|
.logo_team {
|
|
width: 15%;
|
|
aspect-ratio: 3/2;
|
|
object-fit: contain;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<h1><a href="{{ path('/') }}">IQBall</a></h1>
|
|
</header>
|
|
<section>
|
|
{% if teams is empty %}
|
|
<p>Aucune équipe n'a été trouvée</p>
|
|
<div class="container">
|
|
<h2>Chercher une équipe</h2>
|
|
<form action="{{ path('/team/search') }}" method="post">
|
|
<div class="form-group">
|
|
<label for="name">Nom de l'équipe :</label>
|
|
<input type="text" id="name" name="name" required>
|
|
</div>
|
|
<div class="form-group">
|
|
<input type="submit" value="Confirmer">
|
|
</div>
|
|
</form>
|
|
</div>
|
|
{% else %}
|
|
{% for t in teams %}
|
|
<div class="team" onclick="window.location.href = '{{ path("/team/#{t.getId()}") }}'">
|
|
<p>Nom de l'équipe : {{ t.getName() }}</p>
|
|
<img src="{{ t.getPicture() }}" alt="logo de l'équipe" class="logo_team">
|
|
</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
</section>
|
|
</body>
|
|
</html> |