Checkbox for scheduled posts

main
Bob Mottram 2020-01-12 10:28:33 +00:00
parent a5968dd0f6
commit 52f3743ecc
16 changed files with 36 additions and 20 deletions

View File

@ -204,5 +204,6 @@
"XMPP": "XMPP", "XMPP": "XMPP",
"Matrix": "Matrix", "Matrix": "Matrix",
"Email": "البريد الإلكتروني", "Email": "البريد الإلكتروني",
"PGP": "PGP" "PGP": "PGP",
"Schedule post for release at this date and time.": "Schedule post for release at this date and time."
} }

View File

@ -204,5 +204,6 @@
"XMPP": "XMPP", "XMPP": "XMPP",
"Matrix": "Matrix", "Matrix": "Matrix",
"Email": "Correu electrònic", "Email": "Correu electrònic",
"PGP": "PGP" "PGP": "PGP",
"Schedule post for release at this date and time.": "Schedule post for release at this date and time."
} }

View File

@ -204,5 +204,6 @@
"XMPP": "XMPP", "XMPP": "XMPP",
"Matrix": "Matrix", "Matrix": "Matrix",
"Email": "E-bost", "Email": "E-bost",
"PGP": "PGP" "PGP": "PGP",
"Schedule post for release at this date and time.": "Schedule post for release at this date and time."
} }

View File

@ -204,5 +204,6 @@
"XMPP": "XMPP", "XMPP": "XMPP",
"Matrix": "Matrix", "Matrix": "Matrix",
"Email": "Email", "Email": "Email",
"PGP": "PGP" "PGP": "PGP",
"Schedule post for release at this date and time.": "Schedule post for release at this date and time."
} }

View File

@ -204,5 +204,6 @@
"XMPP": "XMPP", "XMPP": "XMPP",
"Matrix": "Matrix", "Matrix": "Matrix",
"Email": "Email", "Email": "Email",
"PGP": "PGP" "PGP": "PGP",
"Schedule post for release at this date and time.": "Schedule post for release at this date and time."
} }

View File

@ -204,5 +204,6 @@
"XMPP": "XMPP", "XMPP": "XMPP",
"Matrix": "Matrix", "Matrix": "Matrix",
"Email": "Email", "Email": "Email",
"PGP": "PGP" "PGP": "PGP",
"Schedule post for release at this date and time.": "Schedule post for release at this date and time."
} }

View File

@ -204,5 +204,6 @@
"XMPP": "XMPP", "XMPP": "XMPP",
"Matrix": "Matrix", "Matrix": "Matrix",
"Email": "Email", "Email": "Email",
"PGP": "PGP" "PGP": "PGP",
"Schedule post for release at this date and time.": "Schedule post for release at this date and time."
} }

View File

@ -204,5 +204,6 @@
"XMPP": "XMPP", "XMPP": "XMPP",
"Matrix": "Matrix", "Matrix": "Matrix",
"Email": "Ríomhphost", "Email": "Ríomhphost",
"PGP": "PGP" "PGP": "PGP",
"Schedule post for release at this date and time.": "Schedule post for release at this date and time."
} }

View File

@ -204,5 +204,6 @@
"XMPP": "XMPP", "XMPP": "XMPP",
"Matrix": "Matrix", "Matrix": "Matrix",
"Email": "ईमेल", "Email": "ईमेल",
"PGP": "PGP" "PGP": "PGP",
"Schedule post for release at this date and time.": "Schedule post for release at this date and time."
} }

View File

@ -204,5 +204,6 @@
"XMPP": "XMPP", "XMPP": "XMPP",
"Matrix": "Matrix", "Matrix": "Matrix",
"Email": "E-mail", "Email": "E-mail",
"PGP": "PGP" "PGP": "PGP",
"Schedule post for release at this date and time.": "Schedule post for release at this date and time."
} }

View File

@ -204,5 +204,6 @@
"XMPP": "XMPP", "XMPP": "XMPP",
"Matrix": "Matrix", "Matrix": "Matrix",
"Email": "Eメール", "Email": "Eメール",
"PGP": "PGP" "PGP": "PGP",
"Schedule post for release at this date and time.": "Schedule post for release at this date and time."
} }

View File

@ -200,5 +200,6 @@
"XMPP": "XMPP", "XMPP": "XMPP",
"Matrix": "Matrix", "Matrix": "Matrix",
"Email": "Email", "Email": "Email",
"PGP": "PGP" "PGP": "PGP",
"Schedule post for release at this date and time.": "Schedule post for release at this date and time."
} }

View File

@ -204,5 +204,6 @@
"XMPP": "XMPP", "XMPP": "XMPP",
"Matrix": "Matrix", "Matrix": "Matrix",
"Email": "Email", "Email": "Email",
"PGP": "PGP" "PGP": "PGP",
"Schedule post for release at this date and time.": "Schedule post for release at this date and time."
} }

