{# Copyright The IETF Trust 2007-2020, All Rights Reserved #}
{% if hidden %}{{ form.name.as_hidden }}{{ form.purpose.as_hidden }}{{ form.type.as_hidden }}{{ form.requested_duration.as_hidden }} {% else %} {% comment %} The form-group class is used by session_details_form.js to identify the correct element to hide the name / purpose / type fields when not needed. This is a bootstrap class - the secr app does not use it, so this (and the hidden class, also needed by session_details_form.js) are defined in edit.html and new.html as a kludge to make this work. {% endcomment %}
{{ form.name.label_tag }} {{ form.name }}{{ form.purpose.errors }}
{{ form.purpose.label_tag }} {{ form.purpose }}
{{ form.type }}
{{ form.purpose.errors }}{{ form.type.errors }}
{{ form.requested_duration.label_tag }} {{ form.requested_duration }}{{ form.requested_duration.errors }}
{% endif %} {# hidden fields shown whether or not the whole form is hidden #} {{ form.attendees.as_hidden }}{{ form.comments.as_hidden }}{{ form.id.as_hidden }}{{ form.on_agenda.as_hidden }}{{ form.DELETE.as_hidden }}