<commit_before>{% extends "students/exam_base.html" %}{% load bootstrap3 %}
{% block title %}Klausuranmeldung{% endblock %}

{% block content_exam %}
{% if student_registration_enabled %}
<div id="mainForm">

    <form role="form" action="{{action}}" method="POST">
        {% csrf_token %}
        {% bootstrap_form form %}
    {% buttons %}
        <button type="reset" class="btn btn-danger">
            {% bootstrap_icon "remove" %} Zurücksetzen
        </button>
        <button type="submit" class="btn btn-success pull-right">
            {% bootstrap_icon "ok" %} Abschicken
        </button>
    {% endbuttons %}
    </form>
</div>
{% else %}
<p>
    Derzeit ist die Registrierung nicht freigeschaltet.
</p>
{% endif %}
{% endblock %}
{% block bottom_script %}{% load staticfiles %}
{% if student_registration_enabled %}
<script src="{% static "ophasebase/js/dependent_input_visibility.js" %}"></script>

<script type="text/javascript">
    $(function(){
        dependent_multi_checkbox_active('id_newsletters','id_email');
    });
</script>
{% endif %}
{% endblock %}<commit_msg>Disable submit on enter keydown event fixes #41<commit_after>{% extends "students/exam_base.html" %}{% load bootstrap3 %}
{% block title %}Klausuranmeldung{% endblock %}

{% block content_exam %}
{% if student_registration_enabled %}
<div id="mainForm">

    <form role="form" action="{{action}}" method="POST">
        {% csrf_token %}
        {% bootstrap_form form %}
    {% buttons %}
        <button type="reset" class="btn btn-danger">
            {% bootstrap_icon "remove" %} Zurücksetzen
        </button>
        <button type="submit" class="btn btn-success pull-right">
            {% bootstrap_icon "ok" %} Abschicken
        </button>
    {% endbuttons %}
    </form>
</div>
{% else %}
<p>
    Derzeit ist die Registrierung nicht freigeschaltet.
</p>
{% endif %}
{% endblock %}
{% block bottom_script %}{% load staticfiles %}
{% if student_registration_enabled %}
<script src="{% static "ophasebase/js/dependent_input_visibility.js" %}"></script>

<script type="text/javascript">
    $(function(){
        dependent_multi_checkbox_active('id_newsletters','id_email');
		$(window).keydown(function(event){
		  if(event.keyCode == 13) {
		    event.preventDefault();
		    return false;
		  }
		});
    });
</script>
{% endif %}
{% endblock %}
{'fraction_non_alphanumeric': 0.1722814498933902, 'fraction_numerical': 0.00255863539445629, 'mean_word_length': 3.5553398058252426, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, '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': '5316486', 'n_tokens_mistral': 823, 'n_tokens_neox': 711, 'n_words': 157}