View File

@ -204,5 +204,6 @@
"XMPP": "XMPP", "XMPP": "XMPP",
"Matrix": "Matrix", "Matrix": "Matrix",
"Email": "Эл. адрес", "Email": "Эл. адрес",
"PGP": "PGP" "PGP": "PGP",
"Schedule post for release at this date and time.": "Schedule post for release at this date and time."
} }

View File

@ -204,5 +204,6 @@
"XMPP": "XMPP", "XMPP": "XMPP",
"Matrix": "Matrix", "Matrix": "Matrix",
"Email": "电子邮件", "Email": "电子邮件",
"PGP": "PGP" "PGP": "PGP",
"Schedule post for release at this date and time.": "Schedule post for release at this date and time."
} }

View File

@ -751,12 +751,12 @@ def htmlEditProfile(translate: {},baseDir: str,path: str,domain: str,port: int,h
editProfileForm+=' <input type="text" name="passwordconfirm" value="">' editProfileForm+=' <input type="text" name="passwordconfirm" value="">'
editProfileForm+=' </div>' editProfileForm+=' </div>'
editProfileForm+=' <div class="container">' editProfileForm+=' <div class="container">'
editProfileForm+=' <input type="checkbox" class=profilecheckbox" name="approveFollowers" '+manuallyApprovesFollowers+'>'+translate['Approve follower requests']+'<br>' editProfileForm+=' <input type="checkbox" class="profilecheckbox" name="approveFollowers" '+manuallyApprovesFollowers+'>'+translate['Approve follower requests']+'<br>'
editProfileForm+=' <input type="checkbox" class=profilecheckbox" name="isBot" '+isBot+'>'+translate['This is a bot account']+'<br>' editProfileForm+=' <input type="checkbox" class="profilecheckbox" name="isBot" '+isBot+'>'+translate['This is a bot account']+'<br>'
editProfileForm+=' <input type="checkbox" class=profilecheckbox" name="isGroup" '+isGroup+'>'+translate['This is a group account']+'<br>' editProfileForm+=' <input type="checkbox" class="profilecheckbox" name="isGroup" '+isGroup+'>'+translate['This is a group account']+'<br>'
editProfileForm+=' <input type="checkbox" class=profilecheckbox" name="followDMs" '+followDMs+'>'+translate['Only people I follow can send me DMs']+'<br>' editProfileForm+=' <input type="checkbox" class="profilecheckbox" name="followDMs" '+followDMs+'>'+translate['Only people I follow can send me DMs']+'<br>'
if path.startswith('/users/'+adminNickname+'/'): if path.startswith('/users/'+adminNickname+'/'):
editProfileForm+=' <input type="checkbox" class=profilecheckbox" name="mediaInstance" '+mediaInstanceStr+'>'+translate['This is a media instance']+'<br>' editProfileForm+=' <input type="checkbox" class="profilecheckbox" name="mediaInstance" '+mediaInstanceStr+'>'+translate['This is a media instance']+'<br>'
editProfileForm+=' <br><b><label class="labels">'+translate['Filtered words']+'</label></b>' editProfileForm+=' <br><b><label class="labels">'+translate['Filtered words']+'</label></b>'
editProfileForm+=' <br><label class="labels">'+translate['One per line']+'</label>' editProfileForm+=' <br><label class="labels">'+translate['One per line']+'</label>'
editProfileForm+=' <textarea id="message" name="filteredWords" style="height:200px">'+filterStr+'</textarea>' editProfileForm+=' <textarea id="message" name="filteredWords" style="height:200px">'+filterStr+'</textarea>'
@ -1118,6 +1118,7 @@ def htmlNewPost(mediaInstance: bool,translate: {}, \
dateAndLocation='' dateAndLocation=''
if endpoint!='newshare' and endpoint!='newreport' and endpoint!='newquestion': if endpoint!='newshare' and endpoint!='newreport' and endpoint!='newquestion':
dateAndLocation='<div class="container">' dateAndLocation='<div class="container">'
dateAndLocation+='<p><input type="checkbox" class="profilecheckbox" name="schedulePost">'+translate['Schedule post for release at this date and time.']+'</p>'
dateAndLocation+='<p><img loading="lazy" alt="" title="" class="emojicalendar" src="/'+iconsDir+'/calendar.png"/>' dateAndLocation+='<p><img loading="lazy" alt="" title="" class="emojicalendar" src="/'+iconsDir+'/calendar.png"/>'
dateAndLocation+='<label class="labels">'+translate['Date']+': </label>' dateAndLocation+='<label class="labels">'+translate['Date']+': </label>'
dateAndLocation+='<input type="date" name="eventDate">' dateAndLocation+='<input type="date" name="eventDate">'