~muirrum/comortas

56483e21f317ecb4b4c1a63b6fa6a37dc6eaf772 — Cara Salter 3 years ago 611d9a3
Add templates
A fllscoring/templates/setup/create_tournament.html => fllscoring/templates/setup/create_tournament.html +10 -0
@@ 0,0 1,10 @@
{% extends 'base.html' %}

{% block content %}
<form method="POST">
    {{ form.csrf_token }}
    {{ form.tournament_name.label}}<br>{{ form.tournament_name(class_="paper")}}

    <input type="submit" class="paper accent movable" value="Submit">
</form>
{% endblock %}
\ No newline at end of file

A fllscoring/templates/setup/home.html => fllscoring/templates/setup/home.html +15 -0
@@ 0,0 1,15 @@
{% extends 'base.html' %}

{% block content %}
<span class="hbar">
    <h1>Tournaments</h1>
    <a class="paper movable accent" href="{{ url_for('setup.new_tournament') }}">New</a>
</span>
{% for t in tournaments %}
    <a href="{{ url_for('setup.manage_tournament', id=t.id) }}">
    <div class="paper" style="margin-bottom: 5px;">
        {{ t.id }} - {{ t.tournament_name}}
    </div>
    </a>
{% endfor %}
{% endblock %}
\ No newline at end of file

A fllscoring/templates/setup/new_team.html => fllscoring/templates/setup/new_team.html +11 -0
@@ 0,0 1,11 @@
{% extends 'base.html' %}

{% block content %}
<form method="POST">
    {{ form.csrf_token }}
    {{ form.team_number.label }}<br>{{ form.team_number(class_="paper") }}
    {{ form.team_name.label }}<br>{{ form.team_name(class_="paper") }}
    {{ form.team_town.label }}<br>{{ form.team_town(class_="paper") }}
    <input type="submit" class="paper accent movable" value="Submit">
</form>
{% endblock %}
\ No newline at end of file

A fllscoring/templates/setup/tournament_mgmt.html => fllscoring/templates/setup/tournament_mgmt.html +16 -0
@@ 0,0 1,16 @@
{% extends 'base.html' %}

{% block content %}
<h1>{{ tournament.tournament_name.capitalize() }} Overview</h1>
    <p>Not much here...</p>
<hr>
<span class="hbar">
    <h1>Teams</h1>
    <a class="paper movable accent" href="{{url_for('setup.new_team', tournament_id=tournament.id) }}">New</a>
</span>
{% for t in teams %}
<div class="paper">
    {{ t }}
</div>
{% endfor %}
{% endblock %}
\ No newline at end of file