0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-06-11 06:59:21 +02:00
gitea/templates
Giteabot 4fec3a3d44
Add form field id generation, remove duplicated ids (#30546) (#30561)
Backport #30546 by @silverwind

Fixes: https://github.com/go-gitea/gitea/issues/30384

On repo settings page, there id `repo_name` was used 5 times on the same
page, some in modal and such. I think we are better off just
auto-generating these IDs in the future so that labels link up with
their form element.

Ideally this id generation would be done in backend in a subtemplate,
but seeing that we already have similar JS patches for checkboxes, I
took the easy path for now.

I also checked that these `#repo_name` were not in use in JS and the
only case where this id appears in JS is on the migration page where
it's still there.

Co-authored-by: silverwind <me@silverwind.io>
2024-04-18 10:33:32 +00:00
..
admin Fix admin notice view-detail (#30450) (#30458) 2024-04-13 10:49:44 +02:00
api/packages/pypi Remove incorrect HTML self close tag (#23748) 2023-03-27 18:05:51 +02:00
base Fix code block style for code preview (#30298) (#30306) 2024-04-06 12:34:38 +00:00
custom Add footer extra links template (#9576) 2020-01-03 20:41:56 +02:00
devtest Add svg linter and fix incorrect svgs (#30086) 2024-03-26 11:19:15 +00:00
explore Migrate margin and padding helpers to tailwind (#30043) 2024-03-24 17:42:49 +01:00
mail Remove unnecessary SanitizeHTML from code (#29575) 2024-03-04 12:02:45 +00:00
org Fix the spacing issue in the Project view (#30415) (#30423) 2024-04-12 09:23:00 +00:00
package Some NuGet package enhancements (#30280) (#30324) 2024-04-07 17:13:36 +00:00
projects Fix and rewrite contrast color calculation, fix project-related bugs (#30326) 2024-04-09 09:45:29 +00:00
repo Add form field id generation, remove duplicated ids (#30546) (#30561) 2024-04-18 10:33:32 +00:00
shared Refactor file view & render (#30227) (#30229) 2024-04-01 13:39:36 +00:00
status Migrate margin and padding helpers to tailwind (#30043) 2024-03-24 17:42:49 +01:00
swagger Prevent re-review and dismiss review actions on closed and merged PRs (#30065) 2024-03-28 15:19:24 +00:00
user Fix the spacing issue in the Project view (#30415) (#30423) 2024-04-12 09:23:00 +00:00
webhook Fix incorrect tailwind migration (#30007) 2024-03-22 20:51:29 +01:00
home.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-24 17:42:49 +01:00
install.tmpl Migrate gt-hidden to tw-hidden (#30046) 2024-03-24 18:23:38 +00:00
post-install.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00