Skip to content

Commit

Permalink
Merge pull request #39 from companieshouse/fix/CC-1500
Browse files Browse the repository at this point in the history
fix: added an error message field
  • Loading branch information
dtoulcher-ch authored Jul 17, 2024
2 parents 7d0f5c6 + 97da2d4 commit 8750cb8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/resources/templates/fragments/adminSearch.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ <h2>Service Administration</h2>
<p>Impersonating user: no one</p>
</div>
<form th:action="@{/admin/search}" id="form" class="form" autocomplete="off" method="POST" enctype="multipart/form-data">
<input type="hidden" name="origin" th:value="${origin}"/>
<input type="text" th:name="searchTerm" th:placeholder="${placeHolder}" style="width: 275px;"/>
<div th:if="${errorMessage}" th:text="${errorMessage}" style='color:red;'>Error</div>
<input class="submit" type="submit" id="admin-search-btn" value="Search"/>
</form>
<a th:if="${hasAdminRole}" th:href="@{/admin/roles}">Manage Roles</a>&nbsp;
Expand Down

0 comments on commit 8750cb8

Please sign in to comment.