diff --git a/app/modules/prospecting/routes/api/admin.py b/app/modules/prospecting/routes/api/admin.py index f07b36ce..c56d66f6 100644 --- a/app/modules/prospecting/routes/api/admin.py +++ b/app/modules/prospecting/routes/api/admin.py @@ -20,7 +20,7 @@ from .admin_leads import router as admin_leads_router from .admin_prospects import router as admin_prospects_router from .admin_stats import router as admin_stats_router -router = APIRouter() +router = APIRouter(prefix="/prospecting") router.include_router(admin_prospects_router, tags=["prospecting-prospects"]) router.include_router(admin_enrichment_router, tags=["prospecting-enrichment"]) diff --git a/app/modules/prospecting/templates/prospecting/admin/leads.html b/app/modules/prospecting/templates/prospecting/admin/leads.html index ad2605c9..50eec61f 100644 --- a/app/modules/prospecting/templates/prospecting/admin/leads.html +++ b/app/modules/prospecting/templates/prospecting/admin/leads.html @@ -1,7 +1,7 @@ {% extends "admin/base.html" %} {% from 'shared/macros/headers.html' import page_header %} {% from 'shared/macros/alerts.html' import loading_state, error_state %} -{% from 'shared/macros/pagination.html' import pagination_controls %} +{% from 'shared/macros/pagination.html' import pagination %} {% block title %}Leads{% endblock %} @@ -119,7 +119,7 @@ -{{ pagination_controls() }} +{{ pagination() }} {% endblock %} {% block extra_scripts %} diff --git a/app/modules/prospecting/templates/prospecting/admin/prospects.html b/app/modules/prospecting/templates/prospecting/admin/prospects.html index 6b9ee75d..74027c97 100644 --- a/app/modules/prospecting/templates/prospecting/admin/prospects.html +++ b/app/modules/prospecting/templates/prospecting/admin/prospects.html @@ -1,8 +1,8 @@ {% extends "admin/base.html" %} {% from 'shared/macros/headers.html' import page_header %} {% from 'shared/macros/alerts.html' import loading_state, error_state %} -{% from 'shared/macros/tables.html' import table_header, table_empty %} -{% from 'shared/macros/pagination.html' import pagination_controls %} +{% from 'shared/macros/tables.html' import table_header, table_empty_state %} +{% from 'shared/macros/pagination.html' import pagination %} {% block title %}Prospects{% endblock %} @@ -74,6 +74,7 @@ + {{ table_empty_state(7, title='No prospects found', show_condition='prospects.length === 0') }}