{% from 'forms/_form.html' import form_header, form_fieldset, form_footer, form_rows %}
{% set chatroom = event_chatroom.chatroom if event_chatroom %}
{{ form_header(form, id='chatroom-form') }}
{% call form_fieldset(legend='Chatroom settings') %}
{{ form_rows(form, skip=form.event_specific_fields) }}
{% endcall %}
{% call form_fieldset(legend='Event settings', description='These settings affect only the current event even if the chatroom is used in multiple events.') %}
{{ form_rows(form, fields=form.event_specific_fields) }}
{% endcall %}
{% call form_footer(form) %}
{% trans %}Cancel{% endtrans %}
{% endcall %}