From 18001b89fe552b648673b030aed583cfc20cc1c0 Mon Sep 17 00:00:00 2001 From: Adrian Moennich Date: Fri, 21 Nov 2014 15:07:13 +0100 Subject: [PATCH] Chat: Use form_rows macro --- chat/indico_chat/templates/manage_event_edit.html | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/chat/indico_chat/templates/manage_event_edit.html b/chat/indico_chat/templates/manage_event_edit.html index c06c2bf..c04cf62 100644 --- a/chat/indico_chat/templates/manage_event_edit.html +++ b/chat/indico_chat/templates/manage_event_edit.html @@ -1,4 +1,4 @@ -{% from 'forms/form_widget.html' import form_header, form_fieldset, form_row, form_footer %} +{% from 'forms/form_widget.html' import form_header, form_fieldset, form_footer, form_rows %}

{% trans %}Chat Rooms{% endtrans %}

@@ -16,15 +16,11 @@ {{ form_header(id='chatroom-form') }} {% call form_fieldset(legend='Chatroom settings') %} - {% for field in form.visible_fields if field.short_name not in form.event_specific_fields %} - {{ form_row(field) }} - {% endfor %} + {{ 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.') %} - {% for field in form.visible_fields if field.short_name in form.event_specific_fields %} - {{ form_row(field) }} - {% endfor %} + {{ form_rows(form, fields=form.event_specific_fields) }} {% endcall %} {% call form_footer() %}