This commit is contained in:
2019-01-02 04:30:59 +01:00
commit 0007f25cf6
6 changed files with 128 additions and 0 deletions

9
templates/main.html Normal file
View File

@@ -0,0 +1,9 @@
<html>
<head>
<title>{% block title %}Wer bin ich{% endblock %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
{% block content %}{% endblock %}
</body>
</html>

19
templates/name_edit.html Normal file
View File

@@ -0,0 +1,19 @@
{% extends "main.html" %}
{% block title %}Choose name{% endblock %}
{% block content %}
<h1>Choose a name</h1>
<h2>You are: {{ current_player }}</h2>
<p>
Please name your player:
<br/>
<form method=post>
{% for player in other_players %}
{{ player }}: <input type=text name={{ player }} /><br/>
{% endfor %}
<input type=submit />
</form>
</p>
{% endblock %}

16
templates/name_show.html Normal file
View File

@@ -0,0 +1,16 @@
{% extends "main.html" %}
{% block title %}Play!{% endblock %}
{% block content %}
<h1>Play!</h1>
<h2>You are: {{ current_player }}</h2>
<p>
<table>
{% for player,name in other_players.items() %}
<tr><td>{{ player }}</td><td>{{ name }}</td></tr>
{% endfor %}
</table>
</p>
{% endblock %}

15
templates/new_game.html Normal file
View File

@@ -0,0 +1,15 @@
{% extends "main.html" %}
{% block title %}New Game{% endblock %}
{% block content %}
<h1>New Game</h1>
Please enter player names:
<br/>
<form method=post>
{% for _ in range(10) %}
<input type=text name=pname /><br/>
{% endfor %}
<input type=submit />
</form>
{% endblock %}

View File

@@ -0,0 +1,19 @@
{% extends "main.html" %}
{% block title %}Player select{% endblock %}
{% block content %}
<h1>Player select</h1>
<p>
Please select your player:
<br/>
{% for player in players %}
<a href=./edit/{{ player }}>{{ player }}</a>
{% endfor %}
</p>
<p>
You can share <a href={{ gameurl }}>this</a> link
</p>
{% endblock %}