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.
109 lines
2.7 KiB
109 lines
2.7 KiB
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Twig view</title>
|
|
<style>
|
|
body {
|
|
background-color: #f1f1f1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.square {
|
|
width: 50px;
|
|
height: 50px;
|
|
}
|
|
|
|
#main_color {
|
|
border: solid;
|
|
background-color: {{ team.getInfo().getMainColor().getValue() }};
|
|
}
|
|
|
|
#second_color {
|
|
background-color: {{ team.getInfo().getSecondColor().getValue() }};
|
|
border: solid;
|
|
}
|
|
|
|
section {
|
|
background-color: #fff;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
width: 60%;
|
|
}
|
|
|
|
#colors{
|
|
flex-direction: row;
|
|
}
|
|
.color {
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.logo {
|
|
height: 80px;
|
|
width: 80px;
|
|
}
|
|
|
|
#delete{
|
|
border-radius:10px ;
|
|
background-color: red;
|
|
color: white;
|
|
}
|
|
|
|
.player{
|
|
flex-direction: row;
|
|
justify-content: space-evenly;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<h1><a href="{{ path('/') }}">IQBall</a></h1>
|
|
</header>
|
|
|
|
<section class="container">
|
|
{% if notDeleted %}
|
|
<popup>
|
|
<p>Cette équipe ne peut être supprimée.</p>
|
|
</popup>
|
|
{% endif %}
|
|
{% if team is defined %}
|
|
<div class="team">
|
|
<div>
|
|
<h1>{{ team.getInfo().getName() }}</h1>
|
|
<img src="{{ team.getInfo().getPicture() }}" alt="Logo d'équipe" class="logo">
|
|
</div>
|
|
<div id="colors">
|
|
<div class="color"><p>Couleur principale : </p>
|
|
<div class="square" id="main_color"></div>
|
|
</div>
|
|
<div class="color"><p>Couleur secondaire : </p>
|
|
<div class="square" id="second_color"></div>
|
|
</div>
|
|
</div>
|
|
{% if isCoach %}
|
|
<button id="delete" onclick="confirm('Êtes-vous sûr de supprimer cette équipe?') ? window.location.href = '{{ path("/team/#{team.getInfo().getId()}/delete") }}' : {}">Supprimer</button>
|
|
<button></button>
|
|
{% endif %}
|
|
{% for m in team.listMembers() %}
|
|
<div class="player">
|
|
<p> {{ m.getUserId() }} </p>
|
|
{% if m.getRole().isCoach() %}
|
|
<p> : Coach</p>
|
|
{% else %}
|
|
<p> : Joueur</p>
|
|
{% endif %}
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% else %}
|
|
<div>
|
|
<h3>Cette équipe ne peut être affichée</h3>
|
|
</div>
|
|
{% endif %}
|
|
</section>
|
|
</body>
|
|
</html> |