can share tactic to team or account and can unshare tactic to everyone (build will fail because need to modify home page)
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
2beda1c7f5
commit
51f150a16a
@ -1,21 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Twig view</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
{% if teams is empty %}
|
||||
<p>Vous n'êtes dans aucune équipe</p>
|
||||
{% else %}
|
||||
{% for team in teams %}
|
||||
<div class="team" onclick="window.location.href = '{{ path("/shareTactic/#{tactic}/team/#{team.id}") }}'">
|
||||
<p>Nom de l'équipe : {{ team.name }}</p>
|
||||
<img src="{{ team.picture }}" alt="logo de l'équipe">
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,47 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Twig view</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
{% if toShare %}
|
||||
{% if teams is empty %}
|
||||
<p>Vous n'êtes dans aucune équipe</p>
|
||||
{% else %}
|
||||
{% for team in teams %}
|
||||
<div class="team" onclick="window.location.href = '{{ path("/shareTactic/#{tactic}/team/#{team.id}") }}'">
|
||||
<p>Nom de l'équipe : {{ team.name }}</p>
|
||||
<img src="{{ team.picture }}" alt="logo de l'équipe">
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
<h2>Partager à un compte</h2>
|
||||
<form action="{{ path("/shareTactic/#{tactic}/account") }}" method="POST">
|
||||
<div class="form-group">
|
||||
|
||||
<label for="email">Email du membre :</label>
|
||||
{% if badEmail %}
|
||||
<p class="failed">Email invalide</p>
|
||||
{% endif %}
|
||||
{%if notFound %}
|
||||
<p class="failed">Cette personne n'a pas été trouvé</p>
|
||||
{% endif %}
|
||||
<input type="text" id="email" name="email" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="submit" value="Confirmer">
|
||||
</div>
|
||||
</form>
|
||||
{% else %}
|
||||
<form action="{{ path("/unshareTactic/#{tactic}") }}" method="POST">
|
||||
<button name="unshareAll" value="unshareAll">Supprimer le partage de cette tactique à tout le monde</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in new issue