Skip to content

Commit

Permalink
Merge pull request #1843 from navyjosh/master
Browse files Browse the repository at this point in the history
Fix incorrectly placed <h1> tag and replace it with an <h4> tag for the "Members List" DataTable.
  • Loading branch information
rolandgeider authored Dec 14, 2024
2 parents e58f94c + a866539 commit 303c32d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
1 change: 1 addition & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ Developers
* Kevin Moy - https://github.com/kmoy1
* Taylor Fuller - https://github.com/taylor-fuller
* eyJhb - https://github.com/eyJhb
* Joshua Shelley - https://github.com/navyjosh


Translators
Expand Down
4 changes: 4 additions & 0 deletions wger/core/static/css/workout-manager.css
Original file line number Diff line number Diff line change
Expand Up @@ -400,3 +400,7 @@ table.month td.session-good:hover {
color: black;
font-weight: bold;
}

.dt-container {
margin-bottom: 1.5rem;
}
20 changes: 13 additions & 7 deletions wger/gym/templates/gym/partial_user_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,22 @@
<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>



<h1>addasd </h1>
<table class="table table-hover table-responsive" id="main_member_list">
<thead>
<tr>
Expand Down

0 comments on commit 303c32d

Please sign in to comment.