forked from indymedia/epicyon
Fields for share
parent
1c8ab532bc
commit
d81d2cedf7
|
@ -255,12 +255,10 @@ input[type=submit]:hover {
|
||||||
}
|
}
|
||||||
|
|
||||||
.vertical-center {
|
.vertical-center {
|
||||||
top: 50%;
|
|
||||||
-ms-transform: translateY(50%);
|
|
||||||
transform: translateY(50%);
|
|
||||||
max-width: 90%;
|
max-width: 90%;
|
||||||
min-width: 600px;
|
min-width: 600px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
padding: 10% 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropbtn {
|
.dropbtn {
|
||||||
|
|
|
@ -89,6 +89,7 @@ def htmlNewPost(baseDir: str,path: str) -> str:
|
||||||
scopeDescription='Public'
|
scopeDescription='Public'
|
||||||
placeholderSubject='Subject or Content Warning (optional)...'
|
placeholderSubject='Subject or Content Warning (optional)...'
|
||||||
placeholderMessage='Write something...'
|
placeholderMessage='Write something...'
|
||||||
|
extraFields=''
|
||||||
if path.endswith('/newunlisted'):
|
if path.endswith('/newunlisted'):
|
||||||
scopeIcon='scope_unlisted.png'
|
scopeIcon='scope_unlisted.png'
|
||||||
scopeDescription='Unlisted'
|
scopeDescription='Unlisted'
|
||||||
|
@ -103,6 +104,10 @@ def htmlNewPost(baseDir: str,path: str) -> str:
|
||||||
scopeDescription='Shared Item'
|
scopeDescription='Shared Item'
|
||||||
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= \
|
||||||
|
'<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=htmlHeader(newPostCSS)
|
||||||
newPostForm+= \
|
newPostForm+= \
|
||||||
|
@ -112,7 +117,7 @@ def htmlNewPost(baseDir: str,path: str) -> str:
|
||||||
' <input type="text" placeholder="'+placeholderSubject+'" name="subject">' \
|
' <input type="text" placeholder="'+placeholderSubject+'" name="subject">' \
|
||||||
'' \
|
'' \
|
||||||
' <textarea id="message" name="message" placeholder="'+placeholderMessage+'" style="height:200px"></textarea>' \
|
' <textarea id="message" name="message" placeholder="'+placeholderMessage+'" style="height:200px"></textarea>' \
|
||||||
'' \
|
''+extraFields+ \
|
||||||
' <div class="container">' \
|
' <div class="container">' \
|
||||||
' <input type="submit" value="Cancel">' \
|
' <input type="submit" value="Cancel">' \
|
||||||
' <input type="submit" value="Submit">' \
|
' <input type="submit" value="Submit">' \
|
||||||
|
|
Loading…
Reference in New Issue