mirror of https://gitlab.com/bashrc2/epicyon
Danger zone function for edit profile screen
parent
599cba6409
commit
180b9c621a
|
@ -1323,6 +1323,22 @@ def _htmlEditProfileInstance(baseDir: str, translate: {},
|
||||||
return instanceStr, roleAssignStr, peertubeStr
|
return instanceStr, roleAssignStr, peertubeStr
|
||||||
|
|
||||||
|
|
||||||
|
def _htmlEditProfileDangerZone(translate: {}) -> str:
|
||||||
|
"""danger zone section of Edit Profile screen
|
||||||
|
"""
|
||||||
|
editProfileForm = ' <details><summary class="cw">' + \
|
||||||
|
translate['Danger Zone'] + '</summary>\n'
|
||||||
|
editProfileForm += ' <div class="container">\n'
|
||||||
|
editProfileForm += ' <b><label class="labels">' + \
|
||||||
|
translate['Danger Zone'] + '</label></b><br>\n'
|
||||||
|
editProfileForm += \
|
||||||
|
' <input type="checkbox" class=dangercheckbox" ' + \
|
||||||
|
'name="deactivateThisAccount"> ' + \
|
||||||
|
translate['Deactivate this account'] + '<br>\n'
|
||||||
|
editProfileForm += ' </div></details>\n'
|
||||||
|
return editProfileForm
|
||||||
|
|
||||||
|
|
||||||
def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str,
|
def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str,
|
||||||
domain: str, port: int, httpPrefix: str,
|
domain: str, port: int, httpPrefix: str,
|
||||||
defaultTimeline: str, theme: str,
|
defaultTimeline: str, theme: str,
|
||||||
|
@ -1945,16 +1961,7 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str,
|
||||||
editProfileForm += roleAssignStr + peertubeStr + graphicsStr + instanceStr
|
editProfileForm += roleAssignStr + peertubeStr + graphicsStr + instanceStr
|
||||||
|
|
||||||
# danger zone section
|
# danger zone section
|
||||||
editProfileForm += ' <details><summary class="cw">' + \
|
editProfileForm += _htmlEditProfileDangerZone(translate)
|
||||||
translate['Danger Zone'] + '</summary>\n'
|
|
||||||
editProfileForm += ' <div class="container">\n'
|
|
||||||
editProfileForm += ' <b><label class="labels">' + \
|
|
||||||
translate['Danger Zone'] + '</label></b><br>\n'
|
|
||||||
editProfileForm += \
|
|
||||||
' <input type="checkbox" class=dangercheckbox" ' + \
|
|
||||||
'name="deactivateThisAccount"> ' + \
|
|
||||||
translate['Deactivate this account'] + '<br>\n'
|
|
||||||
editProfileForm += ' </div></details>\n'
|
|
||||||
|
|
||||||
editProfileForm += ' <div class="container">\n'
|
editProfileForm += ' <div class="container">\n'
|
||||||
editProfileForm += \
|
editProfileForm += \
|
||||||
|
|
Loading…
Reference in New Issue