Grouping share fields

master
Bob Mottram 2019-07-26 15:19:37 +01:00
parent 397859da69
commit 58a2a85aa3
2 changed files with 31 additions and 14 deletions

View File

@ -250,6 +250,16 @@ input[type=submit] {
font-size: 18px; font-size: 18px;
} }
input[type=file] {
background-color: #555;
color: white;
padding: 12px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 18px;
}
input[type=submit]:hover { input[type=submit]:hover {
background-color: #555; background-color: #555;
} }
@ -258,7 +268,7 @@ input[type=submit]:hover {
max-width: 90%; max-width: 90%;
min-width: 600px; min-width: 600px;
margin: 0 auto; margin: 0 auto;
padding: 10% 0px; padding: 5% 0px;
} }
.dropbtn { .dropbtn {

View File

@ -105,8 +105,10 @@ def htmlNewPost(baseDir: str,path: str) -> str:
placeholderSubject='Name of the shared item...' placeholderSubject='Name of the shared item...'
placeholderMessage='Description of the item being shared...' placeholderMessage='Description of the item being shared...'
extraFields= \ extraFields= \
'<div class="container">' \
' <input type="text" placeholder="Type of shared item. eg. hat" name="itemType">' \ ' <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="Category of shared item. eg. clothing" name="category">' \
'</div>' \
'<input type="text" placeholder="City or location of the shared item" name="location">' '<input type="text" placeholder="City or location of the shared item" name="location">'
newPostForm=htmlHeader(newPostCSS) newPostForm=htmlHeader(newPostCSS)
@ -119,6 +121,11 @@ def htmlNewPost(baseDir: str,path: str) -> str:
' <textarea id="message" name="message" placeholder="'+placeholderMessage+'" style="height:200px"></textarea>' \ ' <textarea id="message" name="message" placeholder="'+placeholderMessage+'" style="height:200px"></textarea>' \
''+extraFields+ \ ''+extraFields+ \
' <div class="container">' \ ' <div class="container">' \
' <input type="text" placeholder="Image description" name="imageDescription">' \
' <input type="file" id="attachpic" name="attachpic"' \
' accept=".png, .jpg, .jpeg, .gif">' \
' </div>' \
' <div class="container">' \
' <input type="submit" value="Cancel">' \ ' <input type="submit" value="Cancel">' \
' <input type="submit" value="Submit">' \ ' <input type="submit" value="Submit">' \
' <div class="dropdown">' \ ' <div class="dropdown">' \