From f1546a245827efb2dc4886a96929d37cd3bd8fe5 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 22 Aug 2020 22:04:50 +0100 Subject: [PATCH] Maximum attendees --- daemon.py | 2 +- epicyon-profile.css | 20 ++++++++++++++++++++ translations/ar.json | 3 ++- translations/ca.json | 3 ++- translations/cy.json | 3 ++- translations/de.json | 3 ++- translations/en.json | 3 ++- translations/es.json | 3 ++- translations/fr.json | 3 ++- translations/ga.json | 3 ++- translations/hi.json | 3 ++- translations/it.json | 3 ++- translations/ja.json | 3 ++- translations/oc.json | 3 ++- translations/pt.json | 3 ++- translations/ru.json | 3 ++- translations/zh.json | 3 ++- webinterface.py | 8 ++++++++ 18 files changed, 59 insertions(+), 16 deletions(-) diff --git a/daemon.py b/daemon.py index 48ac60576..02d455d77 100644 --- a/daemon.py +++ b/daemon.py @@ -5743,7 +5743,7 @@ class PubServer(BaseHTTPRequestHandler): maximumAttendeeCapacity = 999999 if fields.get('maximumAttendeeCapacity'): maximumAttendeeCapacity = \ - fields['maximumAttendeeCapacity'] + int(fields['maximumAttendeeCapacity']) messageJson = \ createEventPost(self.server.baseDir, diff --git a/epicyon-profile.css b/epicyon-profile.css index 2a36b38dc..d849aaea2 100644 --- a/epicyon-profile.css +++ b/epicyon-profile.css @@ -1279,6 +1279,16 @@ aside .toggle-inside li { padding: 10px; margin: 20px 30px; } + input[type=number] + { + -ms-transform: scale(2); + -moz-transform: scale(2); + -webkit-transform: scale(2); + -o-transform: scale(2); + transform: scale(2); + padding: 10px; + margin: 20px 30px; + } } @media screen and (min-width: 2200px) { @@ -1709,4 +1719,14 @@ aside .toggle-inside li { padding: 20px; margin: 30px 40px; } + input[type=number] + { + -ms-transform: scale(4); + -moz-transform: scale(4); + -webkit-transform: scale(4); + -o-transform: scale(4); + transform: scale(4); + padding: 20px; + margin: 30px 40px; + } } diff --git a/translations/ar.json b/translations/ar.json index e694f1950..38afd2b62 100644 --- a/translations/ar.json +++ b/translations/ar.json @@ -274,5 +274,6 @@ "Confirmed": "تم تأكيد", "Cancelled": "ألغيت", "Event banner image description": "وصف صورة شعار الحدث", - "Banner image": "صورة بانر" + "Banner image": "صورة بانر", + "Maximum attendees": "الحد الأقصى للحضور" } diff --git a/translations/ca.json b/translations/ca.json index 9012777de..aea20a991 100644 --- a/translations/ca.json +++ b/translations/ca.json @@ -274,5 +274,6 @@ "Confirmed": "Confirmat", "Cancelled": "Cancel·lat", "Event banner image description": "Descripció de la imatge del banner de l’esdeveniment", - "Banner image": "Imatge de pancarta" + "Banner image": "Imatge de pancarta", + "Maximum attendees": "Màxim d’assistents" } diff --git a/translations/cy.json b/translations/cy.json index e80b5f898..e84bd97ed 100644 --- a/translations/cy.json +++ b/translations/cy.json @@ -274,5 +274,6 @@ "Confirmed": "Cadarnhawyd", "Cancelled": "Wedi'i ganslo", "Event banner image description": "Disgrifiad delwedd baner y digwyddiad", - "Banner image": "Delwedd baner" + "Banner image": "Delwedd baner", + "Maximum attendees": "Uchafswm mynychwyr" } diff --git a/translations/de.json b/translations/de.json index f11b3d48b..a3e57336b 100644 --- a/translations/de.json +++ b/translations/de.json @@ -274,5 +274,6 @@ "Confirmed": "Bestätigt", "Cancelled": "Abgesagt", "Event banner image description": "Beschreibung des Ereignisbannerbildes", - "Banner image": "Bannerbild" + "Banner image": "Bannerbild", + "Maximum attendees": "Maximale Teilnehmerzahl" } diff --git a/translations/en.json b/translations/en.json index 4b4c6e70a..e920d2d31 100644 --- a/translations/en.json +++ b/translations/en.json @@ -274,5 +274,6 @@ "Confirmed": "Confirmed", "Cancelled": "Cancelled", "Event banner image description": "Event banner image description", - "Banner image": "Banner image" + "Banner image": "Banner image", + "Maximum attendees": "Maximum attendees" } diff --git a/translations/es.json b/translations/es.json index 23565aa64..9e3096dc0 100644 --- a/translations/es.json +++ b/translations/es.json @@ -274,5 +274,6 @@ "Confirmed": "Confirmada", "Cancelled": "Cancelada", "Event banner image description": "Descripción de la imagen del banner del evento", - "Banner image": "Imagen de banner" + "Banner image": "Imagen de banner", + "Maximum attendees": "Asistentes máximos" } diff --git a/translations/fr.json b/translations/fr.json index 7627a4d7c..4bccf4389 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -274,5 +274,6 @@ "Confirmed": "Confirmé", "Cancelled": "Annulé", "Event banner image description": "Description de l'image de la bannière de l'événement", - "Banner image": "Image de bannière" + "Banner image": "Image de bannière", + "Maximum attendees": "Nombre maximum de participants" } diff --git a/translations/ga.json b/translations/ga.json index b13b1a323..35d6463fb 100644 --- a/translations/ga.json +++ b/translations/ga.json @@ -274,5 +274,6 @@ "Confirmed": "Deimhnithe", "Cancelled": "Cealaithe", "Event banner image description": "Tuairisc íomhá meirge na hócáide", - "Banner image": "Íomhá meirge" + "Banner image": "Íomhá meirge", + "Maximum attendees": "Uasmhéid freastail" } diff --git a/translations/hi.json b/translations/hi.json index 1a96b7d8d..4e1be87b8 100644 --- a/translations/hi.json +++ b/translations/hi.json @@ -274,5 +274,6 @@ "Confirmed": "की पुष्टि", "Cancelled": "रद्द", "Event banner image description": "घटना बैनर छवि विवरण", - "Banner image": "बैनर की छवि" + "Banner image": "बैनर की छवि", + "Maximum attendees": "अधिकतम उपस्थित" } diff --git a/translations/it.json b/translations/it.json index 86193b7e8..b73d94cc5 100644 --- a/translations/it.json +++ b/translations/it.json @@ -274,5 +274,6 @@ "Confirmed": "Confermata", "Cancelled": "Annullata", "Event banner image description": "Descrizione dell'immagine del banner dell'evento", - "Banner image": "Immagine banner" + "Banner image": "Immagine banner", + "Maximum attendees": "Numero massimo di partecipanti" } diff --git a/translations/ja.json b/translations/ja.json index 084d91a0d..01c8dc3b3 100644 --- a/translations/ja.json +++ b/translations/ja.json @@ -274,5 +274,6 @@ "Confirmed": "確認済み", "Cancelled": "キャンセル", "Event banner image description": "イベントバナー画像の説明", - "Banner image": "バナー画像" + "Banner image": "バナー画像", + "Maximum attendees": "最大参加者" } diff --git a/translations/oc.json b/translations/oc.json index 73237fed1..96371beca 100644 --- a/translations/oc.json +++ b/translations/oc.json @@ -270,5 +270,6 @@ "Confirmed": "Confirmed", "Cancelled": "Cancelled", "Event banner image description": "Event banner image description", - "Banner image": "Banner image" + "Banner image": "Banner image", + "Maximum attendees": "Maximum attendees" } diff --git a/translations/pt.json b/translations/pt.json index 44018ee11..cac28c6cc 100644 --- a/translations/pt.json +++ b/translations/pt.json @@ -274,5 +274,6 @@ "Confirmed": "Confirmada", "Cancelled": "Cancelada", "Event banner image description": "Descrição da imagem do banner do evento", - "Banner image": "Imagem de banner" + "Banner image": "Imagem de banner", + "Maximum attendees": "Máximo de participantes" } diff --git a/translations/ru.json b/translations/ru.json index bfbb8f6cf..2be8bfc5f 100644 --- a/translations/ru.json +++ b/translations/ru.json @@ -274,5 +274,6 @@ "Confirmed": "Подтверждено", "Cancelled": "Отменено", "Event banner image description": "Описание изображения баннера мероприятия", - "Banner image": "Изображение баннера" + "Banner image": "Изображение баннера", + "Maximum attendees": "Максимальное количество участников" } diff --git a/translations/zh.json b/translations/zh.json index bfeeb057f..0fb87c977 100644 --- a/translations/zh.json +++ b/translations/zh.json @@ -274,5 +274,6 @@ "Confirmed": "已确认", "Cancelled": "取消", "Event banner image description": "活动横幅图片说明", - "Banner image": "横幅图片" + "Banner image": "横幅图片", + "Maximum attendees": "参加人数上限" } diff --git a/webinterface.py b/webinterface.py index a891ab36a..906b36e4e 100644 --- a/webinterface.py +++ b/webinterface.py @@ -2069,6 +2069,14 @@ def htmlNewPost(mediaInstance: bool, translate: {}, translate['Cancelled'] + '
\n' dateAndLocation += '\n' dateAndLocation += '
\n' + # maximum attendees + dateAndLocation += '\n' + dateAndLocation += '\n' + dateAndLocation += '
\n' + dateAndLocation += '
\n' # event joining options dateAndLocation += '
\n'