Refactor actions section in case view template for improved readability and structure
This commit is contained in:
@@ -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 %}
|
||||||
|
|||||||
@@ -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__(
|
||||||
|
|||||||
Reference in New Issue
Block a user