Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bookmarking added and dashboard update #210

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
use batch language in the UI for bookmarks so users understand what i…
…s bookmarked
  • Loading branch information
cash committed Apr 5, 2024
commit acf642a3607c65b33884ffa182b9a772b965afe4
14 changes: 7 additions & 7 deletions turkle/templates/turkle/index.html
Original file line number Diff line number Diff line change
@@ -7,9 +7,9 @@
<row class="top-tables">
<div class="column-div">
<div class="table-alert alert alert-primary" role="alert" style="background-color: transparent;">
<h3><i class="bi bi-bookmark-fill"></i> Bookmarked</h3>
<div class="alert alert-info" id="noRowsDiv" style="display: none;">No bookmarked tasks. Toggle the bookmark (<i class="bi bi-bookmark"></i>) for tasks to appear here.</div>
<div id="bookmarkedTasks">
<h3><i class="bi bi-bookmark-fill"></i> Bookmarks</h3>
<div class="alert alert-info" id="noRowsDiv" style="display: none;">No bookmarked batches. Toggle the bookmark (<i class="bi bi-bookmark"></i>) for batches to appear here.</div>
<div id="bookmarkedBatches">
<table class="table-header">
<thead>
<tr>
@@ -22,7 +22,7 @@ <h3><i class="bi bi-bookmark-fill"></i> Bookmarked</h3>
</table>

<div class="table-body-container">
<table class="table-body" id="bookmarkedTasksTable" >
<table class="table-body" id="bookmarkedBatchesTable" >
<tbody>
</tbody>
</table>
@@ -144,7 +144,7 @@ <h4>
<script>

function updateSecondaryTable() {
const secondaryTableBody = document.querySelector('#bookmarkedTasksTable tbody');
const secondaryTableBody = document.querySelector('#bookmarkedBatchesTable tbody');

secondaryTableBody.innerHTML = '';

@@ -169,9 +169,9 @@ <h4>
}

function checkAndToggleNoRowsDiv() {
var hasRows = $('#bookmarkedTasksTable tbody tr').length > 0;
var hasRows = $('#bookmarkedBatchesTable tbody tr').length > 0;
$('#noRowsDiv').toggle(!hasRows);
$('#bookmarkedTasks').toggle(hasRows);
$('#bookmarkedBatches').toggle(hasRows);
}

$(document).ready(function () {