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> <summary>
<strong>Actions</strong> <strong>Actions</strong>
</summary> </summary>
<div class="row mb-2"> <div class="row mb-2">
<div class="col-auto"> <div class="col-auto">
<select id="collection-select" name="collection_id" class="form-select form-select-sm"> <select id="collection-select" name="collection_id" class="form-select form-select-sm">
<!-- Dynamically load collection options via HTMX --> <!-- Dynamically load collection options via HTMX -->
@@ -75,12 +75,12 @@
</button> </button>
<span id="action-result"></span> <span id="action-result"></span>
</div> </div>
</div> </div>
</details> </details>
{% render_table table %} {% render_table table %}
</form> </form>
{% include "generic/partials/page_size_form.html" %} {% include "generic/partials/page_size_form.html" %}
<div id="exam-options"></div> <div id="exam-options"></div>
{% endblock %} {% endblock %}
+1
View File
@@ -40,6 +40,7 @@ class QuestionTable(tables.Table):
"author", "author",
) )
sequence = ("view", "stem", "answers")#, "exams") sequence = ("view", "stem", "answers")#, "exams")
attrs = {"class": "table row-selector"}
def __init__(self, data=None, *args, **kwargs): def __init__(self, data=None, *args, **kwargs):
super().__init__( super().__init__(