From 85f1d433a35ba9a62a200409e0f9f9d54ef6b644 Mon Sep 17 00:00:00 2001 From: Santiago Lamora Date: Wed, 20 Nov 2019 11:04:35 +0100 Subject: [PATCH] Lay out database component. --- musician/templates/musician/databases.html | 60 ++++++++++++++-------- 1 file changed, 39 insertions(+), 21 deletions(-) diff --git a/musician/templates/musician/databases.html b/musician/templates/musician/databases.html index 96911db..c15d7b4 100644 --- a/musician/templates/musician/databases.html +++ b/musician/templates/musician/databases.html @@ -5,30 +5,48 @@

{{ service.verbose_name }}

{{ service.description }}

- - - - {% for field_name in service.fields %} - - {% endfor %} - - - - {% for resource in object_list %} - - - - - - {% endfor %} - + + +
+

Database usage

+
+
75%
+
+
+
+ Open database manager +
+ + + + {% endfor %} + {% include "musician/components/table_paginator.html" %} -
{{ field_name }}
{{ resource.name }}{{ resource.type }} +{% for database in object_list %} +
+
+
+ {{ database.name }} +
+
+ Type: {{ database.type }} +
+
+ associated to: {{ database.domain|default:"-" }} + +
+
+
+
+

Database users

+
    {% for user in resource.users %} - {{ user.username }} +
  • {{ user.username }}
  • {% empty %} - No users for this database. +
  • No users for this database.
  • {% endfor %} -
{% endblock %}