Self hosted FLOSS fitness/workout, nutrition and weight tracker
Add "Members" title to DataTable and adjust margin on DataTable because it was looking to cramped.
Joshdbf711ddc863
diff --git a/wger/core/static/css/workout-manager.css b/wger/core/static/css/workout-manager.cssindex ccd13ff29..52558daf6 100644--- a/wger/core/static/css/workout-manager.css+++ b/wger/core/static/css/workout-manager.css@@ -400,3 +400,7 @@ table.month td.session-good:hover {color: black;font-weight: bold;}++.dt-container {+ margin-bottom: 1.5rem;+}\ No newline at end of filediff --git a/wger/gym/templates/gym/partial_user_list.html b/wger/gym/templates/gym/partial_user_list.htmlindex 00ad467e4..cda067710 100644--- a/wger/gym/templates/gym/partial_user_list.html+++ b/wger/gym/templates/gym/partial_user_list.html@@ -4,15 +4,20 @@<script src="{% static 'yarn/datatables.net/js/dataTables.js' %}" ></script><script src="{% static 'yarn/datatables.net-bs5/js/dataTables.bootstrap5.js' %}" ></script><script>-$(document).ready( function () {- $('#main_member_list').DataTable({- paging: false,- bFilter: true,- bInfo : false+ $(document).ready(function () {+ $('#main_member_list').DataTable({+ paging: false,+ bFilter: true,+ bInfo: false,+ dom: '<"datatable-header d-flex justify-content-between align-items-center"f>t<"datatable-footer"ip>', // Layout of elements+ initComplete: function () {+ const title = $('<div class="datatable-title"><h4>Members</h4></div>');+ $(".datatable-header").prepend(title);+ }+ });});-});</script>-+<table class="table table-hover table-responsive" id="main_member_list">