added new page for admistrative purpose

This commit is contained in:
2017-10-02 18:59:30 +02:00
parent 565bb3963e
commit c21e0d3292
7 changed files with 96 additions and 2 deletions

62
templates/adminpage.html Normal file
View File

@@ -0,0 +1,62 @@
{% extends "base.html" %}
{% load i18n static %}
{% load humanize %}
{% block head %}
<script type="text/javascript" src="{{ STATIC_URL }}javascript/tippy.js"></script>
{% endblock %}
{% block nav %}
{% include "nav.html" with ls=ls season=season %}
{% endblock %}
{% block body %}
<div id="content-main">
<div class="row">
<div class="col-md-7">
<h2>Aktivierte Ligen</h2>
<table class="table table-striped">
<tr>
<th>Liga</th>
<th>Abkürzung</th>
</tr>
{% for i in leagues %}
<tr>
<td>{{ i.leagueName }}</td>
<td>{{ i.leagueShortcut }}</td>
</tr>
{% endfor %}
</table>
</div>
</div>
<div class="row">
<div class="col-md-7">
<h2>Verfügbare Ligen</h2>
<table class="table table-striped">
<tr>
<th>Liga</th>
<th>Abkürzung</th>
<th>Saison</th>
<th>ID</th>
</tr>
{% for i in avail_leagues %}
<tr>
<td>{{ i.leagueName }}</td>
<td>{{ i.leagueShortcut }}</td>
<td>{{ i.leagueSaison }}</td>
<td>{{ i.leagueID }}</td>
</tr>
{% endfor %}
</table>
</div>
</div>
{% if debug %}
<div class="row">
<div class="col-md-7">
{% for line in debug %}
<p>{{ line }}</p>
{% endfor %}
</div>
</div>
{% endif %}
</div>
{% endblock %}