diff options
Diffstat (limited to 'src/app/manage/client/list/mod.rs')
-rw-r--r-- | src/app/manage/client/list/mod.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/app/manage/client/list/mod.rs b/src/app/manage/client/list/mod.rs index 2e13be6..1c00f0a 100644 --- a/src/app/manage/client/list/mod.rs +++ b/src/app/manage/client/list/mod.rs @@ -31,11 +31,18 @@ pub struct Props { pub fn clients_list(props: &Props) -> Html { let list_items: Html = props.clients .iter() - .map(|c| html!(<list_item::ListItem key={c.id} client={c.clone()} />)) + .enumerate() + .map(|(id, c)| html!(<list_item::ListItem key={c.id} s_no={id + 1} client={c.clone()} />)) .collect(); html! { <div class={"clients-list-wrapper"}> + <div class={"clients-list-header"}> + <span>{"S. No"}</span> + <span>{"Client Name"}</span> + <span>{"GSTIN"}</span> + <span class={"options"}></span> + </div> <div class={"clients-list"}> {list_items} </div> |