Event status

main
Bob Mottram 2020-08-22 19:02:43 +01:00
parent 5b1a59592f
commit 878fad1e22
17 changed files with 98 additions and 17 deletions

View File

@ -5740,6 +5740,10 @@ class PubServer(BaseHTTPRequestHandler):
anonymousParticipationEnabled = False anonymousParticipationEnabled = False
else: else:
anonymousParticipationEnabled = True anonymousParticipationEnabled = True
maximumAttendeeCapacity = 999999
if fields.get('maximumAttendeeCapacity'):
maximumAttendeeCapacity = \
fields['maximumAttendeeCapacity']
messageJson = \ messageJson = \
createEventPost(self.server.baseDir, createEventPost(self.server.baseDir,
@ -5762,7 +5766,7 @@ class PubServer(BaseHTTPRequestHandler):
fields['joinMode'], fields['joinMode'],
fields['endDate'], fields['endDate'],
fields['endTime'], fields['endTime'],
fields['maximumAttendeeCapacity'], maximumAttendeeCapacity,
fields['repliesModerationOption'], fields['repliesModerationOption'],
anonymousParticipationEnabled, anonymousParticipationEnabled,
fields['eventStatus']) fields['eventStatus'])

View File

@ -268,5 +268,9 @@
"Anyone can join": "يمكن لأي شخص الانضمام", "Anyone can join": "يمكن لأي شخص الانضمام",
"Apply to join": "تقديم طلب للانضمام", "Apply to join": "تقديم طلب للانضمام",
"Invitation only": "المدعوون فقط", "Invitation only": "المدعوون فقط",
"Joining": "انضمام" "Joining": "انضمام",
"Status of the event": "حالة الحدث",
"Tentative": "مؤقت",
"Confirmed": "تم تأكيد",
"Cancelled": "ألغيت"
} }

View File

@ -268,5 +268,9 @@
"Anyone can join": "Qualsevol persona shi pot apuntar", "Anyone can join": "Qualsevol persona shi pot apuntar",
"Apply to join": "Sol·liciteu participar", "Apply to join": "Sol·liciteu participar",
"Invitation only": "Només invitació", "Invitation only": "Només invitació",
"Joining": "Unir-se" "Joining": "Unir-se",
"Status of the event": "Estat de lesdeveniment",
"Tentative": "Temptatiu",
"Confirmed": "Confirmat",
"Cancelled": "Cancel·lat"
} }

View File

@ -268,5 +268,9 @@
"Anyone can join": "Gall unrhyw un ymuno", "Anyone can join": "Gall unrhyw un ymuno",
"Apply to join": "Gwnewch gais i ymuno", "Apply to join": "Gwnewch gais i ymuno",
"Invitation only": "Gwahoddiad yn unig", "Invitation only": "Gwahoddiad yn unig",
"Joining": "Yn ymuno" "Joining": "Yn ymuno",
"Status of the event": "Statws y digwyddiad",
"Tentative": "Cynhyrfus",
"Confirmed": "Cadarnhawyd",
"Cancelled": "Wedi'i ganslo"
} }

View File

@ -268,5 +268,9 @@
"Anyone can join": "Jeder kann mitmachen", "Anyone can join": "Jeder kann mitmachen",
"Apply to join": "Sich anmelden um teilzunehmen", "Apply to join": "Sich anmelden um teilzunehmen",
"Invitation only": "Nur Einladungen", "Invitation only": "Nur Einladungen",
"Joining": "Beitritt" "Joining": "Beitritt",
"Status of the event": "Status des Ereignisses",
"Tentative": "Vorsichtig",
"Confirmed": "Bestätigt",
"Cancelled": "Abgesagt"
} }

View File

@ -268,5 +268,9 @@
"Anyone can join": "Anyone can join", "Anyone can join": "Anyone can join",
"Apply to join": "Apply to join", "Apply to join": "Apply to join",
"Invitation only": "Invitation only", "Invitation only": "Invitation only",
"Joining": "Joining" "Joining": "Joining",
"Status of the event": "Status of the event",
"Tentative": "Tentative",
"Confirmed": "Confirmed",
"Cancelled": "Cancelled"
} }

View File

@ -268,5 +268,9 @@
"Anyone can join": "Cualquiera puede unirse", "Anyone can join": "Cualquiera puede unirse",
"Apply to join": "Aplica para unirte", "Apply to join": "Aplica para unirte",
"Invitation only": "Sólo con Invitación", "Invitation only": "Sólo con Invitación",
"Joining": "Unión" "Joining": "Unión",
"Status of the event": "Estado del evento",
"Tentative": "Tentativa",
"Confirmed": "Confirmada",
"Cancelled": "Cancelada"
} }

View File

@ -268,5 +268,9 @@
"Anyone can join": "Tout le monde peut joindre", "Anyone can join": "Tout le monde peut joindre",
"Apply to join": "Postuler pour rejoindre", "Apply to join": "Postuler pour rejoindre",
"Invitation only": "Invitation uniquement", "Invitation only": "Invitation uniquement",
"Joining": "Joindre" "Joining": "Joindre",
"Status of the event": "Statut de l'événement",
"Tentative": "Provisoire",
"Confirmed": "Confirmé",
"Cancelled": "Annulé"
} }

View File

@ -268,5 +268,9 @@
"Anyone can join": "Is féidir le duine ar bith a bheith páirteach", "Anyone can join": "Is féidir le duine ar bith a bheith páirteach",
"Apply to join": "Déan iarratas ar bhallraíocht", "Apply to join": "Déan iarratas ar bhallraíocht",
"Invitation only": "Cuireadh amháin", "Invitation only": "Cuireadh amháin",
"Joining": "Ag teacht le chéile" "Joining": "Ag teacht le chéile",
"Status of the event": "Stádas na hócáide",
"Tentative": "Sealadach",
"Confirmed": "Deimhnithe",
"Cancelled": "Cealaithe"
} }

