summaryrefslogtreecommitdiffstats
path: root/templates/repo/settings/options.tmpl
diff options
context:
space:
mode:
authorDavid Øvrelid <46874830+framitdavid@users.noreply.github.com>2023-12-19 05:40:05 +0100
committerGitHub <noreply@github.com>2023-12-19 04:40:05 +0000
commit128eac9e0b03ee9c1e45dbd49da8e4726ca569f2 (patch)
treea8770cc7f69384db72afd0a4e073f2b11d50615f /templates/repo/settings/options.tmpl
parent14ffdf617375eda6f9d676271fcb796a5b83186d (diff)
downloadgitea-128eac9e0b03ee9c1e45dbd49da8e4726ca569f2.tar.gz
gitea-128eac9e0b03ee9c1e45dbd49da8e4726ca569f2.zip
Fix duplicate ID when deleting repo (#28520)
There is an accessibility issue in the interface when attempting to delete a repository. When I click on "Delete repository," a dialog box appears, requiring confirmation to proceed with the repository deletion. However, when I press the "Repo name" label, the wrong input field gains focus. The focused field is located behind the dialog and is intended for renaming the repository.
Diffstat (limited to 'templates/repo/settings/options.tmpl')
-rw-r--r--templates/repo/settings/options.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl
index 85ff82fda7..5a32f5e7ae 100644
--- a/templates/repo/settings/options.tmpl
+++ b/templates/repo/settings/options.tmpl
@@ -921,8 +921,8 @@
</label>
</div>
<div class="required field">
- <label for="repo_name">{{ctx.Locale.Tr "repo.repo_name"}}</label>
- <input id="repo_name" name="repo_name" required>
+ <label for="repo_name_to_delete">{{ctx.Locale.Tr "repo.repo_name"}}</label>
+ <input id="repo_name_to_delete" name="repo_name" required>
</div>
<div class="text right actions">