{#
 Copyright (c) 2015 The Pycroft Authors. See the AUTHORS file.
 This file is part of the Pycroft project and licensed under the terms of
 the Apache License, Version 2.0. See the LICENSE file for details.
#}
{% extends "layout.html" %}

{% set page_title = "Neuer Nutzer" %}

{% import "macros/forms.html" as forms %}
{% import "macros/resources.html" as resources %}

{% block single_row_content %}
    {{ forms.simple_form(form, '', url_for('facilities.overview')  ) }}
{% endblock %}

{% block page_script %}
    {{ resources.link_script_file('js/lazy-load-select.js') }}
    <script type="text/javascript">
        var form_group_mac = $('#form-group-mac');
        var mac = $('#mac');

        var form_group_annex = $('#form-group-annex');
        var annex = $('#annex');

        var form_group_force = $('#form-group-force');
        var force = $('#force');

        inputMacMask(mac);

        if(!form_group_mac.hasClass('has-error') || mac.val().length !== 17 && !annex.prop('checked')){
            form_group_annex.hide();
            annex.prop('checked', false);
        }

        if(!$('.help-block').find('.optional-error').length && !force.prop('checked')){
            form_group_force.hide();
            force.prop('checked', false);
        }
    </script>
{% endblock %}

{#
 Copyright (c) 2015 The Pycroft Authors. See the AUTHORS file.
 This file is part of the Pycroft project and licensed under the terms of
 the Apache License, Version 2.0. See the LICENSE file for details.
#}
{% extends "layout.html" %}

{% set page_title = "Neuer Nutzer" %}

{% import "macros/forms.html" as forms %}
{% import "macros/resources.html" as resources %}

{% block single_row_content %}
    {{ forms.simple_form(form, '', url_for('facilities.overview')  ) }}
{% endblock %}

{% block page_script %}
    {{ resources.link_script_file('js/lazy-load-select.js') }}
    <script type="text/javascript">
        var form_group_mac = $('#form-group-mac');
        var mac = $('#mac');

        var form_group_annex = $('#form-group-annex');
        var annex = $('#annex');

        var form_group_force = $('#form-group-force');
        var force = $('#force');

        inputMacMask(mac);

        if (!form_group_mac.hasClass('has-error') || mac.val().length !== 17 && !annex.prop('checked')) {
            form_group_annex.hide();
            annex.prop('checked', false);
        }

        if (!$('.help-block').find('.optional-error').length && !force.prop('checked')) {
            form_group_force.hide();
            force.prop('checked', false);
        }
    </script>
{% endblock %}

Add spaces around if and braces
Add spaces around if and braces
