From 027dc365be34b04292cca0579bce385530b8d7de Mon Sep 17 00:00:00 2001 From: Santiago Lamora Date: Thu, 12 Dec 2019 12:11:07 +0100 Subject: [PATCH] Code domain configuration details modal. --- musician/static/musician/css/default.css | 30 +++++++++++++++ musician/templates/musician/base.html | 1 + musician/templates/musician/dashboard.html | 45 +++++++++++++++++++++- 3 files changed, 75 insertions(+), 1 deletion(-) diff --git a/musician/static/musician/css/default.css b/musician/static/musician/css/default.css index 1d07ea0..b2fb536 100644 --- a/musician/static/musician/css/default.css +++ b/musician/static/musician/css/default.css @@ -220,3 +220,33 @@ h1.service-name { content: "\f0f3"; font-weight: 900; } + +#configDetailsModal .modal-header { + border-bottom: 0; + text-align: center; +} + +#configDetailsModal .modal-header .modal-title { + width: 100%; +} + +#configDetailsModal .modal-body { + padding-left: 4rem; + padding-right: 4rem; +} + +#configDetailsModal .modal-body label { + width: 50%; + text-align: right; + padding-right: 4%; +} + +#configDetailsModal .modal-body span { + display: inline-block; + width: 45%; +} + +#configDetailsModal .modal-footer { + border-top: 0; + justify-content: center; +} diff --git a/musician/templates/musician/base.html b/musician/templates/musician/base.html index e2c5537..9dc1ffc 100644 --- a/musician/templates/musician/base.html +++ b/musician/templates/musician/base.html @@ -93,6 +93,7 @@ + {% block extrascript %}{% endblock %} {% endblock %} diff --git a/musician/templates/musician/dashboard.html b/musician/templates/musician/dashboard.html index 03cb6c9..c6cec5a 100644 --- a/musician/templates/musician/dashboard.html +++ b/musician/templates/musician/dashboard.html @@ -39,7 +39,10 @@ {{ domain.name }}
- {% trans "view configuration" %} +
{% trans "Expiration date" %}: {{ domain.expiration_date|date:"SHORT_DATE_FORMAT" }} @@ -84,4 +87,44 @@ {% endfor %} + + +{% endblock %} +{% block extrascript %} + {% endblock %}