simplify the crm example a bit more

This commit is contained in:
Evan Almloff committed 2024-01-23 18:46:24 -06:00
1 parent fc6912d4c0
commit f2e48f10e9
4 files changed
+9 -40

No files matched your search

+1 -1
View File
@@ -51,7 +51,7 @@ fn ClientList() -> Element {
h2 { "List of Clients" }
Link { to: Route::ClientAdd, class: "pure-button pure-button-primary", "Add Client" }
Link { to: Route::Settings, class: "pure-button", "Settings" }
for client in CLIENTS.read().iter() {
for client in CLIENTS.iter() {
div { class: "client", style: "margin-bottom: 50px",
p { "Name: {client.first_name} {client.last_name}" }
p { "Description: {client.description}" }