-
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.
EDRN Data Model (CDE Explorer) support
- Add root objects to CDE Explorer's page context so we can have them pre-sorted alphabetically - `gdown.download` doesn't raise an exception on error but returns None as the written filename, so test for this condition and raise our own exception (wkentaro/gdown#276) - Make `update_nodes` "public" since we expect to call this from outside the class context - When installing the CDE explorer, put it on the EDRN CDE page, not the LabCAS page. Also make it stand out. Also, initially populate it. Also, call it the "EDRN Data Model", not the "LabCAS CDEs" - Make required CDEs stand out with color and icon - Move the "Update from Google Drive" button appear next to the "View Update Log" button - Hide the "Attributes" heading entirely if there are no attributes
- Loading branch information
1 parent
74aa5a6
commit f35e547
Showing
6 changed files
with
32 additions
and
24 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
5 changes: 3 additions & 2 deletions
5
...drnsite.content/src/edrnsite/content/templates/edrnsite.content/cde-attribute-button.html
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{% load wagtailcore_tags edrnsite_content_tags %} | ||
<a class='btn btn-outline-primary btn-sm' data-bs-toggle='offcanvas' href='#{{id}}' role='button' | ||
<a class='btn btn-sm{% if required %} btn-outline-danger{% else %} btn-outline-primary{% endif %}' | ||
data-bs-toggle='offcanvas' href='#{{id}}' role='button' | ||
data-bs-target='#{{id}}' aria-controls='{{id}}'> | ||
{{text}} | ||
{% if required %}<i class='bi bi-key-fill'></i>{% endif %} {{text}} | ||
</a> | ||
{# -*- Django HTML -*- #} |
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