Fix staging server deployment #24
Merged
maxime.batista
merged 2 commits from staging/fix
into master
1 year ago
@ -0,0 +1 @@
|
|||||||
|
../front/assets
|
@ -1,24 +1,23 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport"
|
<meta name="viewport"
|
||||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||||
<title>Paramètres</title>
|
<title>Paramètres</title>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
padding-left: 10%;
|
padding-left: 10%;
|
||||||
padding-right: 10%;
|
padding-right: 10%;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
||||||
|
<body>
|
||||||
<body>
|
<button onclick="location.pathname='{{ path('/home') }}'">Retour</button>
|
||||||
<button onclick="location.pathname='/home'">Retour</button>
|
<h1>Paramètres</h1>
|
||||||
<h1>Paramètres</h1>
|
</body>
|
||||||
</body>
|
|
||||||
</html>
|
</html>
|
@ -1,85 +1,91 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Twig view</title>
|
<title>Twig view</title>
|
||||||
<style>
|
<style>
|
||||||
body{
|
body {
|
||||||
background-color: #f1f1f1;
|
background-color: #f1f1f1;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
section{
|
section {
|
||||||
width: 60%;
|
width: 60%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.square{
|
.square {
|
||||||
width:50px;
|
width: 50px;
|
||||||
height:50px;
|
height: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#main_color {
|
#main_color {
|
||||||
border: solid;
|
border: solid;
|
||||||
background-color: {{ team.getInfo().getMainColor().getValue() }};
|
background-color: {{ team.getInfo().getMainColor().getValue() }};
|
||||||
}
|
}
|
||||||
#second_color{
|
|
||||||
background-color: {{ team.getInfo().getSecondColor().getValue() }};
|
|
||||||
border: solid;
|
|
||||||
}
|
|
||||||
|
|
||||||
.container{
|
#second_color {
|
||||||
background-color: #fff;
|
background-color: {{ team.getInfo().getSecondColor().getValue() }};
|
||||||
display: flex;
|
border: solid;
|
||||||
flex-direction: column;
|
}
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
.team{
|
|
||||||
border-color: darkgrey;
|
|
||||||
border-radius: 20px;
|
|
||||||
|
|
||||||
}
|
.container {
|
||||||
|
background-color: #fff;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
.color{
|
.team {
|
||||||
flex-direction: row;
|
border-color: darkgrey;
|
||||||
justify-content: space-between;
|
border-radius: 20px;
|
||||||
}
|
|
||||||
|
|
||||||
.logo{
|
}
|
||||||
height: 80px;
|
|
||||||
width: 80px;
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
.color {
|
||||||
</head>
|
flex-direction: row;
|
||||||
<body>
|
justify-content: space-between;
|
||||||
<header>
|
}
|
||||||
<h1><a href="/">IQBall</a></h1>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<section class="container">
|
.logo {
|
||||||
|
height: 80px;
|
||||||
|
width: 80px;
|
||||||
|
}
|
||||||
|
|
||||||
<div class="team container">
|
</style>
|
||||||
<div>
|
</head>
|
||||||
<h1>{{ team.getInfo().getName() }}</h1>
|
<body>
|
||||||
<img src="{{ team.getInfo().getPicture() }}" alt="Logo d'équipe" class="logo">
|
<header>
|
||||||
</div>
|
<h1><a href="{{ path('/') }}">IQBall</a></h1>
|
||||||
<div>
|
</header>
|
||||||
<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>
|
|
||||||
|
|
||||||
{% for m in team.listMembers() %}
|
<section class="container">
|
||||||
<p> {{ m.getUserId() }} </p>
|
|
||||||
{% if m.getRole().isCoach() %}
|
<div class="team container">
|
||||||
<p> : Coach</p>
|
<div>
|
||||||
{% else %}
|
<h1>{{ team.getInfo().getName() }}</h1>
|
||||||
<p> : Joueur</p>
|
<img src="{{ team.getInfo().getPicture() }}" alt="Logo d'équipe" class="logo">
|
||||||
{% endif %}
|
</div>
|
||||||
{% endfor %}
|
<div>
|
||||||
|
<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>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% for m in team.listMembers() %}
|
||||||
|
<p> {{ m.getUserId() }} </p>
|
||||||
|
{% if m.getRole().isCoach() %}
|
||||||
|
<p> : Coach</p>
|
||||||
|
{% else %}
|
||||||
|
<p> : Joueur</p>
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -1,57 +1,57 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Error</title>
|
<title>Error</title>
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
color: #da6110;
|
color: #da6110;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-bottom: 15px
|
margin-bottom: 15px
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
margin-top: 15px
|
margin-top: 15px
|
||||||
}
|
}
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
display: block;
|
display: block;
|
||||||
cursor : pointer;
|
cursor: pointer;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
color : black;
|
color: black;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
border : 2px solid #da6110;
|
border: 2px solid #da6110;
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button:hover {
|
.button:hover {
|
||||||
background-color: #da6110
|
background-color: #da6110
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<h1>IQBall</h1>
|
<h1>IQBall</h1>
|
||||||
|
|
||||||
{% for fail in failures %}
|
{% for fail in failures %}
|
||||||
<h2>{{ fail.getKind() }} : {{ fail.getMessage() }}</h2>
|
<h2>{{ fail.getKind() }} : {{ fail.getMessage() }}</h2>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
|
||||||
<button class="button" onclick="location.href='/home'" type="button">Retour à la page d'accueil</button>
|
<button class="button" onclick="location.href='{{ path('/home') }}'" type="button">Retour à la page d'accueil</button>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in new issue
Because path concatenation cannot always be resumed to a simple string concatenation, exposing a
path(string)
function would hide this base path.