Iconänderung Manuelle Zeiterfassungsänderung

This commit is contained in:
holger.trampe 2021-01-28 09:03:41 +01:00
parent 9c854fa021
commit 97f29df5e8
5 changed files with 9 additions and 7 deletions

BIN
dump.rdb

Binary file not shown.

View File

@ -90,8 +90,7 @@ def NewsUpdate(request, id):
news = News.objects.get(pk=id, agency=request.user.profile.agency)
if request.method == 'POST':
normalForm = NewsAddNews(request.POST, instance=news)
#editorForm = NewsAddNewsEditor(request.POST, instance=news)
if normalForm.is_valid():
news = News.objects.get(pk=id, agency=request.user.profile.agency)
news.last_modified_by = request.user
@ -106,12 +105,9 @@ def NewsUpdate(request, id):
else:
normalForm = NewsAddNews(instance=news)
#editorForm = NewsAddNewsEditor(instance=news)
context = {
'normalForm' : normalForm,
#'editorForm' : editorForm,
'active_link' : 'dashboard',
'news_id' : news.pk,
}
@ -137,3 +133,9 @@ def NewsSingle(request, pk):
}
return render(request, 'news/news_single.html', context)

View File

@ -343,7 +343,7 @@
{% if wd_history.history_user != None %}
<a href="#/" onclick="javascript:$('#wd_history_{{workday.pk}}').modal('toggle');"><i class="fas fa-cog"></i></a>
<a href="#/" onclick="javascript:$('#wd_history_{{workday.pk}}').modal('toggle');"><i class="fas fa-user-edit"></i></a>
<div class="modal fade" id="wd_history_{{workday.pk}}" tabindex="-1" role="dialog" data-backdrop="static">
<div class="modal-dialog" role="document">
<div class="modal-content">

View File

@ -335,7 +335,7 @@
{% if wd_history.history_user != None %}
<a href="#/" onclick="javascript:$('#wd_history_{{workday.pk}}').modal('toggle');"><i class="fas fa-cog"></i></a>
<a href="#/" onclick="javascript:$('#wd_history_{{workday.pk}}').modal('toggle');"><i class="fas fa-user-edit"></i></a>
<div class="modal fade" id="wd_history_{{workday.pk}}" tabindex="-1" role="dialog" data-backdrop="static">
<div class="modal-dialog" role="document">
<div class="modal-content">