1
0
Fork 0
forked from forgejo/forgejo

Improve repo/user/org search (#27030)

* Fix a regression from #26809 (the `data-org` is missing)
* Remove unnecessary style

Screenshots:


![image](3f5cf628-db7f-4705-898a-7a4a1fbfbba8)


![image](453d1fad-1090-4524-bf45-6c5da2465f04)


![image](f14d9808-7596-42c8-84b4-0d57a0bf2278)
This commit is contained in:
wxiaoguang 2023-09-13 00:44:48 +08:00 committed by GitHub
parent e6b68c579b
commit 739e47cd80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 10 deletions

View file

@ -89,7 +89,7 @@
{{if $allowedToChangeTeams}}
<form class="ui form" id="repo-collab-team-form" action="{{.Link}}/team" method="post">
{{.CsrfTokenHtml}}
<div id="search-team-box" class="ui search input gt-vm">
<div id="search-team-box" class="ui search input gt-vm" data-org-name="{{.OrgName}}">
<input class="prompt" name="team" placeholder="{{$.locale.Tr "repo.settings.search_team"}}" autocomplete="off" autofocus required>
</div>
<button class="ui green button">{{$.locale.Tr "repo.settings.add_team"}}</button>