Verified Commit a58c8662 authored by Jonathan Weth's avatar Jonathan Weth

Refactor index.html

parent 33902cb8
{% 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 () {
<a class="waves-effect waves-light btn green" href="{% url "menu_upload" %}"><i class="material-icons left">add</i>
Neuen Speiseplan hochladen
<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
<h5>Übersicht der hochgeladenen Speisepläne</h5>
<ul class="collection">
{% for menu in menus %}
<li class="collection-item ">
<span class="title">{{ menu }}</span>
<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 class="btn-flat delete-menu waves-effect waves-red" href="{% url "menu_delete" %}">
......@@ -30,6 +26,7 @@
{% endfor %}
<script type="text/javascript">
$(".delete-menu").click(function (e) {
if (!confirm("Wirklich löschen?")) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment