Preserve container

main
Bob Mottram 2021-09-19 17:57:17 +01:00
parent 0b2a881755
commit adfb7e6e5d
1 changed files with 4 additions and 3 deletions

View File

@ -536,14 +536,15 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {},
endpoint != 'newwanted' and \ endpoint != 'newwanted' and \
endpoint != 'newreport' and \ endpoint != 'newreport' and \
endpoint != 'newquestion': endpoint != 'newquestion':
if category != 'accommodation':
dateAndLocation = \ dateAndLocation = \
'<div class="container">\n' + \ '<div class="container">\n'
if category != 'accommodation':
dateAndLocation += \
'<p><input type="checkbox" class="profilecheckbox" ' + \ '<p><input type="checkbox" class="profilecheckbox" ' + \
'name="commentsEnabled" checked><label class="labels"> ' + \ 'name="commentsEnabled" checked><label class="labels"> ' + \
translate['Allow replies.'] + '</label></p>\n' translate['Allow replies.'] + '</label></p>\n'
else: else:
dateAndLocation = \ dateAndLocation += \
'<input type="hidden" name="commentsEnabled" value="true">\n' '<input type="hidden" name="commentsEnabled" value="true">\n'
if endpoint == 'newpost': if endpoint == 'newpost':