-
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.
- Loading branch information
1 parent
f35e547
commit 170b060
Showing
5 changed files
with
35 additions
and
9 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
11 changes: 9 additions & 2 deletions
11
...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,7 +1,14 @@ | ||
{% load wagtailcore_tags edrnsite_content_tags %} | ||
<a class='btn btn-sm{% if required %} btn-outline-danger{% else %} btn-outline-primary{% endif %}' | ||
<a class='btn btn-sm | ||
{% if required %} | ||
btn-outline-danger | ||
{% elif inheritance %} | ||
btn-outline-secondary | ||
{% else %} | ||
btn-outline-primary | ||
{% endif %}' | ||
data-bs-toggle='offcanvas' href='#{{id}}' role='button' | ||
data-bs-target='#{{id}}' aria-controls='{{id}}'> | ||
{% if required %}<i class='bi bi-key-fill'></i>{% endif %} {{text}} | ||
{% if required %}<i class='bi bi-key-fill'></i>{% endif %}{% if inheritance %}<i class="bi bi-box-seam"></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