Refactor actions section in case view template for improved readability and structure

This commit is contained in:
Ross
2025-10-20 13:01:14 +01:00
parent 2a94e40a1e
commit 42b64c11ff
2 changed files with 58 additions and 57 deletions
+3 -3
View File
@@ -27,7 +27,7 @@
<summary>
<strong>Actions</strong>
</summary>
<div class="row mb-2">
<div class="row mb-2">
<div class="col-auto">
<select id="collection-select" name="collection_id" class="form-select form-select-sm">
<!-- Dynamically load collection options via HTMX -->
@@ -75,12 +75,12 @@
</button>
<span id="action-result"></span>
</div>
</div>
</div>
</details>
{% render_table table %}
</form>
{% include "generic/partials/page_size_form.html" %}
{% include "generic/partials/page_size_form.html" %}
<div id="exam-options"></div>
{% endblock %}
+1
View File
@@ -40,6 +40,7 @@ class QuestionTable(tables.Table):
"author",
)
sequence = ("view", "stem", "answers")#, "exams")
attrs = {"class": "table row-selector"}
def __init__(self, data=None, *args, **kwargs):
super().__init__(