yt-links aktualisiert

This commit is contained in:
holger.trampe 2020-10-25 23:03:55 +01:00
parent 827abc1e41
commit 05c064594d
2 changed files with 2 additions and 13 deletions

View File

@ -6,16 +6,7 @@
{% block content %} {% block content %}
<div class="card mx-auto" id="logincard"> <div class="card mx-auto" id="logincard">
<div class="card-body"> <div class="card-body">
{% if messages %}
{% for message in messages %}
<div class="alert alert-{{ message.tags }} alert-dismissible fade show " role="alert" id="message_{{forloop.counter}}">
{{ message }}
<button type="button" class="close" data-dismiss="alert" aria-label="Close" onclick='javascript:$("#message_{{forloop.counter}}").fadeOut()'>
<span aria-hidden="true">&times;</span>
</button>
</div>
{% endfor %}
{% endif %}
<form method="POST"> <form method="POST">
{% csrf_token %} {% csrf_token %}
<fieldset class="form-group" > <fieldset class="form-group" >

View File

@ -1056,8 +1056,7 @@ def handler500(request):
response = render(request, "users/errors/500.html", context=context) response = render(request, "users/errors/500.html", context=context)
response.status_code = 500 response.status_code = 500
return response return response
''' '''
CRONJOB FUNCTION CRONJOB FUNCTION
@ -1174,7 +1173,6 @@ class landingPage(TemplateView):
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs) context = super().get_context_data(**kwargs)
self.request.session.flush()
''' '''
Gibt False zurück, wenn der User an diesem Tag KEINE Abwesenheiten hat, ansonsten True! Gibt False zurück, wenn der User an diesem Tag KEINE Abwesenheiten hat, ansonsten True!