@@ -94,8 +94,10 @@ <h2>{% trans forum=forum.name|e %}New topic in “{{ forum }}”{% endtrans %}</
94
94
< dd class ="license_note "> {{ storage['license_note_rendered'] }}</ dd >
95
95
{%- endif %}
96
96
< dd style ="display: none "> < input type ="submit " value ="Absenden " name ="send "> </ dd >
97
+
97
98
{%- if (isnewtopic or isfirstpost) and can_create_poll %}
98
- < dt class ="collapse{% if poll_form.errors %} has_errors{% endif %} "> Umfragen:</ dt >
99
+ < details {% if poll_form.errors or polls %}open{% endif %} >
100
+ < summary > {% trans %}Polls{% endtrans %}</ summary >
99
101
{%- if polls %}
100
102
< dd > {% trans %}Existing polls:{% endtrans %}
101
103
< ul >
@@ -120,9 +122,12 @@ <h2>{% trans forum=forum.name|e %}New topic in “{{ forum }}”{% endtrans %}</
120
122
< dd > {% trans duration=poll_form.duration %}Duration of the poll: {{ duration }} days{% endtrans %} {{ poll_form.duration.errors }}</ dd >
121
123
< dd class ="note "> {% trans %}Leave that feel empty for an endless duration{% endtrans %}</ dd >
122
124
< dd > < input type ="submit " name ="add_poll " value ="{% trans %}Add poll{% endtrans %} "> </ dd >
125
+ </ details >
123
126
{%- endif %}
127
+
124
128
{%- if can_attach %}
125
- < dt class ="collapse{% if attach_form.errors %} has_errors{% endif %} "> {% trans %}Attachments:{% endtrans %}</ dt >
129
+ < details {% if attach_form.errors or attachments %}open{% endif %} >
130
+ < summary > {% trans %}Attachments{% endtrans %}</ summary >
126
131
< dd >
127
132
{%- if attachments %}
128
133
< ul >
@@ -144,9 +149,10 @@ <h2>{% trans forum=forum.name|e %}New topic in “{{ forum }}”{% endtrans %}</
144
149
Overwrite existing attachment with the same name.{%- endtrans %}</ label > </ p >
145
150
< p > < input type ="submit " value ="{% trans %}upload attachment{% endtrans %} " name ="attach "> </ p >
146
151
</ dd >
152
+ </ details >
147
153
{%- endif %}
154
+
148
155
{%- if can_sticky and (isnewtopic or isfirstpost) %}
149
- < dt > Optionen:</ dt >
150
156
< dd > {{ form.sticky }} < label for ="id_sticky "> {% trans %}Mark topic as “Important:”{% endtrans %}</ label > </ dd >
151
157
{%- endif %}
152
158
</ dl >
0 commit comments