1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-14 22:24:24 +00:00
gitea/templates/repo/settings
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
..
webhook Migrate gt-hidden to tw-hidden (#30046) 2024-03-24 18:23:38 +00:00
actions.tmpl Support configuration variables on Gitea Actions (#24724) 2023-06-20 22:54:15 +00:00
branches.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-24 17:42:49 +01:00
collaboration.tmpl Fix incorrect tailwind migration (#30007) 2024-03-22 20:51:29 +01:00
deploy_keys.tmpl Migrate gt-hidden to tw-hidden (#30046) 2024-03-24 18:23:38 +00:00
githook_edit.tmpl Migrate gt-hidden to tw-hidden (#30046) 2024-03-24 18:23:38 +00:00
githooks.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-24 17:42:49 +01:00
layout_footer.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
layout_head.tmpl Use flex-container for repo and org settings (#27418) 2023-10-04 08:47:54 +02:00
lfs_file_find.tmpl Remove RenderEmojiPlain from template helper (#29375) 2024-02-24 22:34:51 +00:00
lfs_file.tmpl Fix border-radius on view, blame and code search (#30545) (#30560) 2024-04-18 10:04:47 +00:00
lfs_locks.tmpl Fix more "locale" usages (#27259) 2023-09-25 20:42:40 +08:00
lfs_pointers.tmpl Migrate font-family to tailwind (#30118) 2024-03-28 08:31:07 +00:00
lfs.tmpl Migrate font-family to tailwind (#30118) 2024-03-28 08:31:07 +00:00
navbar.tmpl Show more settings for empty repositories (#29130) 2024-02-11 14:10:04 +00:00
options.tmpl Add form field id generation, remove duplicated ids (#30546) (#30561) 2024-04-18 10:33:32 +00:00
protected_branch.tmpl Migrate gt-hidden to tw-hidden (#30046) 2024-03-24 18:23:38 +00:00
push_mirror_sync_modal.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
runner_edit.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
secrets.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
tags.tmpl Replace 10 more gt- classes with tw- (#29945) 2024-03-22 13:45:10 +00:00