26 lines
567 B
Python
26 lines
567 B
Python
from dash import dcc, html, register_page
|
|
|
|
from src.utils.data import DEPARTEMENTS
|
|
|
|
NAME = "Départements"
|
|
|
|
register_page(
|
|
__name__,
|
|
path="/departements",
|
|
title="Marchés par département | decp.info",
|
|
name="Départements",
|
|
description="Tous les marchés publics, classés par départements",
|
|
)
|
|
|
|
layout = html.Div(
|
|
[
|
|
html.H3("Départements"),
|
|
html.Ul(
|
|
[
|
|
html.Li(dcc.Link(d["departement"], href=f"/departements/{k}"))
|
|
for k, d in DEPARTEMENTS.items()
|
|
]
|
|
),
|
|
]
|
|
)
|