create event

This commit is contained in:
2025-10-03 14:09:43 +03:00
parent 2056558ea8
commit 7734adda8b
18 changed files with 399 additions and 88 deletions

View File

@@ -0,0 +1,10 @@
from pathlib import Path
path = Path(__file__).parent
with open(path / "event.jinja2", encoding="utf-8") as f:
event_template = f.read()
with open(path / "profile.jinja2", encoding="utf-8") as f:
profile_template = f.read()
__all__ = ("event_template", "profile_template")

View File

@@ -0,0 +1,5 @@
<b>{{ event_obj["title"] }}</b>
{{ event_obj["description"] }}
{{ event_obj["start_date"].strftime("%d.%m.%Y") }} - {{ event_obj["end_date"].strftime("%d.%m.%Y") }}

View File

@@ -0,0 +1,4 @@
<b>Профиль</b>
<b>Имя:</b> {{ user.fullname}}
<b>Телефон:</b> {% if user.phone %}+{% endif %}{{user.phone}}