{% extends 'pageWrapper.html' %}

{% block head %}
    <title>Upload Multidata</title>
    <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename="styles/hostGame.css") }}" />
    <script type="application/ecmascript" src="{{ url_for('static', filename="assets/hostGame.js") }}"></script>
{% endblock %}

{% block body %}
    {% include 'header/oceanIslandHeader.html' %}

    <div id="host-game-wrapper">
        <div id="host-game" class="grass-island {% if rooms %}wider{% endif %}">
            <h1>Host Game</h1>
            <p>
                This page allows you to host a game which was not generated by the website. For example, if you have
                generated a game on your own computer, you may upload the zip file created by the generator to
                host the game here. This will also provide a tracker, and the ability for your players to download
                their patch files.
            </p>
            <p>In addition to the zip file created by the generator, you may upload a multidata file here as well.</p>
            <div id="host-game-form-wrapper">
                <form id="host-game-form" method="post" enctype="multipart/form-data">
                    <input id="file-input" type="file" name="file">
                </form>
                <button id="host-game-button">Upload File</button>
            </div>
        </div>
    </div>

    {% include 'islandFooter.html' %}
{% endblock %}