Submit button at the top

master
Bob Mottram 2019-08-07 20:22:56 +01:00
parent aa3c0f5fb8
commit 7120630bf4
2 changed files with 10 additions and 5 deletions

View File

@ -53,6 +53,11 @@ body, html {
color: white;
}
.new-post-text {
font-size: 24px;
padding: 4px 0;
}
.highlight {
width: 2%;
}

View File

@ -85,7 +85,11 @@ def htmlEditProfile(baseDir: str,path: str,domain: str,port: int) -> str:
editProfileForm+= \
'<form enctype="multipart/form-data" method="POST" action="'+path+'/profiledata">' \
' <div class="vertical-center">' \
' <p class="new-post-text">Edit profile for '+nickname+'@'+domainFull+'</p>' \
' <p class="new-post-text">Profile for '+nickname+'@'+domainFull+'</p>' \
' <div class="container">' \
' <input type="submit" name="submitProfile" value="Submit">' \
' <a href="'+pathOriginal+'"><button class="cancelbtn">Cancel</button></a>' \
' </div>'+ \
' <div class="container">' \
' <input type="text" placeholder="Preferred name" name="preferredNickname" value="'+preferredNickname+'">' \
' <textarea id="message" name="bio" placeholder="Your bio..." style="height:200px">'+bioStr+'</textarea>' \
@ -113,10 +117,6 @@ def htmlEditProfile(baseDir: str,path: str,domain: str,port: int) -> str:
' <br>Federate only with a defined set of instances. One domain name per line.' \
' <textarea id="message" name="allowedInstances" placeholder="" style="height:200px">'+allowedInstancesStr+'</textarea>' \
' </div>' \
' <div class="container">' \
' <input type="submit" name="submitProfile" value="Submit">' \
' <a href="'+pathOriginal+'"><button class="cancelbtn">Cancel</button></a>' \
' </div>'+ \
' </div>' \
'</form>'
editProfileForm+=htmlFooter()