\n' + \
+ '
\n'
+
+ editProfileForm = \
'
\n' + \
- ' ' + \
- translate['Deactivate this account'] + '
\n' + \
+ translate['Danger Zone'] + '
\n'
+
+ editProfileForm = \
+ _editCheckBox(translate['Deactivate this account'],
+ 'deactivateThisAccount', False)
+
+ editProfileForm = \
'
\n'
return editProfileForm
@@ -1683,20 +1666,6 @@ def _htmlEditProfileBackground(newsInstance: bool, translate: {}) -> str:
return editProfileForm
-def _beginEditSection(label: str) -> str:
- """returns the html for begining a dropdown section on edit profile screen
- """
- return \
- '
' + label + '
\n' + \
- ''
-
-
-def _endEditSection() -> str:
- """returns the html for ending a dropdown section on edit profile screen
- """
- return '
\n'
-
-
def _htmlEditProfileContactInfo(nickname: str,
emailAddress: str,
xmppAddress: str,
@@ -1747,33 +1716,26 @@ def _htmlEditProfileOptions(manuallyApprovesFollowers: str,
"""
editProfileForm = '
\n'
editProfileForm += \
- ' ' + translate['Approve follower requests'] + '
\n'
+ _editCheckBox(translate['Approve follower requests'],
+ 'approveFollowers', manuallyApprovesFollowers)
editProfileForm += \
- ' ' + translate['This is a bot account'] + '
\n'
+ _editCheckBox(translate['This is a bot account'],
+ 'isBot', isBot)
editProfileForm += \
- ' ' + \
- translate['This is a group account'] + '
\n'
+ _editCheckBox(translate['This is a group account'],
+ 'isGroup', isGroup)
editProfileForm += \
- ' ' + \
- translate['Only people I follow can send me DMs'] + '
\n'
+ _editCheckBox(translate['Only people I follow can send me DMs'],
+ 'followDMs', followDMs)
editProfileForm += \
- ' ' + \
- translate['Remove Twitter posts'] + '
\n'
+ _editCheckBox(translate['Remove Twitter posts'],
+ 'removeTwitter', removeTwitter)
editProfileForm += \
- ' ' + \
- translate['Notify when posts are liked'] + '
\n'
+ _editCheckBox(translate['Notify when posts are liked'],
+ 'notifyLikes', notifyLikes)
editProfileForm += \
- ' ' + \
- translate["Don't show the Like button"] + '
\n'
+ _editCheckBox(translate["Don't show the Like button"],
+ 'hideLikeButton', hideLikeButton)
editProfileForm += '
\n'
return editProfileForm
@@ -1917,9 +1879,8 @@ def _htmlEditProfileTopBanner(baseDir: str,
if scheduledPostsExist(baseDir, nickname, domain):
editProfileForm += '
\n'
editProfileForm += \
- ' ' + \
- translate['Remove scheduled posts'] + '
\n'
+ _editCheckBox(translate['Remove scheduled posts'],
+ 'removeScheduledPosts', False)
editProfileForm += '
\n'
return editProfileForm