View File

@ -268,5 +268,9 @@
"Anyone can join": "कोई भी शामिल हो सकता है", "Anyone can join": "कोई भी शामिल हो सकता है",
"Apply to join": "जुड़ने के लिए आवेदन करें", "Apply to join": "जुड़ने के लिए आवेदन करें",
"Invitation only": "केवल आमंत्रण", "Invitation only": "केवल आमंत्रण",
"Joining": "में शामिल होने से" "Joining": "में शामिल होने से",
"Status of the event": "घटना की स्थिति",
"Tentative": "जांच का",
"Confirmed": "की पुष्टि",
"Cancelled": "रद्द"
} }

View File

@ -268,5 +268,9 @@
"Anyone can join": "Chiunque può partecipare", "Anyone can join": "Chiunque può partecipare",
"Apply to join": "Richiedi di partecipare", "Apply to join": "Richiedi di partecipare",
"Invitation only": "Solo su invito", "Invitation only": "Solo su invito",
"Joining": "Partecipare" "Joining": "Partecipare",
"Status of the event": "Stato dell'evento",
"Tentative": "Tentativa",
"Confirmed": "Confermata",
"Cancelled": "Annullata"
} }

View File

@ -268,5 +268,9 @@
"Anyone can join": "誰でも参加できます", "Anyone can join": "誰でも参加できます",
"Apply to join": "参加を申し込む", "Apply to join": "参加を申し込む",
"Invitation only": "招待のみ", "Invitation only": "招待のみ",
"Joining": "接合" "Joining": "接合",
"Status of the event": "イベントのステータス",
"Tentative": "暫定の",
"Confirmed": "確認済み",
"Cancelled": "キャンセル"
} }

View File

@ -264,5 +264,9 @@
"Anyone can join": "Anyone can join", "Anyone can join": "Anyone can join",
"Apply to join": "Apply to join", "Apply to join": "Apply to join",
"Invitation only": "Invitation only", "Invitation only": "Invitation only",
"Joining": "Joining" "Joining": "Joining",
"Status of the event": "Status of the event",
"Tentative": "Tentative",
"Confirmed": "Confirmed",
"Cancelled": "Cancelled"
} }

View File

@ -268,5 +268,9 @@
"Anyone can join": "Qualquer um pode participar", "Anyone can join": "Qualquer um pode participar",
"Apply to join": "Aplicar para participar", "Apply to join": "Aplicar para participar",
"Invitation only": "Somente para convidados", "Invitation only": "Somente para convidados",
"Joining": "Juntando" "Joining": "Juntando",
"Status of the event": "Status do evento",
"Tentative": "Provisório",
"Confirmed": "Confirmada",
"Cancelled": "Cancelada"
} }

View File

@ -268,5 +268,9 @@
"Anyone can join": "Каждый может присоединиться", "Anyone can join": "Каждый может присоединиться",
"Apply to join": "Подать заявку на присоединение", "Apply to join": "Подать заявку на присоединение",
"Invitation only": "Только приглашение", "Invitation only": "Только приглашение",
"Joining": "Присоединение" "Joining": "Присоединение",
"Status of the event": "Статус мероприятия",
"Tentative": "Предварительно",
"Confirmed": "Подтверждено",
"Cancelled": "Отменено"
} }

View File

@ -268,5 +268,9 @@
"Anyone can join": "任何人都可以加入", "Anyone can join": "任何人都可以加入",
"Apply to join": "申请加入", "Apply to join": "申请加入",
"Invitation only": "仅邀请", "Invitation only": "仅邀请",
"Joining": "加盟" "Joining": "加盟",
"Status of the event": "活动状态",
"Tentative": "暂定",
"Confirmed": "已确认",
"Cancelled": "取消"
} }

View File

@ -2037,9 +2037,26 @@ def htmlNewPost(mediaInstance: bool, translate: {},
dateAndLocation = '<div class="container">\n' dateAndLocation = '<div class="container">\n'
if endpoint == 'newevent': if endpoint == 'newevent':
# event status
dateAndLocation += '<label class="labels">' + \
translate['Status of the event'] + ':</label><br>\n'
dateAndLocation += '<input type="radio" id="tentative" ' + \
'name="eventStatus" value="tentative" checked>\n'
dateAndLocation += '<label class="labels" for="tentative">' + \
translate['Tentative'] + '</label><br>\n'
dateAndLocation += '<input type="radio" id="confirmed" ' + \
'name="eventStatus" value="confirmed">\n'
dateAndLocation += '<label class="labels" for="confirmed">' + \
translate['Confirmed'] + '</label><br>\n'
dateAndLocation += '<input type="radio" id="cancelled" ' + \
'name="eventStatus" value="cancelled">\n'
dateAndLocation += '<label class="labels" for="cancelled">' + \
translate['Cancelled'] + '</label><br>\n'
dateAndLocation += '</div>\n'
dateAndLocation += '<div class="container">\n'
# event joining options # event joining options
dateAndLocation += '<label class="labels">' + \ dateAndLocation += '<label class="labels">' + \
translate['Joining'] + '</label><br>\n' translate['Joining'] + ':</label><br>\n'
dateAndLocation += '<input type="radio" id="free" ' + \ dateAndLocation += '<input type="radio" id="free" ' + \
'name="joinMode" value="free" checked>\n' 'name="joinMode" value="free" checked>\n'
dateAndLocation += '<label class="labels" for="free">' + \ dateAndLocation += '<label class="labels" for="free">' + \