Div. Dinge
This commit is contained in:
parent
f7247e14ab
commit
38d24c5612
|
|
@ -137,7 +137,8 @@
|
||||||
<i class="fas fa-ellipsis-v fa-sm fa-fw text-gray-400"></i>
|
<i class="fas fa-ellipsis-v fa-sm fa-fw text-gray-400"></i>
|
||||||
</a>
|
</a>
|
||||||
<div class="dropdown-menu dropdown-menu-right shadow animated--fade-in" aria-labelledby="dropdownMenuLink">
|
<div class="dropdown-menu dropdown-menu-right shadow animated--fade-in" aria-labelledby="dropdownMenuLink">
|
||||||
{% if perms.users.standardgopublic %}
|
{% getUnpubStandards request.user as standardUnPubCount %}
|
||||||
|
{% if standardUnPubCount > 0 %}
|
||||||
{% if standard.public %}
|
{% if standard.public %}
|
||||||
<a class="dropdown-item" href="{% url 'standard-status' standard.pk %}">Veröffentlichung aufheben</a>
|
<a class="dropdown-item" href="{% url 'standard-status' standard.pk %}">Veröffentlichung aufheben</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -84,7 +84,6 @@ def getAbsenceAsks(user):
|
||||||
return unconfirmedab
|
return unconfirmedab
|
||||||
|
|
||||||
# WORKDAY HISTORY
|
# WORKDAY HISTORY
|
||||||
# TASK: Hier flag prüfen, ob der User selbst den Tag bearbeitet hat - aktuell werden nur fremde Änderugnen angezeigt
|
|
||||||
@register.simple_tag
|
@register.simple_tag
|
||||||
def getWorkDayHistory(workday):
|
def getWorkDayHistory(workday):
|
||||||
workday = Workday.objects.get(pk=workday.pk)
|
workday = Workday.objects.get(pk=workday.pk)
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,11 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
|
<div class="row" >
|
||||||
|
<div class="col-12">
|
||||||
|
{{form.confirm_info|as_crispy_field}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<!--
|
<!--
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
|
|
@ -64,12 +69,31 @@
|
||||||
-->
|
-->
|
||||||
<!-- TODO: Hier das Design so machen, dass es wie bei Basti aussieht mit Profilbild und den Infos, was verändert wurde-->
|
<!-- TODO: Hier das Design so machen, dass es wie bei Basti aussieht mit Profilbild und den Infos, was verändert wurde-->
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
|
<style type="text/css">
|
||||||
|
.roundimg_ab {
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
<h5>Bearbeitungsverlauf</h5>
|
<h5>Bearbeitungsverlauf</h5>
|
||||||
{% for historyele in absence.history.all %}
|
{% for historyele in absence.history.all %}
|
||||||
<p><small>Von {{historyele.history_user.get_full_name}} am {{historyele.history_date|date:"d.m.Y H:i"}}</small>
|
<hr>
|
||||||
{{historyele.confirm_info}}
|
<div class="row">
|
||||||
{{historyele.confirm_status}}
|
<div class="col-2">
|
||||||
</p>
|
<img style="width:100%" class="img-profile roundimg_ab ml-2" src="{{ request.user.profile.get_photo_url }}">
|
||||||
|
</div>
|
||||||
|
<div class="col">
|
||||||
|
<small>{{historyele.history_user.get_full_name}} am {{historyele.history_date|date:"d.m.Y, H:i"}}
|
||||||
|
<br />
|
||||||
|
{% if historyele.confirm_status == 0 %}
|
||||||
|
Angenommen {% if historyele.confirm_info|length > 0 %}| Begründung: {{historyele.confirm_info}} {% endif %}
|
||||||
|
{% elif historyele.confirm_status == 1 %}
|
||||||
|
in Bearbeitung {% if historyele.confirm_info|length > 0 %}| Begründung: {{historyele.confirm_info}} {% endif %}
|
||||||
|
{% else %}
|
||||||
|
Abgelehnt
|
||||||
|
{% endif %}
|
||||||
|
</small>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -152,7 +176,7 @@
|
||||||
$("#id_info").val("{{absence.info}}");
|
$("#id_info").val("{{absence.info}}");
|
||||||
$("#id_info").prop("disabled", true);
|
$("#id_info").prop("disabled", true);
|
||||||
$("#id_confirm_info").val("{{absence.confirm_info}}");
|
$("#id_confirm_info").val("{{absence.confirm_info}}");
|
||||||
$("#id_confirm_info").prop("disabled", true);
|
//$("#id_confirm_info").prop("disabled", true);
|
||||||
|
|
||||||
date_start = "{{start}}";
|
date_start = "{{start}}";
|
||||||
date_end = "{{end}}";
|
date_end = "{{end}}";
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,7 @@ def AbsenceUpdate(request, pk):
|
||||||
absence.endday_info = str(formtocheck.cleaned_data["endday_info"])
|
absence.endday_info = str(formtocheck.cleaned_data["endday_info"])
|
||||||
absence.reason = formtocheck.cleaned_data["reason"]
|
absence.reason = formtocheck.cleaned_data["reason"]
|
||||||
#absence.info = formtocheck.cleaned_data["info"]
|
#absence.info = formtocheck.cleaned_data["info"]
|
||||||
#absence.confirm_info = formtocheck.cleaned_data["confirm_info"]
|
absence.confirm_info = formtocheck.cleaned_data["confirm_info"]
|
||||||
|
|
||||||
rep = None
|
rep = None
|
||||||
if(formtocheck.cleaned_data["representator"] != None):
|
if(formtocheck.cleaned_data["representator"] != None):
|
||||||
|
|
|
||||||
|
|
@ -163,7 +163,6 @@
|
||||||
Agentur
|
Agentur
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{% getUnpubStandards request.user as standardUnPubCount %}
|
{% getUnpubStandards request.user as standardUnPubCount %}
|
||||||
{% if active_link == 'standards' %}
|
{% if active_link == 'standards' %}
|
||||||
<li class="nav-item active">
|
<li class="nav-item active">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue