-
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.
Doc uploader use an accordion versus reveal
This also overrides the honeycrisp version of the accordion so that we can pass it an html item versus just text.
- Loading branch information
Showing
2 changed files
with
19 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<th:block | ||
th:fragment="accordion" | ||
th:with="controlId=${controlId == null ? 'a1' : controlId}" | ||
th:assert=" | ||
${!#strings.isEmpty(buttonLabel)}, | ||
${!#strings.isEmpty(content)}"> | ||
<div class="accordion"> | ||
<button class="accordion__button" aria-expanded="true" aria-controls="controlId"> | ||
<th:block th:replace="${buttonLabel}"/> | ||
</button> | ||
<div class="accordion__content" id="controlId"> | ||
<th:block th:replace="${content}"/> | ||
</div> | ||
</div> | ||
</th:block> |
9 changes: 4 additions & 5 deletions
9
src/main/resources/templates/fragments/docUploadSeeWhatToAddReveal.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