WIP done with insertion, got a problem on list team and starting displayTeam
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
0859467e3f
commit
30611b9b21
@ -0,0 +1,35 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Twig view</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1>Hello world</h1>
|
||||
|
||||
{% if teams is empty %}
|
||||
<p>Aucune équipe n'a été trouvée</p>
|
||||
<div class="container">
|
||||
<h2>Chercher une équipe</h2>
|
||||
<form action="/team/list" 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 onclick="window.location.href = '/team/{{ t.id }}'">
|
||||
<p>Nom de l'équipe: {{ t.name }}</p>
|
||||
<p>picture : {{ t.picture }}</p>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,35 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Twig view</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1>Hello world</h1>
|
||||
|
||||
{% if teams is empty %}
|
||||
<p>Aucune équipe n'a été trouvée</p>
|
||||
<div class="container">
|
||||
<h2>Chercher une équipe</h2>
|
||||
<form action="/team/list" 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 onclick="window.location.href = '/team/{{ t.id }}'">
|
||||
<p>Nom de l'équipe: {{ t.name }}</p>
|
||||
<p>picture : {{ t.picture }}</p>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in new issue