From 0d0337a6aa5c3a65d8180cb9ed27c57042f0fd02 Mon Sep 17 00:00:00 2001 From: didier amyot Date: Sat, 1 Apr 2023 14:27:38 -0400 Subject: [PATCH] Irvin Blais rock! --- resources/templates/accounts.html | 26 +++++++++++++- resources/templates/components/navbar.html | 1 + .../partials/actions/create_account.html | 5 ++- .../partials/actions/create_security.html | 2 ++ resources/templates/securities.html | 34 +++++++++++++++++++ src/db/_external_id.rs | 29 +++++++++++++--- src/db/_users.rs | 2 +- src/db/mod.rs | 2 +- src/event_processor.rs | 13 +++++-- src/events.rs | 9 +++++ src/services/_accounts.rs | 10 ++---- src/services/_authentication.rs | 26 +++++++++++--- src/services/_users.rs | 7 +++- src/webui/index_views.rs | 16 ++++----- src/webui/mod.rs | 1 + src/webui/services.rs | 9 +++-- src/webui/views.rs | 22 ++++++++++-- 17 files changed, 175 insertions(+), 39 deletions(-) create mode 100644 resources/templates/securities.html diff --git a/resources/templates/accounts.html b/resources/templates/accounts.html index 92f2d20..5dbabf9 100644 --- a/resources/templates/accounts.html +++ b/resources/templates/accounts.html @@ -4,7 +4,31 @@ {% block body %} -
bob le chef
+ + + + + + + + + + + + + {% for account in accounts %} + + + + + + + + + {% endfor %} + + +
idAmountAccount TypeLast UpdateSecurity
{{ account.id }}{{ account.amount }}{{ account.account_type }}{{ account.last_update }}{{ account.security_symbol }}
{% endblock %} diff --git a/resources/templates/components/navbar.html b/resources/templates/components/navbar.html index 97e6c3e..065bf28 100644 --- a/resources/templates/components/navbar.html +++ b/resources/templates/components/navbar.html @@ -7,6 +7,7 @@