refactor rules page
This commit is contained in:
parent
3128c62ca9
commit
5800f723be
@ -1,4 +1,4 @@
|
|||||||
from rio import Column, Component, event, TextStyle, Text
|
from rio import Column, Component, event, TextStyle, Text, Revealer
|
||||||
|
|
||||||
from src.ez_lan_manager import ConfigurationService
|
from src.ez_lan_manager import ConfigurationService
|
||||||
from src.ez_lan_manager.components.MainViewContentBox import MainViewContentBox
|
from src.ez_lan_manager.components.MainViewContentBox import MainViewContentBox
|
||||||
@ -6,7 +6,7 @@ from src.ez_lan_manager.pages import BasePage
|
|||||||
|
|
||||||
RULES: list[str] = [
|
RULES: list[str] = [
|
||||||
"Respektvolles Verhalten: Sei höflich und respektvoll gegenüber anderen Gästen und dem Team.",
|
"Respektvolles Verhalten: Sei höflich und respektvoll gegenüber anderen Gästen und dem Team.",
|
||||||
"Alkohol und Drogen: Konsumiere Alkohol in Maßen und halte dich an die eventuellen Regeln der Veranstaltung bezüglich Alkohol- und Drogenkonsum.",
|
"Alkohol und Drogen: Konsumiere Alkohol in Maßen und halte dich an die gültige Gesetzeslage.",
|
||||||
"Sitzplätze: Respektiere die zugewiesenen Plätze und ändere sie nicht ohne Genehmigung.",
|
"Sitzplätze: Respektiere die zugewiesenen Plätze und ändere sie nicht ohne Genehmigung.",
|
||||||
"Notausgänge und Sicherheitsvorschriften: Informiere dich über die Notausgänge und beachte die Sicherheitsanweisungen.",
|
"Notausgänge und Sicherheitsvorschriften: Informiere dich über die Notausgänge und beachte die Sicherheitsanweisungen.",
|
||||||
"Müllentsorgung: Benutze die vorgesehenen Mülleimer und halte den Veranstaltungsort sauber.",
|
"Müllentsorgung: Benutze die vorgesehenen Mülleimer und halte den Veranstaltungsort sauber.",
|
||||||
@ -99,90 +99,94 @@ class RulesPage(Component):
|
|||||||
margin_bottom=1,
|
margin_bottom=1,
|
||||||
align_x=0.5
|
align_x=0.5
|
||||||
),
|
),
|
||||||
Text(
|
Revealer(
|
||||||
text="§ 1 Allgemeine Bestimmungen",
|
header="§ 1 Allgemeine Bestimmungen",
|
||||||
style=TextStyle(
|
header_style=TextStyle(
|
||||||
fill=self.session.theme.background_color,
|
fill=self.session.theme.background_color,
|
||||||
font_size=1
|
font_size=1
|
||||||
),
|
),
|
||||||
|
margin=1,
|
||||||
margin_top=2,
|
margin_top=2,
|
||||||
margin_bottom=1,
|
content=Column(
|
||||||
align_x=0.5
|
*[Text(
|
||||||
|
f"{idx + 1}. {rule}",
|
||||||
|
style=TextStyle(
|
||||||
|
fill=self.session.theme.background_color,
|
||||||
|
font_size=0.8
|
||||||
|
),
|
||||||
|
margin_bottom=0.8,
|
||||||
|
margin_left=1,
|
||||||
|
margin_right=1,
|
||||||
|
wrap=True
|
||||||
|
) for idx, rule in enumerate(AGB["§1"])]
|
||||||
|
)
|
||||||
),
|
),
|
||||||
*[Text(
|
Revealer(
|
||||||
f"{idx + 1}. {rule}",
|
header="§ 2 Teilnahmevoraussetzungen",
|
||||||
style=TextStyle(
|
header_style=TextStyle(
|
||||||
fill=self.session.theme.background_color,
|
|
||||||
font_size=0.8
|
|
||||||
),
|
|
||||||
margin_bottom=0.8,
|
|
||||||
margin_left=1,
|
|
||||||
margin_right=1,
|
|
||||||
wrap=True
|
|
||||||
) for idx, rule in enumerate(AGB["§1"])],
|
|
||||||
Text(
|
|
||||||
text="§ 2 Teilnahmevoraussetzungen",
|
|
||||||
style=TextStyle(
|
|
||||||
fill=self.session.theme.background_color,
|
fill=self.session.theme.background_color,
|
||||||
font_size=1
|
font_size=1
|
||||||
),
|
),
|
||||||
margin_top=1,
|
margin=1,
|
||||||
margin_bottom=1,
|
margin_top=0,
|
||||||
align_x=0.5
|
content=Column(
|
||||||
|
*[Text(
|
||||||
|
f"{idx + 1}. {rule}",
|
||||||
|
style=TextStyle(
|
||||||
|
fill=self.session.theme.background_color,
|
||||||
|
font_size=0.8
|
||||||
|
),
|
||||||
|
margin_bottom=0.8,
|
||||||
|
margin_left=1,
|
||||||
|
margin_right=1,
|
||||||
|
wrap=True
|
||||||
|
) for idx, rule in enumerate(AGB["§2"])]
|
||||||
|
)
|
||||||
),
|
),
|
||||||
*[Text(
|
Revealer(
|
||||||
f"{idx + 1}. {rule}",
|
header="§ 3 Verhaltensregeln",
|
||||||
style=TextStyle(
|
header_style=TextStyle(
|
||||||
fill=self.session.theme.background_color,
|
|
||||||
font_size=0.8
|
|
||||||
),
|
|
||||||
margin_bottom=0.8,
|
|
||||||
margin_left=1,
|
|
||||||
margin_right=1,
|
|
||||||
wrap=True
|
|
||||||
) for idx, rule in enumerate(AGB["§2"])],
|
|
||||||
Text(
|
|
||||||
text="§ 3 Verhaltensregeln",
|
|
||||||
style=TextStyle(
|
|
||||||
fill=self.session.theme.background_color,
|
fill=self.session.theme.background_color,
|
||||||
font_size=1
|
font_size=1
|
||||||
),
|
),
|
||||||
margin_top=1,
|
margin=1,
|
||||||
margin_bottom=1,
|
margin_top=0,
|
||||||
align_x=0.5
|
content=Column(
|
||||||
|
*[Text(
|
||||||
|
f"{idx + 1}. {rule}",
|
||||||
|
style=TextStyle(
|
||||||
|
fill=self.session.theme.background_color,
|
||||||
|
font_size=0.8
|
||||||
|
),
|
||||||
|
margin_bottom=0.8,
|
||||||
|
margin_left=1,
|
||||||
|
margin_right=1,
|
||||||
|
wrap=True
|
||||||
|
) for idx, rule in enumerate(AGB["§3"])]
|
||||||
|
)
|
||||||
),
|
),
|
||||||
*[Text(
|
Revealer(
|
||||||
f"{idx + 1}. {rule}",
|
header="§ 4 Internetzugang",
|
||||||
style=TextStyle(
|
header_style=TextStyle(
|
||||||
fill=self.session.theme.background_color,
|
|
||||||
font_size=0.8
|
|
||||||
),
|
|
||||||
margin_bottom=0.8,
|
|
||||||
margin_left=1,
|
|
||||||
margin_right=1,
|
|
||||||
wrap=True
|
|
||||||
) for idx, rule in enumerate(AGB["§3"])],
|
|
||||||
Text(
|
|
||||||
text="§ 4 Internetzugang",
|
|
||||||
style=TextStyle(
|
|
||||||
fill=self.session.theme.background_color,
|
fill=self.session.theme.background_color,
|
||||||
font_size=1
|
font_size=1
|
||||||
),
|
),
|
||||||
margin_top=1,
|
margin=1,
|
||||||
margin_bottom=1,
|
margin_top=0,
|
||||||
align_x=0.5
|
content=Column(
|
||||||
),
|
*[Text(
|
||||||
*[Text(
|
f"{idx + 1}. {rule}",
|
||||||
f"{idx + 1}. {rule}",
|
style=TextStyle(
|
||||||
style=TextStyle(
|
fill=self.session.theme.background_color,
|
||||||
fill=self.session.theme.background_color,
|
font_size=0.8
|
||||||
font_size=0.8
|
),
|
||||||
),
|
margin_bottom=0.8,
|
||||||
margin_bottom=0.8,
|
margin_left=1,
|
||||||
margin_left=1,
|
margin_right=1,
|
||||||
margin_right=1,
|
wrap=True
|
||||||
wrap=True
|
) for idx, rule in enumerate(AGB["§4"])]
|
||||||
) for idx, rule in enumerate(AGB["§4"])],
|
)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
align_y=0
|
align_y=0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user