feat(hunt): add public flag to hunts and implement hunt creation page
- Add 'public' boolean column to Hunt model with default true - Update hunt admin UI to toggle 'public' flag - Implement new hunt creation page with form supporting all hunt properties - Add sidebar navigation item for hunt creation for authorized users - Adjust home API to filter hunts by public flag only
This commit is contained in:
+29
-7
@@ -36,11 +36,11 @@
|
||||
},
|
||||
"enums": {
|
||||
"text_type": {
|
||||
"CHAR": "Ein Zeichen",
|
||||
"INTEGER": "Ganzzahl",
|
||||
"NUMBER": "Zahl",
|
||||
"TEXT": "Freitext",
|
||||
"WORD": "Ein Wort",
|
||||
"CHAR": "Ein Zeichen"
|
||||
"WORD": "Ein Wort"
|
||||
},
|
||||
"user_role": {
|
||||
"ADMIN": "Admin",
|
||||
@@ -80,6 +80,28 @@
|
||||
"refresh": "Aktualisieren",
|
||||
"update_btn": "Updaten"
|
||||
},
|
||||
"create_hunt": {
|
||||
"allow_join": "Beitreten erlauben",
|
||||
"create_btn": "Hunt erstellen",
|
||||
"de": "Deutsch",
|
||||
"description_de": "Beschreibung (Deutsch)",
|
||||
"description_en": "Beschreibung (Englisch)",
|
||||
"en": "Englisch",
|
||||
"end": "Ende",
|
||||
"has_end": "Hat ein Enddatum?",
|
||||
"has_start": "Hat ein Startdatum?",
|
||||
"name_de": "Name (Deutsch)",
|
||||
"name_en": "Name (Englisch)",
|
||||
"not_allowed": "Du benötigst die Creator- oder Admin-Rolle, um Hunts zu erstellen.",
|
||||
"public": "Öffentlich (auf der Startseite sichtbar)",
|
||||
"reveal_answers": "Antworten aufdecken",
|
||||
"reveal_quests": "Quests aufdecken",
|
||||
"sidebar": "Hunt erstellen",
|
||||
"start": "Start",
|
||||
"success": "Hunt erfolgreich erstellt!",
|
||||
"title": "Neuen Hunt erstellen",
|
||||
"virtual": "Virtueller Hunt"
|
||||
},
|
||||
"diashow": {
|
||||
"head": "Diashow"
|
||||
},
|
||||
@@ -129,11 +151,11 @@
|
||||
"title": "Impressum"
|
||||
},
|
||||
"pictures": {
|
||||
"head": "Bilderwand",
|
||||
"select_team": "Wähle ein Team",
|
||||
"filter_quest": "Filtere Bilder nach Quests",
|
||||
"filter_team": "Filtere Bilder nach Teams",
|
||||
"head": "Bilderwand",
|
||||
"select_quest": "Wähle eine Quest",
|
||||
"filter_quest": "Filtere Bilder nach Quests"
|
||||
"select_team": "Wähle ein Team"
|
||||
},
|
||||
"profile": {
|
||||
"admins_and_creators": "Admins & Ersteller",
|
||||
@@ -144,8 +166,8 @@
|
||||
"promote": "Befördern",
|
||||
"promote_user": "Benutzer befördern",
|
||||
"role": "Rolle",
|
||||
"role_changed": "Rolle aktualisiert!",
|
||||
"role_change_error": "Rolle konnte nicht geändert werden!",
|
||||
"role_changed": "Rolle aktualisiert!",
|
||||
"role_confirm": "Möchtest du die Rolle von {name} zu {role} ändern?",
|
||||
"search_user": "Benutzer per E-Mail suchen...",
|
||||
"uploaded_pictures": "Hochgeladene Bilder",
|
||||
@@ -273,4 +295,4 @@
|
||||
"uploadFile": "Datei hochladen",
|
||||
"voteRating": "vote rating {value} of {max}"
|
||||
}
|
||||
}
|
||||
}
|
||||
+29
-7
@@ -36,11 +36,11 @@
|
||||
},
|
||||
"enums": {
|
||||
"text_type": {
|
||||
"CHAR": "One character",
|
||||
"INTEGER": "Whole number",
|
||||
"NUMBER": "Number",
|
||||
"TEXT": "Free text",
|
||||
"WORD": "One word",
|
||||
"CHAR": "One character"
|
||||
"WORD": "One word"
|
||||
},
|
||||
"user_role": {
|
||||
"ADMIN": "Admin",
|
||||
@@ -80,6 +80,28 @@
|
||||
"refresh": "Refresh",
|
||||
"update_btn": "Update"
|
||||
},
|
||||
"create_hunt": {
|
||||
"allow_join": "Allow joining",
|
||||
"create_btn": "Create Hunt",
|
||||
"de": "German",
|
||||
"description_de": "Description (German)",
|
||||
"description_en": "Description (English)",
|
||||
"en": "English",
|
||||
"end": "End",
|
||||
"has_end": "Has end date?",
|
||||
"has_start": "Has start date?",
|
||||
"name_de": "Name (German)",
|
||||
"name_en": "Name (English)",
|
||||
"not_allowed": "You need the Creator or Admin role to create hunts.",
|
||||
"public": "Public (visible on home page)",
|
||||
"reveal_answers": "Reveal answers",
|
||||
"reveal_quests": "Reveal quests",
|
||||
"sidebar": "Create Hunt",
|
||||
"start": "Start",
|
||||
"success": "Hunt created successfully!",
|
||||
"title": "Create a new Hunt",
|
||||
"virtual": "Virtual hunt"
|
||||
},
|
||||
"diashow": {
|
||||
"head": "Diashow"
|
||||
},
|
||||
@@ -129,11 +151,11 @@
|
||||
"title": "Imprint"
|
||||
},
|
||||
"pictures": {
|
||||
"head": "Picture wall",
|
||||
"select_team": "Select a team",
|
||||
"filter_quest": "Filter pictures by quests",
|
||||
"filter_team": "Filter pictures by teams",
|
||||
"head": "Picture wall",
|
||||
"select_quest": "Select a quest",
|
||||
"filter_quest": "Filter pictures by quests"
|
||||
"select_team": "Select a team"
|
||||
},
|
||||
"profile": {
|
||||
"admins_and_creators": "Admins & Creators",
|
||||
@@ -144,8 +166,8 @@
|
||||
"promote": "Promote",
|
||||
"promote_user": "Promote a user",
|
||||
"role": "Role",
|
||||
"role_changed": "Role updated!",
|
||||
"role_change_error": "Could not change role!",
|
||||
"role_changed": "Role updated!",
|
||||
"role_confirm": "Do you want to change the role of {name} to {role}?",
|
||||
"search_user": "Search user by email...",
|
||||
"uploaded_pictures": "Uploaded pictures",
|
||||
@@ -273,4 +295,4 @@
|
||||
"uploadFile": "Upload file",
|
||||
"voteRating": "vote rating {value} of {max}"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user