<commit_before>{% extends '::base.html.twig' %}
{% import '::html.macro.twig' as html %}

{% block title %}
    OEK | Klanten |
{% endblock %}

{% block subnavigation %}
    {% include '@Oek/oek_subnavigation.html.twig' %}
{% endblock %}

{% block content %}
    <h1>Deelnemer {{ oekKlant.klant.naam }}</h1>

    <p>
        {% set view_link = path('app_klanten_view', {id: oekKlant.klant.id}) %}
        {{ html.viewLink(view_link)|raw }}
        {{ html.link('Basisdossier bekijken', view_link)|raw }}

        {% set edit_link = path('oek_klanten_edit', {id: oekKlant.id}) %}
        {{ html.editLink(edit_link)|raw }}
        {{ html.link('Deelnemer wijzigen', edit_link)|raw }}

        {% if oekKlant.deletable %}
            {% set delete_link = path('oek_klanten_delete', {id: oekKlant.id}) %}
            {{ html.deleteLink(delete_link)|raw }}
        {% endif %}

        {% if oekKlant.oekAfsluiting %}
            {% set open_link = path('oek_klanten_open', {id: oekKlant.id}) %}
            {{ html.addLink(open_link)|raw }}
            {{ html.link('Dossier heropenen', open_link)|raw }}
        {% else %}
            {% set close_link = path('oek_klanten_close', {id: oekKlant.id}) %}
            {{ html.deleteLink(close_link)|raw }}
            {{ html.link('Dossier afsluiten', close_link)|raw }}
        {% endif %}
    </p>

    <dl class="dl-horizontal">
        <dt>#</dt>
        <dd>{{ oekKlant.klant.id }}</dd>
        <dt>Naam</dt>
        <dd>{{ oekKlant.klant.naam }}</dd>
        <dt>Historie</dt>
        <dd>
            <ul>
                {% for oekDossierStatus in oekKlant.oekDossierStatussen %}
                    <li>{{ oekDossierStatus }}</li>
                {% endfor %}
            </ul>&nbsp;
        </dd>
        <dt>Opmerking</dt>
        <dd>{{ oekKlant.opmerking|nl2br }}&nbsp;</dd>
        <dt>
            Groepen
            {{ html.addLink(path('oek_lidmaatschappen_add', {oekKlant: oekKlant.id})) }}
        </dt>
        <dd>
            <ul>
                {% for oekLidmaatschap in oekKlant.oekLidmaatschappen %}
                    <li>
                        {{ html.link(oekLidmaatschap.oekGroep, path('oek_groepen_view', {id: oekLidmaatschap.oekgroep.id})) }}
                        {% set delete_link = path('oek_lidmaatschappen_delete', {oekKlant: oekLidmaatschap.oekKlant.id, oekGroep: oekLidmaatschap.oekgroep.id}) %}
                        {{ html.deleteLink(delete_link)|raw }}
                    </li>
                {% endfor %}
            </ul>
        </dd>
        <dt>
            Trainingen
            {{ html.addLink(path('oek_deelnames_add', {oekKlant: oekKlant.id})) }}
        </dt>
        <dd>
            <ul>
                {% for oekTraining in oekKlant.oekTrainingen %}
                    <li>
                        {{ html.link(oekTraining, path('oek_trainingen_view', {id: oekTraining.id})) }} | {{ oekTraining.oekDeelname(oekKlant).status }}
                    </li>
                {% endfor %}
            </ul>
        </dd>
    </dl>
{% endblock %}
<commit_msg>basisdossier aan view toevoegen<commit_after>{% extends '::base.html.twig' %}
{% import '::html.macro.twig' as html %}

{% block title %}
    OEK | Klanten |
{% endblock %}

{% block subnavigation %}
    {% include '@Oek/oek_subnavigation.html.twig' %}
{% endblock %}

{% block content %}
    <h1>Deelnemer {{ oekKlant.klant.naam }}</h1>

    <p>
        {% set edit_link = path('oek_klanten_edit', {id: oekKlant.id}) %}
        {{ html.editLink(edit_link)|raw }}
        {{ html.link('Deelnemer wijzigen', edit_link)|raw }}

        {% if oekKlant.deletable %}
            {% set delete_link = path('oek_klanten_delete', {id: oekKlant.id}) %}
            {{ html.deleteLink(delete_link)|raw }}
        {% endif %}

        {% if oekKlant.oekAfsluiting %}
            {% set open_link = path('oek_klanten_open', {id: oekKlant.id}) %}
            {{ html.addLink(open_link)|raw }}
            {{ html.link('Dossier heropenen', open_link)|raw }}
        {% else %}
            {% set close_link = path('oek_klanten_close', {id: oekKlant.id}) %}
            {{ html.deleteLink(close_link)|raw }}
            {{ html.link('Dossier afsluiten', close_link)|raw }}
        {% endif %}
    </p>

    <dl class="dl-horizontal">
        <dt>#</dt>
        <dd>{{ oekKlant.klant.id }}</dd>
        <dt>Naam</dt>
        <dd>{{ oekKlant.klant.naam }}</dd>
        <dt>Historie</dt>
        <dd>
            <ul>
                {% for oekDossierStatus in oekKlant.oekDossierStatussen %}
                    <li>{{ oekDossierStatus }}</li>
                {% endfor %}
            </ul>&nbsp;
        </dd>
        <dt>Opmerking</dt>
        <dd><pre>{{ oekKlant.opmerking }}</pre></dd>
        <dt>
            Groepen
            {{ html.addLink(path('oek_lidmaatschappen_add', {oekKlant: oekKlant.id})) }}
        </dt>
        <dd>
            <ul>
                {% for oekLidmaatschap in oekKlant.oekLidmaatschappen %}
                    <li>
                        {{ html.link(oekLidmaatschap.oekGroep, path('oek_groepen_view', {id: oekLidmaatschap.oekgroep.id})) }}
                        {% set delete_link = path('oek_lidmaatschappen_delete', {oekKlant: oekLidmaatschap.oekKlant.id, oekGroep: oekLidmaatschap.oekgroep.id}) %}
                        {{ html.deleteLink(delete_link)|raw }}
                    </li>
                {% endfor %}
            </ul>
        </dd>
        <dt>
            Trainingen
            {{ html.addLink(path('oek_deelnames_add', {oekKlant: oekKlant.id})) }}
        </dt>
        <dd>
            <ul>
                {% for oekTraining in oekKlant.oekTrainingen %}
                    <li>
                        {{ html.link(oekTraining, path('oek_trainingen_view', {id: oekTraining.id})) }} | {{ oekTraining.oekDeelname(oekKlant).status }}
                    </li>
                {% endfor %}
            </ul>
        </dd>
    </dl>
    {% include '::klant_basis.html.twig' with {klant: oekKlant.klant} %}
{% endblock %}

{'fraction_non_alphanumeric': 0.16572754391779915, 'fraction_numerical': 0.0008286377195889957, 'mean_word_length': 1.8148320895522387, 'pattern_counts': {'":': 0, '<': 89, '<?xml version=': 0, '>': 89, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4664834', 'n_tokens_mistral': 2294, 'n_tokens_neox': 2080, 'n_words': 305}