diff --git a/src/App/Views/display_team.html.twig b/src/App/Views/display_team.html.twig index 2a3f9ab..905e3c5 100644 --- a/src/App/Views/display_team.html.twig +++ b/src/App/Views/display_team.html.twig @@ -66,6 +66,11 @@
+ {% if notDeleted %} + +

Cette équipe ne peut être supprimée.

+
+ {% endif %} {% if team is defined %}
diff --git a/src/App/Views/display_teams.html.twig b/src/App/Views/display_teams.html.twig index 3713265..4c17a5e 100644 --- a/src/App/Views/display_teams.html.twig +++ b/src/App/Views/display_teams.html.twig @@ -3,9 +3,38 @@ Twig view + - +
+

IQBall

+
+
{% if teams is empty %}

Aucune équipe n'a été trouvée

@@ -24,10 +53,10 @@ {% for t in teams %}

Nom de l'équipe : {{ t.getName() }}

- logo de l'équipe + logo de l'équipe
{% endfor %} {% endif %} - +
\ No newline at end of file diff --git a/src/App/Views/list_team_by_name.html.twig b/src/App/Views/list_team_by_name.html.twig index eca5e19..3b93f94 100644 --- a/src/App/Views/list_team_by_name.html.twig +++ b/src/App/Views/list_team_by_name.html.twig @@ -56,7 +56,9 @@ - +
+

IQBall

+

Chercher une équipe

diff --git a/src/Core/Gateway/TeamGateway.php b/src/Core/Gateway/TeamGateway.php index a827b72..11735c2 100644 --- a/src/Core/Gateway/TeamGateway.php +++ b/src/Core/Gateway/TeamGateway.php @@ -63,7 +63,6 @@ class TeamGateway { if ($row == null) { return null; } - return new TeamInfo($row['id'], $row['name'], $row['picture'], Color::from($row['main_color']), Color::from($row['second_color'])); }