diff --git a/packages/sshecret-admin/src/sshecret_admin/frontend/templates/clients/client.html.j2 b/packages/sshecret-admin/src/sshecret_admin/frontend/templates/clients/client.html.j2 index cbc59a8..585a60f 100644 --- a/packages/sshecret-admin/src/sshecret_admin/frontend/templates/clients/client.html.j2 +++ b/packages/sshecret-admin/src/sshecret_admin/frontend/templates/clients/client.html.j2 @@ -5,33 +5,33 @@ - {{ client.name }} + {{-client.name -}} - {{ client.id }} + {{- client.id -}} - {{ client.description }} + {{- client.description -}} - {{ client.secrets|length }} + {{- client.secrets|length -}} - {{ client.policies|join(', ') }} + {{- client.policies|join(', ') -}}
-
-
- - -
- -
- - -
-
- -

- Separate multiple entries with comma. -

- - - -
- -
- - - -
-
- - -
-
+ {% include '/clients/drawer_client_create_inner.html.j2' %}
diff --git a/packages/sshecret-admin/src/sshecret_admin/frontend/templates/clients/drawer_client_create_inner.html.j2 b/packages/sshecret-admin/src/sshecret_admin/frontend/templates/clients/drawer_client_create_inner.html.j2 new file mode 100644 index 0000000..48c5a06 --- /dev/null +++ b/packages/sshecret-admin/src/sshecret_admin/frontend/templates/clients/drawer_client_create_inner.html.j2 @@ -0,0 +1,108 @@ +
+
+ + +
+ +
+ + +
+
+ +

+ Separate multiple entries with comma. +

+ + + +
+ +
+ + + +
+
+ + +
+
diff --git a/packages/sshecret-admin/src/sshecret_admin/frontend/templates/clients/drawer_client_update.html.j2 b/packages/sshecret-admin/src/sshecret_admin/frontend/templates/clients/drawer_client_update.html.j2 index 84212b7..c6fb099 100644 --- a/packages/sshecret-admin/src/sshecret_admin/frontend/templates/clients/drawer_client_update.html.j2 +++ b/packages/sshecret-admin/src/sshecret_admin/frontend/templates/clients/drawer_client_update.html.j2 @@ -150,6 +150,7 @@ hx-delete="/clients/{{ client.id }}" hx-confirm="Are you sure?" hx-target="#clientContent" + id="delete-button-{{ client.id }}" >
- +
diff --git a/packages/sshecret-admin/src/sshecret_admin/frontend/templates/dashboard.html b/packages/sshecret-admin/src/sshecret_admin/frontend/templates/dashboard.html index 8c717eb..55bcf75 100644 --- a/packages/sshecret-admin/src/sshecret_admin/frontend/templates/dashboard.html +++ b/packages/sshecret-admin/src/sshecret_admin/frontend/templates/dashboard.html @@ -1,255 +1,242 @@ {% extends "/dashboard/_base.html" %} {% block content %}
-
+
-

Welcome to Sshecret

+

Welcome to Sshecret

-
- - -
- -
- - -
-
-
-

Stats

-
-
-
Clients
-
{{ stats.clients }}
-
-
-
Secrets
-
{{ stats.secrets }}
-
-
-
Audit Events
-
{{ stats.audit_events }}
-
-
-
-
-
-

Last Login Events

- {% if last_login_events.total > 0 %} -
- - - - - - - - - - {% for entry in last_login_events.results | list %} - - +
TimestampSubsystemClient/UsernameOrigin
-

{{ entry.timestamp }} -

-
+ {% else %} +

No entries

+ {% endif %} +
+
- + {% include '/dashboard/drawer_client_create_dashboard.html.j2' %} + {% include '/dashboard/drawer_secret_create_dashboard.html.j2' %} - -{% include '/clients/drawer_client_create.html.j2' %} -{% include '/secrets/drawer_secret_create.html.j2' %} - {% endblock %} diff --git a/packages/sshecret-admin/src/sshecret_admin/frontend/templates/dashboard/navbar.html b/packages/sshecret-admin/src/sshecret_admin/frontend/templates/dashboard/navbar.html index 8497ec0..e0f081b 100644 --- a/packages/sshecret-admin/src/sshecret_admin/frontend/templates/dashboard/navbar.html +++ b/packages/sshecret-admin/src/sshecret_admin/frontend/templates/dashboard/navbar.html @@ -1,46 +1,115 @@ -