Skip to content

Commit

Permalink
Adding username to search fields
Browse files Browse the repository at this point in the history
  • Loading branch information
COMTOP1 committed Aug 20, 2024
1 parent ad1ae0a commit 606ccaa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/officer.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
<label for="userSearchInput"></label><input type="text" placeholder="Search.." id="userSearchInput" class="searchInput" onkeyup="userFilterFunction()">
{{range .Users}}
{{$userName := formatUserNameUserStruct .}}
<a onclick="selectUser({{.UserID}}, '{{$userName}}')">{{$userName}}</a>
<a onclick="selectUser({{.UserID}}, '{{$userName}}')">{{$userName}} ({{.Username}})</a>
{{end}}
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/officers.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
<label for="userSearchInput"></label><input type="text" placeholder="Search.." id="userSearchInput" class="searchInput" onkeyup="userFilterFunction()">
{{range .Users}}
{{$userName := formatUserNameUserStruct .}}
<a onclick="selectUser({{.UserID}}, '{{$userName}}')">{{$userName}}</a>
<a onclick="selectUser({{.UserID}}, '{{$userName}}')">{{$userName}} ({{.Username}})</a>
{{end}}
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/role.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@
onkeyup="userFilterFunction()">
{{range $.UsersNotInRole}}
{{$userName := formatUserNameUserStruct .}}
<a onclick="selectUser({{.UserID}}, '{{$userName}}')">{{$userName}}</a>
<a onclick="selectUser({{.UserID}}, '{{$userName}}')">{{$userName}} ({{.Username}})</a>
{{end}}
</div>
</div>
Expand Down

0 comments on commit 606ccaa

Please sign in to comment.