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

{% block main %}
  <div id="container">
    <h1><a href="/">{{ settings.serverName }}</a></h1>
    <h2>Configure Server</h2>
    <p class="form_note">To directly edit the database, use the <a
        href="{% url 'admin:index' %}">admin interface</a>.</p>
    {% if perms.trosnoth.shutdown_server %}
      <p class="form_note">You may also want to
        <a href="{% url 'trosnoth:restart' %}">restart</a> or
        <a href="{% url 'trosnoth:shutdown' %}">shut down</a>
        the server.
      </p>
    {% endif %}
    <form method="post">
    {% csrf_token %}
    <table>{{ form.as_table }}</table>
    <p class="form_note">Note: changes to some settings will not take effect
      until the server is restarted.</p>
    <div class="submit-row">
      <input type="submit" class="default" value="Save settings">
    </div>
    </form>
  </div>
{% endblock %}
