Iconänderung Manuelle Zeiterfassungsänderung
This commit is contained in:
parent
9c854fa021
commit
97f29df5e8
Binary file not shown.
|
|
@ -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)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Reference in New Issue