Abwesenheit usw.

This commit is contained in:
Holger Trampe 2020-05-23 03:06:47 +02:00
parent 3f691cb919
commit 5b0e5f0214
3 changed files with 2 additions and 7 deletions

View File

@ -11,12 +11,10 @@
<tr>
<th scope="row">Urlaub</th>
{% 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">
<input type="text" class="form-control readytochange_holiday" id="new_holiday_nor_{{ab_info.pk}}" aria-describedby="" value="{{ab_info.days}}">
</div>
</td>
{% endfor %}
</tr>

View File

@ -315,9 +315,6 @@ function saveUpdateTableHolidays(){
}
});
}
/*
DYNAMIC USERDATA CHANGES

View File

@ -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+2).save()
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:
uina = User.objects.filter(profile__agency=user.profile.agency)