{% extends 'trosnoth/base.html' %}
{% load static %}
{% block head %}
  <title>{{ settings.serverName }} :: {{ heading }}</title>
{% endblock %}

{% block main %}
  <div id="container">
    <h1><a href="/">{{ settings.serverName }}</a></h1>
    <h2>{{ heading }}</h2>

    {% if message %}
      <ul class="messagelist">
        <li class="warning">{{ message }}</li>
      </ul>
    {% endif %}
    <form>
      <label for="selectuser">Select a player:</label>
      <input list="availableusers" id="selectuser" name="user" autocomplete="off">

      <datalist id="availableusers">
        {% for user in users %}
          <option value="{{ user.user.username }}">{{ user }}</option>
        {% endfor %}
      </datalist>
      <input type="submit" value="Edit user">
    </form>
  </div>
{% endblock %}