Skip to content

Commit aa1ca58

Browse files
committed
SDK-2226: Update doc-scan example project to include import token
1 parent aab6af8 commit aa1ca58

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

examples/doc-scan/src/main/resources/templates/success.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -893,6 +893,37 @@ <h2>Identity Profile Preview</h2>
893893
</div>
894894
</th:block>
895895

896+
<th:block th:if="${sessionResult.getImportToken() != null}">
897+
<div class="row pt-4">
898+
<div class="col">
899+
<h2>Import Token</h2>
900+
</div>
901+
<div class="row pt-4">
902+
<div class="col">
903+
<div class="accordion mt-3">
904+
<div class="card" th:if="${sessionResult.getImportToken().getFailureReason() != null}">
905+
Failure Reason: <span th:text="${sessionResult.getImportToken().getFailureReason()}"></span>
906+
</div>
907+
<div class="card" th:if="${sessionResult.getImportToken().getMedia() != null}">
908+
<table class="table table-striped table-light">
909+
<tbody>
910+
<tr>
911+
<td>JSON</td>
912+
<td>
913+
<a th:href="${'/media?mediaId=' + sessionResult.getImportToken().getMedia().getId()}"
914+
th:text="${sessionResult.getImportToken().getMedia().getId()}">
915+
</a>
916+
</td>
917+
</tr>
918+
</tbody>
919+
</table>
920+
</div>
921+
</div>
922+
</div>
923+
</div>
924+
</div>
925+
</th:block>
926+
896927
</div>
897928

898929
<div th:replace="fragments/components :: footer"></div>

0 commit comments

Comments
 (0)