From 0ccde2af1b8e0f745bcf58724bcb355b3c1f17da Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 1 Sep 2022 19:59:27 +0100 Subject: [PATCH] Make all WM elements inherit from common templates --- core/templates/modals/context.html | 226 +++++++++--------- core/templates/modals/drilldown.html | 16 +- .../{modals => partials}/context_table.html | 0 core/templates/widgets/drilldown.html | 43 ++-- core/templates/widgets/table_results.html | 104 ++++---- core/templates/windows/drilldown.html | 2 +- core/templates/{partials => wm}/magnet.html | 2 +- core/templates/wm/modal.html | 19 ++ core/templates/{partials => wm}/panel.html | 8 +- core/templates/wm/widget.html | 35 +++ core/views/ui/drilldown.py | 5 +- 11 files changed, 248 insertions(+), 212 deletions(-) rename core/templates/{modals => partials}/context_table.html (100%) rename core/templates/{partials => wm}/magnet.html (82%) create mode 100644 core/templates/wm/modal.html rename core/templates/{partials => wm}/panel.html (67%) create mode 100644 core/templates/wm/widget.html diff --git a/core/templates/modals/context.html b/core/templates/modals/context.html index 8fec36d..f005671 100644 --- a/core/templates/modals/context.html +++ b/core/templates/modals/context.html @@ -1,121 +1,121 @@ +{% extends 'wm/modal.html' %} + {% load index %} {% load static %} - - +{% endblock %} + +{% block styles %} + +{% endblock %} - #tab-content-{{ unique }} div.is-active { - display: block; - } - - -