Skip to content

Commit 93d3daa

Browse files
fix: handle remote_instructions field correctly on interim request form
1 parent baa3b29 commit 93d3daa

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

ietf/meeting/forms.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,10 @@ def __init__(self, *args, **kwargs):
285285
choices.append(('meetecho', 'Automatically create Meetecho conference'))
286286
choices.append(('manual', 'Manually specify remote instructions...'))
287287
self.fields['remote_participation'].choices = choices
288+
# put remote_participation ahead of remote_instructions
289+
field_order = [field for field in self.fields if field != 'remote_participation']
290+
field_order.insert(field_order.index('remote_instructions'), 'remote_participation')
291+
self.order_fields(field_order)
288292

289293
def clean_date(self):
290294
'''Date field validator. We can't use required on the input because

ietf/static/js/meeting-interim-request.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,11 @@ const interimRequest = (function() {
254254

255255
switch (elt.value) {
256256
case 'meetecho':
257-
remoteInstructions.closest('.form-group').hide();
257+
remoteInstructions.closest('.row').hide();
258258
break;
259259

260260
default:
261-
remoteInstructions.closest('.form-group').show();
261+
remoteInstructions.closest('.row').show();
262262
break;
263263
}
264264
}

0 commit comments

Comments
 (0)