{% extends "samba_home/base/form.html" %} {% comment %} samba2020 - Webpage for https://samba.ccns.sbg.ac.at Copyright (C) 2019-2021 Thomas Hartmann This file is part of samba2020. samba2020 is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. samba2020 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with samba2020. If not, see . {% endcomment %} {% load crispy_forms_tags %} {% load formset_tags %} {% block form %}
{% if form_title %}

{{ form_title }}

{% endif %} {% if form_helper %} {% crispy form form_helper %} {% elif form.helper %} {% crispy form %} {% else %} {{ form|crispy }} {% endif %}
{% if inlines %}
{% if formset_title %}

{{ formset_title }}

{% endif %} {% if formset_extra_html %} {{ formset_extra_html }} {% endif %} {% for formset in inlines %}
{{ formset.management_form }}
{% for form in formset %}
{% crispy form author_form_helper %}
{% endfor %}
{% endfor %}
{% endif %}
{% endblock %} {% block css %} {{ form.media.css }} {% if inlines %} {% for formset in inlines %} {{ formset.empty_form.media.css }} {% endfor %} {% endif %} {{ block.super }} {% endblock %} {% block javascript %} {{ block.super }} {{ form.media.js }} {% if inlines %} {% for formset in inlines %} {{ formset.empty_form.media.js }} {% endfor %} {% endif %} {% endblock %}