Fields for share

master
Bob Mottram 2019-07-26 13:59:30 +01:00
parent 1c8ab532bc
commit d81d2cedf7
2 changed files with 8 additions and 5 deletions

View File

@ -255,12 +255,10 @@ input[type=submit]:hover {
}
.vertical-center {
top: 50%;
-ms-transform: translateY(50%);
transform: translateY(50%);
max-width: 90%;
min-width: 600px;
margin: 0 auto;
padding: 10% 0px;
}
.dropbtn {

View File

@ -89,6 +89,7 @@ def htmlNewPost(baseDir: str,path: str) -> str:
scopeDescription='Public'
placeholderSubject='Subject or Content Warning (optional)...'
placeholderMessage='Write something...'
extraFields=''
if path.endswith('/newunlisted'):
scopeIcon='scope_unlisted.png'
scopeDescription='Unlisted'
@ -103,6 +104,10 @@ def htmlNewPost(baseDir: str,path: str) -> str:
scopeDescription='Shared Item'
placeholderSubject='Name of the shared item...'
placeholderMessage='Description of the item being shared...'
extraFields= \
'<input type="text" placeholder="Type of shared item. eg. hat" name="itemType">' \
'<input type="text" placeholder="Category of shared item. eg. clothing" name="itemCategory">' \
'<input type="text" placeholder="City or location of the shared item" name="location">'
newPostForm=htmlHeader(newPostCSS)
newPostForm+= \
@ -112,7 +117,7 @@ def htmlNewPost(baseDir: str,path: str) -> str:
' <input type="text" placeholder="'+placeholderSubject+'" name="subject">' \
'' \
' <textarea id="message" name="message" placeholder="'+placeholderMessage+'" style="height:200px"></textarea>' \
'' \
''+extraFields+ \
' <div class="container">' \
' <input type="submit" value="Cancel">' \
' <input type="submit" value="Submit">' \