mirror of https://gitlab.com/bashrc2/epicyon
Separate divisions
parent
d2ad309738
commit
78b574e00e
|
@ -65,17 +65,19 @@ def htmlWelcomeProfile(baseDir: str, nickname: str, domain: str,
|
||||||
'<form enctype="multipart/form-data" method="POST" ' + \
|
'<form enctype="multipart/form-data" method="POST" ' + \
|
||||||
'accept-charset="UTF-8" ' + \
|
'accept-charset="UTF-8" ' + \
|
||||||
'action="/users/' + nickname + '/welcomeprofile">\n'
|
'action="/users/' + nickname + '/welcomeprofile">\n'
|
||||||
|
profileForm += '<div class="container">\n'
|
||||||
profileForm += ' <center>\n'
|
profileForm += ' <center>\n'
|
||||||
profileForm += ' <img class="welcomeavatar" src="'
|
profileForm += ' <img class="welcomeavatar" src="'
|
||||||
profileForm += avatarUrl + '"><br>\n'
|
profileForm += avatarUrl + '"><br>\n'
|
||||||
profileForm += ' <input type="file" id="avatar" name="avatar" '
|
profileForm += ' <input type="file" id="avatar" name="avatar" '
|
||||||
profileForm += 'accept="' + imageFormats + '">\n'
|
profileForm += 'accept="' + imageFormats + '">\n'
|
||||||
|
|
||||||
profileForm += ' </center>\n'
|
profileForm += ' </center>\n'
|
||||||
|
profileForm += '</div>\n'
|
||||||
|
|
||||||
actorFilename = baseDir + '/accounts/' + nickname + '@' + domain + '.json'
|
actorFilename = baseDir + '/accounts/' + nickname + '@' + domain + '.json'
|
||||||
actorJson = loadJson(actorFilename)
|
actorJson = loadJson(actorFilename)
|
||||||
displayNickname = actorJson['name']
|
displayNickname = actorJson['name']
|
||||||
|
profileForm += '<div class="container">\n'
|
||||||
profileForm += ' <label class="labels">' + \
|
profileForm += ' <label class="labels">' + \
|
||||||
translate['Nickname'] + '</label><br>\n'
|
translate['Nickname'] + '</label><br>\n'
|
||||||
profileForm += ' <input type="text" name="displayNickname" value="' + \
|
profileForm += ' <input type="text" name="displayNickname" value="' + \
|
||||||
|
@ -87,11 +89,12 @@ def htmlWelcomeProfile(baseDir: str, nickname: str, domain: str,
|
||||||
translate['Your bio'] + '</label><br>\n'
|
translate['Your bio'] + '</label><br>\n'
|
||||||
profileForm += ' <textarea id="message" name="bio" ' + \
|
profileForm += ' <textarea id="message" name="bio" ' + \
|
||||||
'style="height:200px">' + bioStr + '</textarea>\n'
|
'style="height:200px">' + bioStr + '</textarea>\n'
|
||||||
|
profileForm += '</div>\n'
|
||||||
|
|
||||||
profileForm += '<div class="container next">\n'
|
profileForm += '<div class="container next">\n'
|
||||||
profileForm += \
|
profileForm += \
|
||||||
' <button type="submit" class="button" ' + \
|
' <button type="submit" class="button" ' + \
|
||||||
'name="prevWelcomeScreen">' + translate['Go Back'] + '</button>\n'
|
'name="prevWelcomeScreen">' + translate['Go Back'] + '</button> '
|
||||||
profileForm += \
|
profileForm += \
|
||||||
' <button type="submit" class="button" ' + \
|
' <button type="submit" class="button" ' + \
|
||||||
'name="nextWelcomeScreen">' + translate['Next'] + '</button>\n'
|
'name="nextWelcomeScreen">' + translate['Next'] + '</button>\n'
|
||||||
|
|
Loading…
Reference in New Issue