added new page for admistrative purpose
This commit is contained in:
62
templates/adminpage.html
Normal file
62
templates/adminpage.html
Normal 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 %}
|
||||
@@ -16,6 +16,9 @@
|
||||
<li><a href="/">Tipps</a></li>
|
||||
<li><a href="/charts/{{ ls }}/{{ season }}{% if pos %}/{{ pos }}{% endif %}">Bestenliste</a></li>
|
||||
<li><a href="/blog/1">Blog</a></li>
|
||||
{% if user.is_superuser %}
|
||||
<li><a href="/adminpage">Admin</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
{% if has_refresh %}
|
||||
|
||||
Reference in New Issue
Block a user