<commit_before>{% extends 'base.html.twig' %}
{% block header %}
Ansprechpartner eintragen
{% endblock %}
{% block body %}
    <h2>Ansprechpartner eintragen</h2> 
    {{ form_start(form) }}
    <fieldset>
        <legend>Bitte Daten vom Ansprechpartner eingeben</legend>
        <table>
            <tr>
                <td>{{ form_label(form.prename, 'Vorname') }}</td>
                <td>{{ form_widget(form.prename) }}</td>
                <td>{{ form_errors(form.prename) }}</td>
            </tr>
            <tr>
                <td>{{ form_label(form.surname, 'Nachname') }}</td>
                <td>{{ form_widget(form.surname) }}</td>
                <td>{{ form_errors(form.surname) }}</td>
            </tr>
            <tr>
                <td>{{ form_label(form.position, 'Position') }}</td>
                <td>{{ form_widget(form.position) }}</td>
                <td>{{ form_errors(form.position) }}</td>
            </tr>
            <tr>
                <td>{{ form_label(form.phone, 'Telefon') }}</td>
                <td>{{ form_widget(form.phone) }}</td>
                <td>{{ form_errors(form.phone) }}</td>
            </tr>
            <tr>
                <td>{{ form_label(form.email, 'E-Mail') }}</td>
                <td>{{ form_widget(form.email) }}</td>
                <td>{{ form_errors(form.email) }}</td>
            </tr>
        </table>
    <input type="submit" value="speichern">
    </fieldset>
    {%if ansprechpartner is defined%}
<div class="row">
    <div class="col-md-4">
        <div class="panel panel-danger">
            <div class="panel-heading">
                <h3 class="panel-title">Achtung</h3>
            </div>
            <div class="panel-body">
                <input type="submit" name="delete" id="delete" value="löschen" class="btn btn-warning">
            </div>
        </div>
    </div>
</div>
    {%endif%}
    {{ form_errors(form) }}
    {{ form_end(form) }}
    
    <br>Zurück zur <a href="{{ path('homepage') }}">Hauptseite</a>
{% endblock %}<commit_msg>only admin can delete ontactpersons<commit_after>{% extends 'base.html.twig' %}
{% block header %}
Ansprechpartner eintragen
{% endblock %}
{% block body %}
    <h2>Ansprechpartner eintragen</h2> 
    {{ form_start(form) }}
    <fieldset>
        <legend>Bitte Daten vom Ansprechpartner eingeben</legend>
        <table>
            <tr>
                <td>{{ form_label(form.prename, 'Vorname') }}</td>
                <td>{{ form_widget(form.prename) }}</td>
                <td>{{ form_errors(form.prename) }}</td>
            </tr>
            <tr>
                <td>{{ form_label(form.surname, 'Nachname') }}</td>
                <td>{{ form_widget(form.surname) }}</td>
                <td>{{ form_errors(form.surname) }}</td>
            </tr>
            <tr>
                <td>{{ form_label(form.position, 'Position') }}</td>
                <td>{{ form_widget(form.position) }}</td>
                <td>{{ form_errors(form.position) }}</td>
            </tr>
            <tr>
                <td>{{ form_label(form.phone, 'Telefon') }}</td>
                <td>{{ form_widget(form.phone) }}</td>
                <td>{{ form_errors(form.phone) }}</td>
            </tr>
            <tr>
                <td>{{ form_label(form.email, 'E-Mail') }}</td>
                <td>{{ form_widget(form.email) }}</td>
                <td>{{ form_errors(form.email) }}</td>
            </tr>
        </table>
    <input type="submit" value="speichern">
    </fieldset>
    {%if ansprechpartner is defined and is_granted('ROLE_ADMIN')%}
<div class="row">
    <div class="col-md-4">
        <div class="panel panel-danger">
            <div class="panel-heading">
                <h3 class="panel-title">Achtung</h3>
            </div>
            <div class="panel-body">
                <input type="submit" name="delete" id="delete" value="löschen" class="btn btn-warning">
            </div>
        </div>
    </div>
</div>
    {%endif%}
    {{ form_errors(form) }}
    {{ form_end(form) }}
    
    <br>Zurück zur <a href="{{ path('homepage') }}">Hauptseite</a>
{% endblock %}
{'fraction_non_alphanumeric': 0.18659720577788302, 'fraction_numerical': 0.0023679848448969927, 'mean_word_length': 1.681904761904762, 'pattern_counts': {'":': 0, '<': 133, '<?xml version=': 0, '>': 133, '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': '7243186', 'n_tokens_mistral': 1446, 'n_tokens_neox': 1361, 'n_words': 254}