Optional date, time and location on new posts

main2
Bob Mottram 2019-10-10 11:26:33 +01:00
parent 6e51317ce5
commit 6c9834f2d7
8 changed files with 42 additions and 9 deletions

View File

@ -140,5 +140,8 @@
"Vote": "Bleidleisio",
"Replies": "Atebion",
"Media": "Media",
"This is a group account": "This is a group account"
"This is a group account": "This is a group account",
"Date": "Date",
"Time": "Time",
"Location": "Location"
}

View File

@ -140,5 +140,8 @@
"Vote": "Abstimmung",
"Replies": "Antworten",
"Media": "Media",
"This is a group account": "This is a group account"
"This is a group account": "This is a group account",
"Date": "Date",
"Time": "Time",
"Location": "Location"
}

View File

@ -140,5 +140,8 @@
"Vote": "Vote",
"Replies": "Replies",
"Media": "Media",
"This is a group account": "This is a group account"
"This is a group account": "This is a group account",
"Date": "Date",
"Time": "Time",
"Location": "Location"
}

View File

@ -140,5 +140,8 @@
"Vote": "Votar",
"Replies": "Resp",
"Media": "Media",
"This is a group account": "This is a group account"
"This is a group account": "This is a group account",
"Date": "Date",
"Time": "Time",
"Location": "Location"
}

View File

@ -140,5 +140,8 @@
"Vote": "Vote",
"Replies": "Réponses",
"Media": "Media",
"This is a group account": "This is a group account"
"This is a group account": "This is a group account",
"Date": "Date",
"Time": "Time",
"Location": "Location"
}

View File

@ -140,5 +140,8 @@
"Vote": "Vóta",
"Replies": "Freagraí",
"Media": "Media",
"This is a group account": "This is a group account"
"This is a group account": "This is a group account",
"Date": "Date",
"Time": "Time",
"Location": "Location"
}

View File

@ -140,5 +140,8 @@
"Vote": "Voto",
"Replies": "Risposte",
"Media": "Media",
"This is a group account": "This is a group account"
"This is a group account": "This is a group account",
"Date": "Date",
"Time": "Time",
"Location": "Location"
}

View File

@ -930,6 +930,18 @@ def htmlNewPost(translate: {},baseDir: str, \
'</div>' \
'<input type="text" placeholder="'+translate['City or location of the shared item']+'" name="location">'
dateAndLocation=''
if endpoint!='newshare' and endpoint!='newreport':
dateAndLocation= \
'<div class="container">' \
'<label class="labels">'+translate['Date']+': </label>' \
'<input type="date" name="eventDate">' \
'<label class="labels">'+translate['Time']+': </label>' \
'<input type="time" name="eventTime">' \
'<label class="labels">'+translate['Location']+': </label>' \
'<input type="text" placeholder="'+translate['Location']+'" name="location">' \
'</div>' \
newPostForm=htmlHeader(cssFilename,newPostCSS)
# only show the share option if this is not a reply
@ -989,7 +1001,7 @@ def htmlNewPost(translate: {},baseDir: str, \
' </div>'
else:
mentionsStr='Re: '+reportUrl+'\n\n'+mentionsStr
newPostForm+= \
'<form enctype="multipart/form-data" method="POST" action="'+path+'?'+endpoint+'?page='+str(pageNumber)+'">' \
' <div class="vertical-center">' \
@ -1007,7 +1019,7 @@ def htmlNewPost(translate: {},baseDir: str, \
' <input type="text" placeholder="'+placeholderSubject+'" name="subject">' \
'' \
' <textarea id="message" name="message" placeholder="'+placeholderMessage+'" style="height:400px">'+mentionsStr+'</textarea>' \
''+extraFields+ \
''+dateAndLocation+extraFields+ \
' <div class="container">' \
' <input type="text" placeholder="'+translate['Image description']+'" name="imageDescription">' \
' <input type="file" id="attachpic" name="attachpic"' \