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",
"Matrix": "Matrix",
"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",
"Matrix": "Matrix",
"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",
"Matrix": "Matrix",
"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",
"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",
"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",
"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",
"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",
"Matrix": "Matrix",
"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",
"Matrix": "Matrix",
"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",
"Matrix": "Matrix",
"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",
"Matrix": "Matrix",
"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",
"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",
"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",
"Matrix": "Matrix",
"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",
"Matrix": "Matrix",
"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+=' </div>'
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="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="followDMs" '+followDMs+'>'+translate['Only people I follow can send me DMs']+'<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="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>'
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><label class="labels">'+translate['One per line']+'</label>'
editProfileForm+=' <textarea id="message" name="filteredWords" style="height:200px">'+filterStr+'</textarea>'
@ -1118,6 +1118,7 @@ def htmlNewPost(mediaInstance: bool,translate: {}, \
dateAndLocation=''
if endpoint!='newshare' and endpoint!='newreport' and endpoint!='newquestion':
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+='<label class="labels">'+translate['Date']+': </label>'
dateAndLocation+='<input type="date" name="eventDate">'