Skip to content
Snippets Groups Projects
Verified Commit a58c8662 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Refactor index.html

parent 33902cb8
No related branches found
No related tags found
No related merge requests found
{% extends "core/base.html" %}
{% load msg_box %}
{% load msg_box static %}
{% block content %}
<script type="text/javascript">
$('#alert_close').click(function () {
$("#alert_box").fadeOut("slow", function () {
});
});
</script>
<a class="waves-effect waves-light btn green" href="{% url "menu_upload" %}"><i class="material-icons left">add</i>
Neuen Speiseplan hochladen
</a>
<a class="waves-effect waves-light btn orange" href="{% url "menu_show_current" %}"><i class="material-icons left">picture_as_pdf</i>
Aktuellen Speiseplan anzeigen
</a>
<h5>Übersicht der hochgeladenen Speisepläne</h5>
<ul class="collection">
{% for menu in menus %}
<li class="collection-item ">
<span class="title">{{ menu }}</span>
<p>
<a class="btn-flat waves-effect waves-green" href="/media/{{ menu.pdf }}" target="_blank">
<a class="btn-flat waves-effect waves-green" href="{% get_media_prefix %}{{ menu.pdf }}" target="_blank">
<i class="material-icons left">picture_as_pdf</i> Anzeigen
</a>
<a class="btn-flat delete-menu waves-effect waves-red" href="{% url "menu_delete" menu.id %}">
......@@ -30,6 +26,7 @@
</li>
{% endfor %}
</ul>
<script type="text/javascript">
$(".delete-menu").click(function (e) {
if (!confirm("Wirklich löschen?")) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment