<commit_before>{% extends 'page/view_super.htm' %}

{% block page_title %}{{ revision.title }}{% endblock %}

{% block page_content %}
    <p>{{ revision.content | markdown(revision.filter_html) }}</p>

	{% if revision.custom_form %}
        <hr />
        <div>
            {% if current_user and current_user.id %}
                <script>
                    var msg_success = '{{ revision.custom_form.msg_success }}';
                </script>

                <form id="custom" action="/forms/submit/{{ revision.custom_form.id }}" enctype="multipart/form-data">
                    <h3>Vul a.u.b in :D</h3>
                    <p>Sommige velden (zoals shirt-maat of dieet) proberen we op te slaan, zodat je het de volgende keer niet nog eens moet invullen.</p>
                    {{ revision.custom_form.html | safe }}

                    <button id="custom_form" class="btn btn-success">Verzend formulier</button>
                </form>
            {% else %}
                <p>Je moet ingelogd zijn om je voor een activiteit in te schrijven.</p>
                <p><a href="{{ url_for('user.sign_in') }}" class="btn btn-huge btn-success">Inloggen</a></p>
            {% endif %}
        </div>
    {% endif %}
{% endblock %}
<commit_msg>Fixed the form submission<commit_after>{% extends 'page/view_super.htm' %}

{% block page_title %}{{ revision.title }}{% endblock %}

{% block page_content %}
    <p>{{ revision.content | markdown(revision.filter_html) }}</p>

	{% if revision.custom_form %}
        <hr />
        <div>
            {% if current_user and current_user.id %}
                <script>
                    var msg_success = '{{ revision.custom_form.msg_success }}';
                </script>

                <form id="custom" action="/forms/submit/{{ revision.custom_form.id }}" enctype="multipart/form-data">
                    <h3>Vul a.u.b in :D</h3>
                    <p>Sommige velden (zoals shirt-maat of dieet) proberen we op te slaan, zodat je het de volgende keer niet nog eens moet invullen.</p>
                    {{ revision.custom_form.html | safe }}

                    <button id="custom_form" class="btn btn-success">Verzend formulier</button>
                </form>
            {% else %}
                <p>Je moet ingelogd zijn om je voor een activiteit in te schrijven.</p>
                <p><a href="{{ url_for('user.sign_in') }}" class="btn btn-huge btn-success">Inloggen</a></p>
            {% endif %}
        </div>
    {% endif %}

    <script src='/static/js/custom_form_submission.js'></script>
{% endblock %}

{'fraction_non_alphanumeric': 0.14918414918414918, 'fraction_numerical': 0.001554001554001554, 'mean_word_length': 1.9734411085450347, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, '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': '4317979', 'n_tokens_mistral': 856, 'n_tokens_neox': 774, 'n_words': 181}