Submit button for checkbox

main
Bob Mottram 2020-07-03 20:15:17 +01:00
parent 0b47d6fd3d
commit 8019735837
1 changed files with 8 additions and 2 deletions

View File

@ -5460,12 +5460,18 @@ def htmlPersonOptions(translate: {}, baseDir: str,
'<br><input type="checkbox" ' + \
'class="profilecheckbox" name="onCalendar" ' + \
'checked>' + \
translate['Receive calendar events from this account']
translate['Receive calendar events from this account'] + \
'<button type="submit" class="button" ' + \
'name="submitOnCalendar">' + \
translate['Submit'] + '</button>'
else:
optionsStr += \
'<br><input type="checkbox" ' + \
'class="profilecheckbox" name="onCalendar">' + \
translate['Receive calendar events from this account']
translate['Receive calendar events from this account'] + \
'<button type="submit" class="button" ' + \
'name="submitOnCalendar">' + \
translate['Submit'] + '</button>'
optionsStr += ' </form>'
optionsStr += '</center>'