Files
Pivot/templates/_personeel.html
2026-10-14 13:34:37 +02:00

33 lines
1.6 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{# Gedeelde stukjes voor de personeelsmodule #}
{% macro status_badge(status) -%}
{%- set s = STATUS.get(status, (status, '')) -%}
<span class="badge {{ 'badge-' ~ s[1] if s[1] else '' }}">{{ s[0] }}</span>
{%- endmacro %}
{% macro soort_label(soort) -%}
{%- set s = SOORTEN.get(soort) -%}{{ s.icoon }} {{ s.label }}
{%- endmacro %}
{% macro periode(i) -%}
{%- if i.Van_datum == i.Tot_datum -%}
{{ ['ma','di','wo','do','vr','za','zo'][i.Van_datum.weekday()] }} {{ i.Van_datum.strftime('%d/%m/%Y') }}
{%- else -%}
{{ i.Van_datum.strftime('%d/%m') }} – {{ i.Tot_datum.strftime('%d/%m/%Y') }}
{%- endif -%}
<span class="muted"> · {{ DAGDELEN.get(i.Dagdeel, '') }}{% if i.Dagdeel == 'uren' and i.Lesuren %} ({{ i.Lesuren }}){% endif %}</span>
{%- endmacro %}
{% macro subnav(actief) %}
<div class="tabs" style="margin-bottom: 18px;">
<a class="tab-link {{ 'active' if actief == 'mijn' }}" href="{{ url_for('personeel.mijn') }}" style="text-decoration:none">📋 Mijn aanvragen</a>
{% if 'directie' in p_rollen %}
<a class="tab-link {{ 'active' if actief == 'beoordelen' }}" href="{{ url_for('personeel.beoordelen') }}" style="text-decoration:none">
✅ Te beoordelen{% if p_te_beoordelen %} <span class="badge badge-warning">{{ p_te_beoordelen }}</span>{% endif %}</a>
{% endif %}
{% if 'secretariaat' in p_rollen %}
<a class="tab-link {{ 'active' if actief == 'dagoverzicht' }}" href="{{ url_for('personeel.dagoverzicht') }}" style="text-decoration:none">🗓️ Dagoverzicht</a>
{% endif %}
</div>
{% endmacro %}