add contacts rourtes

This commit is contained in:
CHIEFSOFT\ameye
2025-09-14 06:37:41 -04:00
parent f3d81e662e
commit 52a0a72702
4 changed files with 84 additions and 38 deletions
+33 -29
View File
@@ -510,41 +510,19 @@ class MyProductsService(BaseService):
settings_items = {}
if product_id == "A000001":
settings_items = {
"url_config_tab": {"title": 'URL Configuration', "controls": 'url-config', "active": '',
"custom": True, "data": {}, "list_order": 0},
"settings": {"title": 'Settings', "controls": 'settings', "active": 'active show',
"custom": False, "data": settingsFields, "list_order": 0},
"custom": False, "data": settingsFields, "list_order": 1},
"home_tab": {"title": 'Home Page', "controls": 'home', "active": '', "custom": False,
"data": homeFields, "list_order": 1},
"data": homeFields, "list_order": 2},
"footer_tab": {"title": 'Footer', "controls": 'footer', "active": '', "custom": False,
"data": footerFields, "list_order": 2},
"data": footerFields, "list_order": 3},
"about_tab": {"title": 'About Page', "controls": 'about', "active": '', "custom": False,
"data": aboutFields, "list_order": 3},
"data": aboutFields, "list_order": 4},
"contact_tab": {"title": 'Contact Page', "controls": 'contact', "active": '',
"custom": False,
"data": contactFields, "list_order": 4},
"social_tab": {"title": 'Socials', "controls": 'social', "active": '', "custom": False,
"data": socialFields, "list_order": 5},
"template_tab": {"title": 'Template', "controls": 'template', "active": '', "custom": True,
"data": templateData, "list_order": 6},
"color_scheme_tab": {"title": 'Color Scheme', "controls": 'color-scheme', "active": '',
"custom": True, "data": {}, "list_order": 7}
}
if product_id == "A000002":
settings_items = {
"settings": {"title": 'Settings', "controls": 'settings', "active": 'active show',
"custom": False, "data": settingsFields, "list_order": 0},
"home_tab": {"title": 'Home Page', "controls": 'home', "active": '', "custom": False,
"data": homeFields, "list_order": 1},
"footer_tab": {"title": 'Footer', "controls": 'footer', "active": '', "custom": False,
"data": footerFields, "list_order": 2},
"about_tab": {"title": 'About Page', "controls": 'about', "active": '', "custom": False,
"data": aboutFields, "list_order": 3},
"contact_tab": {"title": 'Contact Page', "controls": 'contact', "active": '',
"custom": False,
"data": contactFields, "list_order": 4},
"testimonial_tab": {"title": 'Testimonials', "controls": 'testimonial', "active": '',
"custom": False,
"data": testimonialFields, "list_order": 5},
"data": contactFields, "list_order": 5},
"social_tab": {"title": 'Socials', "controls": 'social', "active": '', "custom": False,
"data": socialFields, "list_order": 6},
"template_tab": {"title": 'Template', "controls": 'template', "active": '', "custom": True,
@@ -552,6 +530,32 @@ class MyProductsService(BaseService):
"color_scheme_tab": {"title": 'Color Scheme', "controls": 'color-scheme', "active": '',
"custom": True, "data": {}, "list_order": 8}
}
if product_id == "A000002":
settings_items = {
"url_config_tab": {"title": 'URL Configuration', "controls": 'url-config', "active": '',
"custom": True, "data": {}, "list_order": 0},
"settings": {"title": 'Settings', "controls": 'settings', "active": 'active show',
"custom": False, "data": settingsFields, "list_order": 1},
"home_tab": {"title": 'Home Page', "controls": 'home', "active": '', "custom": False,
"data": homeFields, "list_order": 2},
"footer_tab": {"title": 'Footer', "controls": 'footer', "active": '', "custom": False,
"data": footerFields, "list_order": 3},
"about_tab": {"title": 'About Page', "controls": 'about', "active": '', "custom": False,
"data": aboutFields, "list_order": 4},
"contact_tab": {"title": 'Contact Page', "controls": 'contact', "active": '',
"custom": False,
"data": contactFields, "list_order": 5},
"testimonial_tab": {"title": 'Testimonials', "controls": 'testimonial', "active": '',
"custom": False,
"data": testimonialFields, "list_order": 6},
"social_tab": {"title": 'Socials', "controls": 'social', "active": '', "custom": False,
"data": socialFields, "list_order": 7},
"template_tab": {"title": 'Template', "controls": 'template', "active": '', "custom": True,
"data": templateData, "list_order": 8},
"color_scheme_tab": {"title": 'Color Scheme', "controls": 'color-scheme', "active": '',
"custom": True, "data": {}, "list_order": 8}
}
#
# Simulate processing