59 lines
2.4 KiB
HTML
59 lines
2.4 KiB
HTML
{% load crispy_forms_tags %}
|
|
{% load counter_tag %}
|
|
<h4 >Abwesenheitskategorien{% if request.user.profile.showtooltips %} <small><i data-toggle="tooltip" data-placement="top" title="Bearbeiten Sie hier Ihre Abwesenheitskategorien." class="far fa-question-circle"></i></small>{% endif %}
|
|
<a class="btn btn-primary btn-sm" href="{% url 'abcat-add' %}" style="float: right;"><i class="fas fa-plus"></i> Kategorie</a>
|
|
</h4>
|
|
<table class="table table-hover mt-1">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Bezeichnung</th>
|
|
<th scope="col">Bestätigung</th>
|
|
<th scope="col">Vertretung</th>
|
|
<th scope="col">Urlaubstag</th>
|
|
<th scope="col">Farbe</th>
|
|
<th scope="col"> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for ab in modsettings_tm_abcat %}
|
|
<tr>
|
|
<td><b>{{ab.name}}</b></td>
|
|
<td>{% if ab.need_confirm %} <i class="fas fa-check"></i> {% else %} {% endif %}</td>
|
|
<td>{% if ab.need_rep %} <i class="fas fa-check"></i> {% else %} {% endif %}</td>
|
|
<td>{% if ab.is_holiday %} <i class="fas fa-check"></i> {% endif %}</td>
|
|
<td><i style="color: {{ab.color}}" class="fas fa-square-full"></i></td>
|
|
<td>
|
|
{% if user|usergperm:"moduleorganizer" %}
|
|
<a style="float: right" class="btn btn-secondary btn-sm ml-2" href="{% url 'abcat-delete' ab.pk %}">
|
|
<small>
|
|
<i class="fas fa-trash"></i></small></a>
|
|
|
|
<a style="float: right" class="btn btn-secondary btn-sm " href="{% url 'abcat-update' ab.pk %}">
|
|
<small>
|
|
<i class="fas fa-pen"></i>
|
|
</small></a>
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
<small>Abwesenheitskategorien legen fest, wie sich eine Abwesenheit bzgl. Bestätigung durch einen Mitarbeiter mit entsprechenden Rechten und eines Vertretes verhält.</small>
|
|
<hr>
|
|
<a class="btn btn-primary mb-2" href="{% url 'tm-managemenetfreedays' %}">Feiertage bearbeiten</a>
|
|
<script type="text/javascript">
|
|
function updateTmSettings(){
|
|
$.ajax(
|
|
{
|
|
type: "GET",
|
|
url: "{% url 'modsettings-tm' %}",
|
|
data:{
|
|
//aze: $("#id_module_timemanagement_ze").prop('checked')
|
|
},
|
|
success: function( data )
|
|
{
|
|
location.href = location.href;
|
|
}
|
|
});
|
|
}
|
|
</script> |