feat: initial commit - Band Management application

This commit is contained in:
2026-01-06 03:11:46 +01:00
commit 34e12e00b3
24543 changed files with 3991790 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
from web_project.template_helpers.theme import TemplateHelper
"""
This is an entry and Bootstrap class for the theme level.
The init() function will be called in web_project/__init__.py
"""
class TemplateBootstrapLayoutBlank:
def init(context):
context.update(
{
"layout": "blank",
"content_layout": "wide",
"display_customizer": False,
}
)
# map_context according to updated context values
TemplateHelper.map_context(context)
return context

View File

@@ -0,0 +1,23 @@
from web_project.template_helpers.theme import TemplateHelper
"""
This is an entry and Bootstrap class for the theme level.
The init() function will be called in web_project/__init__.py
"""
class TemplateBootstrapLayoutFront:
def init(context):
context.update(
{
"layout": "front",
"is_front": True,
"display_customizer": True,
"content_layout": "wide",
"navbar_type": "fixed",
}
)
# map_context according to updated context values
TemplateHelper.map_context(context)
return context

View File

@@ -0,0 +1,42 @@
from django.conf import settings
import json
from web_project.template_helpers.theme import TemplateHelper
menu_file_path = settings.BASE_DIR / "templates" / "layout" / "partials" / "menu" / "horizontal" / "json" / "horizontal_menu.json"
"""
This is an entry and Bootstrap class for the theme level.
The init() function will be called in web_project/__init__.py
"""
class TemplateBootstrapLayoutHorizontal:
def init(context):
context.update(
{
"layout": "horizontal",
"is_navbar": True,
"navbar_full": True,
"is_menu": True,
"menu_horizontal": True,
"is_footer": True,
"navbar_detached": False,
}
)
# map_context according to updated context values
TemplateHelper.map_context(context)
# Init menu data and update context
TemplateBootstrapLayoutHorizontal.init_menu_data(context)
return context
def init_menu_data(context):
# Load the menu data from the JSON file
menu_data = json.load(menu_file_path.open()) if menu_file_path.exists() else []
# Updated context with menu_data
context.update({"menu_data": menu_data})

View File

@@ -0,0 +1,40 @@
from django.conf import settings
import json
from web_project.template_helpers.theme import TemplateHelper
menu_file_path = settings.BASE_DIR / "templates" / "layout" / "partials" / "menu" / "vertical" / "json" / "vertical_menu.json"
"""
This is an entry and Bootstrap class for the theme level.
The init() function will be called in web_project/__init__.py
"""
class TemplateBootstrapLayoutVertical:
def init(context):
context.update(
{
"layout": "vertical",
"content_navbar": True,
"is_navbar": True,
"is_menu": True,
"is_footer": True,
"navbar_detached": True,
}
)
# map_context according to updated context values
TemplateHelper.map_context(context)
TemplateBootstrapLayoutVertical.init_menu_data(context)
return context
def init_menu_data(context):
# Load the menu data from the JSON file
menu_data = json.load(menu_file_path.open()) if menu_file_path.exists() else []
# Updated context with menu_data
context.update({"menu_data": menu_data})

View File

@@ -0,0 +1,21 @@
from web_project.template_helpers.theme import TemplateHelper
"""
This is an entry and Bootstrap class for the theme level.
The init() function will be called in web_project/__init__.py
"""
class TemplateBootstrapSystem:
def init(context):
context.update(
{
"layout": "blank",
"content_layout": "wide",
"display_customizer": False,
}
)
# map_context according to updated context values
TemplateHelper.map_context(context)
return context