search button on new post

master
Bob Mottram 2019-08-19 20:50:07 +01:00
parent 15c28f82d3
commit d10295c814
1 changed files with 3 additions and 0 deletions

View File

@ -531,6 +531,8 @@ def htmlSuspended(baseDir: str) -> str:
return suspendedForm return suspendedForm
def htmlNewPost(baseDir: str,path: str,inReplyTo: str,mentions: []) -> str: def htmlNewPost(baseDir: str,path: str,inReplyTo: str,mentions: []) -> str:
"""New post screen
"""
reportUrl=None reportUrl=None
if '/newreport?=' in path: if '/newreport?=' in path:
reportUrl=path.split('/newreport?=')[1] reportUrl=path.split('/newreport?=')[1]
@ -649,6 +651,7 @@ def htmlNewPost(baseDir: str,path: str,inReplyTo: str,mentions: []) -> str:
' </div>' \ ' </div>' \
' <input type="submit" name="submitPost" value="Submit">' \ ' <input type="submit" name="submitPost" value="Submit">' \
' <a href="'+pathBase+'/outbox"><button class="cancelbtn">Cancel</button></a>' \ ' <a href="'+pathBase+'/outbox"><button class="cancelbtn">Cancel</button></a>' \
' <a href="'+pathBase+'/search"><img src="/icons/search.png" title="Search for emoji" alt="Search for emoji" class="right"/></a>'+ \
' </div>'+ \ ' </div>'+ \
replyStr+ \ replyStr+ \
' <input type="text" placeholder="'+placeholderSubject+'" name="subject">' \ ' <input type="text" placeholder="'+placeholderSubject+'" name="subject">' \