Abwesenheit usw.
This commit is contained in:
parent
3f691cb919
commit
5b0e5f0214
|
|
@ -11,12 +11,10 @@
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">Urlaub</th>
|
<th scope="row">Urlaub</th>
|
||||||
{% for ab_info in user_years.all %}
|
{% for ab_info in user_years.all %}
|
||||||
<td class="" id="holiday_{{ab_info.pk}}">
|
<td class="" id="holiday_{{ab_info.pk}}">
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<input type="text" class="form-control readytochange_holiday" id="new_holiday_nor_{{ab_info.pk}}" aria-describedby="" value="{{ab_info.days}}">
|
<input type="text" class="form-control readytochange_holiday" id="new_holiday_nor_{{ab_info.pk}}" aria-describedby="" value="{{ab_info.days}}">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
||||||
|
|
@ -315,9 +315,6 @@ function saveUpdateTableHolidays(){
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
DYNAMIC USERDATA CHANGES
|
DYNAMIC USERDATA CHANGES
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -93,7 +93,7 @@ def checkDefaultAbsenceReasons(sender, user, request, **kwargs):
|
||||||
UserYearAbsenceInfo(agency=user.profile.agency, user=u, year=today.year+1).save()
|
UserYearAbsenceInfo(agency=user.profile.agency, user=u, year=today.year+1).save()
|
||||||
UserYearAbsenceInfo(agency=user.profile.agency, user=u, year=today.year+2).save()
|
UserYearAbsenceInfo(agency=user.profile.agency, user=u, year=today.year+2).save()
|
||||||
pass
|
pass
|
||||||
# CREATE DATE FOR YEAR PLUS 3
|
# CREATE DATE FOR YEAR PLUS 2
|
||||||
elif len(UserYearAbsenceInfo.objects.filter(agency=user.profile.agency, year=today.year+2)) == 0:
|
elif len(UserYearAbsenceInfo.objects.filter(agency=user.profile.agency, year=today.year+2)) == 0:
|
||||||
uina = User.objects.filter(profile__agency=user.profile.agency)
|
uina = User.objects.filter(profile__agency=user.profile.agency)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue