- {% include 'window-content/drilldown.html' %}
-
-
-
-
\ No newline at end of file
+{% block modal_content %}
+ {% include 'window-content/drilldown.html' %}
+{% endblock %}
\ No newline at end of file
diff --git a/core/templates/modals/context_table.html b/core/templates/partials/context_table.html
similarity index 100%
rename from core/templates/modals/context_table.html
rename to core/templates/partials/context_table.html
diff --git a/core/templates/widgets/drilldown.html b/core/templates/widgets/drilldown.html
index b3bb94a..1b460c1 100644
--- a/core/templates/widgets/drilldown.html
+++ b/core/templates/widgets/drilldown.html
@@ -1,28 +1,19 @@
-
-
-
-
-
-
-
- Drilldown
-
-
-
- {% include 'window-content/drilldown.html' %}
-
-
-
-
-
-
+{% extends 'wm/widget.html' %}
-
\ No newline at end of file
+{% endblock %}
\ No newline at end of file
diff --git a/core/templates/widgets/table_results.html b/core/templates/widgets/table_results.html
index 69d0711..e7efc1e 100644
--- a/core/templates/widgets/table_results.html
+++ b/core/templates/widgets/table_results.html
@@ -1,58 +1,54 @@
+{% extends 'wm/widget.html' %}
{% load static %}
-
-
-
-
-
-
-
- Results
-
-
-
-
-
-
-
-
- {{ table.data|length }} hits in {{ took }}ms
- {% if exemption is not None %}
-
-
-
- {% else %}
- {% if redacted is not None %}
-
-
-
- {% endif %}
- {% endif %}
- {% if delay is not None %}
-
-
-
- {% endif %}
- {% if randomised is True %}
-
-
-
- {% endif %}
-
- {% include 'ui/drilldown/table_results_partial.html' %}
- {% include 'ui/drilldown/sentiment_partial.html' %}
-
-
-
-
-
-
-
+{% block widget_options %}
+ gs-w="10" gs-h="30" gs-y="10" gs-x="1"
+{% endblock %}
-
+
+
+
+
+ {{ table.data|length }} hits in {{ took }}ms
+ {% if exemption is not None %}
+
+
+
+ {% else %}
+ {% if redacted is not None %}
+
+
+
+ {% endif %}
+ {% endif %}
+ {% if delay is not None %}
+
+
+
+ {% endif %}
+ {% if randomised is True %}
+
+
+
+ {% endif %}
+
+ {% include 'ui/drilldown/table_results_partial.html' %}
+ {% include 'ui/drilldown/sentiment_partial.html' %}
+{% endblock %}
+
+
+{% block custom_script %}
grid.removeWidget("drilldown-widget-results");
- var widget_event = new Event('load-widget');
- document.dispatchEvent(widget_event);
-
+{% endblock %}
diff --git a/core/templates/windows/drilldown.html b/core/templates/windows/drilldown.html
index b8aebb9..1b8fc99 100644
--- a/core/templates/windows/drilldown.html
+++ b/core/templates/windows/drilldown.html
@@ -1,4 +1,4 @@
-{% extends 'partials/magnet.html' %}
+{% extends 'wm/magnet.html' %}
{% block heading %}
Drilldown
diff --git a/core/templates/partials/magnet.html b/core/templates/wm/magnet.html
similarity index 82%
rename from core/templates/partials/magnet.html
rename to core/templates/wm/magnet.html
index ab81349..90be2f5 100644
--- a/core/templates/partials/magnet.html
+++ b/core/templates/wm/magnet.html
@@ -1,5 +1,5 @@
- {% extends 'partials/panel.html' %}
+ {% extends 'wm/panel.html' %}
{% block heading %}
{% endblock %}
diff --git a/core/templates/wm/modal.html b/core/templates/wm/modal.html
new file mode 100644
index 0000000..c5973af
--- /dev/null
+++ b/core/templates/wm/modal.html
@@ -0,0 +1,19 @@
+{% load static %}
+
+
+{% block scripts %}
+{% endblock %}
+
+{% block styles %}
+{% endblock %}
+
+
+
+
+
+ {% block modal_content %}
+ {% endblock %}
+
+
+
+
\ No newline at end of file
diff --git a/core/templates/partials/panel.html b/core/templates/wm/panel.html
similarity index 67%
rename from core/templates/partials/panel.html
rename to core/templates/wm/panel.html
index 0fe0c75..12cf31e 100644
--- a/core/templates/partials/panel.html
+++ b/core/templates/wm/panel.html
@@ -2,9 +2,11 @@