No checkbox if dropdown is absent

merge-requests/16/head
Bob Mottram 2021-02-05 12:22:23 +00:00
parent c2a1b59390
commit c0bd35adf9
1 changed files with 3 additions and 2 deletions

View File

@ -76,8 +76,9 @@ def _htmlNewPostDropDown(scopeIcon: str, scopeDescription: str,
"""Returns the html for a drop down list of new post types
"""
dropDownContent = '<nav><div class="newPostDropdown">\n'
dropDownContent += ' <input type="checkbox" ' + \
'id="my-newPostDropdown" value="" name="my-checkbox">\n'
if not noDropDown:
dropDownContent += ' <input type="checkbox" ' + \
'id="my-newPostDropdown" value="" name="my-checkbox">\n'
dropDownContent += ' <label for="my-newPostDropdown"\n'
dropDownContent += ' data-toggle="newPostDropdown">\n'
dropDownContent += ' <img loading="lazy" alt="" title="" src="/' + \