-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move data prep workspace tables into their own template snippet
This way, we only have to change the code only in place.
- Loading branch information
Showing
3 changed files
with
23 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{% load render_table from django_tables2 %} | ||
|
||
<div class="my-3"> | ||
<div class="accordion" id="accordionDataPrepWorkspace"> | ||
<div class="accordion-item"> | ||
<h2 class="accordion-header" id="headingDataPrepWorkspace"> | ||
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseDataPrepWorkspace" aria-expanded="false" aria-controls="collapseDataPrepWorkspace"> | ||
<span class="fa-solid fa-spinner mx-2"></span> | ||
Associated data prep workspaces | ||
<span class="badge mx-2 bg-secondary pill"> {{ table.rows|length }}</span> | ||
</button> | ||
</h2> | ||
<div id="collapseDataPrepWorkspace" class="accordion-collapse collapse" aria-labelledby="headingDataPrepWorkspace" data-bs-parent="#accordionDataPrepWorkspace"> | ||
<div class="accordion-body"> | ||
{% render_table table %} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |