summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-09-13 00:44:48 +0800
committerGitHub <noreply@github.com>2023-09-12 16:44:48 +0000
commit739e47cd80db34f2ab0a63da76adc235f1f2ab06 (patch)
tree241e0a9e59977700e378cc5c2bedb0a3fa83b1cd /templates
parente6b68c579b75e818f6a3a80ef9811f739bcb4f86 (diff)
downloadgitea-739e47cd80db34f2ab0a63da76adc235f1f2ab06.tar.gz
gitea-739e47cd80db34f2ab0a63da76adc235f1f2ab06.zip
Improve repo/user/org search (#27030)
* Fix a regression from #26809 (the `data-org` is missing) * Remove unnecessary style Screenshots: ![image](https://github.com/go-gitea/gitea/assets/2114189/3f5cf628-db7f-4705-898a-7a4a1fbfbba8) ![image](https://github.com/go-gitea/gitea/assets/2114189/453d1fad-1090-4524-bf45-6c5da2465f04) ![image](https://github.com/go-gitea/gitea/assets/2114189/f14d9808-7596-42c8-84b4-0d57a0bf2278)
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/settings/collaboration.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/settings/collaboration.tmpl b/templates/repo/settings/collaboration.tmpl
index 4c6721eb24..c40265c6a6 100644
--- a/templates/repo/settings/collaboration.tmpl
+++ b/templates/repo/settings/collaboration.tmpl
@@ -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>