style(templates): Refactor HTML structure for improved readability and consistency
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="d-flex align-items-start justify-content-between mb-3">
|
<div class="d-flex align-items-start justify-content-between mb-3">
|
||||||
<h2 class="mb-0">Collections</h2>
|
<h2 class="mb-0">Collections</h2>
|
||||||
{% if request.user.is_staff %}
|
{% if request.user.is_staff %}
|
||||||
@@ -18,6 +18,6 @@
|
|||||||
{% render_table table %}
|
{% render_table table %}
|
||||||
|
|
||||||
{% include "generic/partials/filter_bar.html" with filter=filter app_name=app_name collapse_id="bottom-filter-body" %}
|
{% include "generic/partials/filter_bar.html" with filter=filter app_name=app_name collapse_id="bottom-filter-body" %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -34,8 +34,8 @@
|
|||||||
{% render_table table %}
|
{% render_table table %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
document.getElementById('bulk-delete-form').addEventListener('submit', function(e) {
|
document.getElementById('bulk-delete-form').addEventListener('submit', function(e) {
|
||||||
// Remove any previously added hidden inputs
|
// Remove any previously added hidden inputs
|
||||||
document.querySelectorAll('#bulk-delete-form input[name="series_ids"]').forEach(el => el.remove());
|
document.querySelectorAll('#bulk-delete-form input[name="series_ids"]').forEach(el => el.remove());
|
||||||
|
|
||||||
@@ -54,22 +54,21 @@ document.getElementById('bulk-delete-form').addEventListener('submit', function(
|
|||||||
hidden.value = cb.value;
|
hidden.value = cb.value;
|
||||||
this.appendChild(hidden);
|
this.appendChild(hidden);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div id="exam-options"></div>
|
<div id="exam-options"></div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block js %}
|
{% block js %}
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
||||||
{% block css %}
|
{% block css %}
|
||||||
<style>
|
<style>
|
||||||
</style>
|
</style>
|
||||||
{% endblock css %}
|
{% endblock css %}
|
||||||
|
|
||||||
@@ -5,11 +5,11 @@
|
|||||||
{% block content_container_class %}container-fluid content-wide px-3{% endblock %}
|
{% block content_container_class %}container-fluid content-wide px-3{% endblock %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
Atlas Task Overview
|
Atlas Task Overview
|
||||||
{% endblock title %}
|
{% endblock title %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="container-fluid py-3 px-3">
|
<div class="container-fluid py-3 px-3">
|
||||||
<style>
|
<style>
|
||||||
.task-overview-table {
|
.task-overview-table {
|
||||||
min-width: 1650px;
|
min-width: 1650px;
|
||||||
@@ -199,5 +199,5 @@ Atlas Task Overview
|
|||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
</div>
|
</div>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{% include "generic/partials/filter_bar.html" with filter=filter app_name=app_name collapse_id="bottom-filter-body" %}
|
{% include "generic/partials/filter_bar.html" with filter=filter app_name=app_name collapse_id="bottom-filter-body" %}
|
||||||
|
|
||||||
<!-- Minibar: small visible strip when panel is collapsed -->
|
<!-- Minibar: small visible strip when panel is collapsed -->
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user