templates/game/selectName.html.twig
{% extends 'noBarBase.html.twig' %}
{% block title %}Ultimate Warfare - Pick your name{% endblock title %}
{% block content %}
<form action="{{ path('Game/StartWorld', {'worldId': world.id}) }}" method="POST">
<table class="table text-center">
<tr class="tabletop">
<td><b>Select your Name</b></td>
</tr>
<tr>
<td>
<div>
<label for="name">Name:</label>
<input type="text" id="name" name="name" size="12"/>
</div>
<input class="btn btn-primary" type="submit" name="submit" value="Play">
</td>
</tr>
</table>
<br />
<br />
<table class="table">
<tr>
<td width="400">
<b>{{ world.name }}</b><br />
<img src="{{ asset('images/world/' ~ world.image) }}" alt="{{ world.name }}">
</td>
<td width="300">
<b>Max players:</b> {{ world.maxplayers }}<br /><br />
<b>Info:</b><br />
{{ world.description }}<br /><br />
<b>At start:</b><br />
Cash: {{ world.resources.cash }}<br />
Wood: {{ world.resources.wood }}<br />
Steel: {{ world.resources.steel }}<br />
Food: {{ world.resources.food }}<br /><br />
</td>
</tr>
</table>
</form>
{% endblock %}