2017-01-26 22:32:27 +00:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% block content %}
|
|
|
|
<h2>Trancher un joueur</h2>
|
|
|
|
<p>
|
|
|
|
Ta cible sera notifiée quelle que soit l'issue de ta tentative. Question
|
|
|
|
chance, c'est 50-50.
|
|
|
|
</p>
|
|
|
|
<form id="select" action="" method="post">
|
|
|
|
<select name="target_id">
|
|
|
|
<p><option value="none">(sélectionner un joueur)</option>
|
|
|
|
{% for player in players %}
|
|
|
|
<option value="{{ player.id }}">
|
|
|
|
{{ "%s %s" % (player.firstname, player.name) }}
|
|
|
|
</option></p>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
<input type="submit" value="Tchak !" />
|
|
|
|
</form>
|
2017-01-30 08:51:21 +00:00
|
|
|
<h2>
|
2017-01-26 22:32:27 +00:00
|
|
|
<a href="{{ url_for('home') }}">« retour à l'accueil</a>
|
2017-01-30 08:51:21 +00:00
|
|
|
</h2>
|
|
|
|
|
|
|
|
<div id="container" style="min-width: 310px; max-width: 600px; margin: 0 auto"></div>
|
2017-01-30 07:47:32 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
$(function () {
|
|
|
|
Highcharts.chart('container', {
|
|
|
|
chart: {
|
|
|
|
plotBackgroundColor: null,
|
|
|
|
plotBorderWidth: 0,
|
|
|
|
plotShadow: false
|
|
|
|
},
|
|
|
|
title: {
|
|
|
|
text: 'Etat du Rezo',
|
|
|
|
align: 'center',
|
|
|
|
verticalAlign: 'middle',
|
2017-01-30 10:12:24 +00:00
|
|
|
y: 60
|
2017-01-30 07:47:32 +00:00
|
|
|
},
|
|
|
|
tooltip: {
|
|
|
|
pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
|
|
|
|
},
|
|
|
|
plotOptions: {
|
|
|
|
pie: {
|
|
|
|
dataLabels: {
|
|
|
|
enabled: true,
|
|
|
|
distance: -50,
|
|
|
|
style: {
|
|
|
|
fontWeight: 'bold',
|
|
|
|
color: 'white'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
startAngle: -90,
|
|
|
|
endAngle: 90,
|
|
|
|
center: ['50%', '75%']
|
|
|
|
},
|
|
|
|
},
|
|
|
|
series: [{
|
|
|
|
type: 'pie',
|
|
|
|
name: 'Etat du Rezo',
|
|
|
|
innerSize: '50%',
|
|
|
|
data: [
|
2017-01-30 08:37:54 +00:00
|
|
|
{
|
|
|
|
name: 'Tranchés',
|
|
|
|
y: {{ stats[0] }},
|
|
|
|
color: '#FF0000',
|
|
|
|
},{
|
|
|
|
name: 'Vivants',
|
|
|
|
y: {{ stats[1] }},
|
|
|
|
color: '#FFCC00',
|
|
|
|
}
|
2017-01-30 07:47:32 +00:00
|
|
|
]
|
|
|
|
}]
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
2017-01-26 22:32:27 +00:00
|
|
|
{% endblock %}
|