You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/templates/repo/settings
silverwind d4ec6b3d16
Add form field id generation, remove duplicated ids (#30546)
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: Giteabot <teabot@gitea.io>
10 months ago
..
webhook Remove fomantic button module (#30475) 11 months ago
actions.tmpl Support configuration variables on Gitea Actions (#24724) 2 years ago
branches.tmpl Migrate margin and padding helpers to tailwind (#30043) 11 months ago
collaboration.tmpl Fix incorrect tailwind migration (#30007) 11 months ago
deploy_keys.tmpl Migrate `gt-hidden` to `tw-hidden` (#30046) 11 months ago
githook_edit.tmpl Migrate `gt-hidden` to `tw-hidden` (#30046) 11 months ago
githooks.tmpl Migrate margin and padding helpers to tailwind (#30043) 11 months ago
layout_footer.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2 years ago
layout_head.tmpl Use flex-container for repo and org settings (#27418) 1 year ago
lfs.tmpl Remove fomantic button module (#30475) 11 months ago
lfs_file.tmpl Fix border-radius on view, blame and code search (#30545) 10 months ago
lfs_file_find.tmpl Remove RenderEmojiPlain from template helper (#29375) 1 year ago
lfs_locks.tmpl Fix more "locale" usages (#27259) 1 year ago
lfs_pointers.tmpl Remove fomantic button module (#30475) 11 months ago
navbar.tmpl Refactor web routes (#30519) 11 months ago
options.tmpl Add form field id generation, remove duplicated ids (#30546) 10 months ago
protected_branch.tmpl Migrate `gt-hidden` to `tw-hidden` (#30046) 11 months ago
push_mirror_sync_modal.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
runner_edit.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2 years ago
secrets.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2 years ago
tags.tmpl Replace 10 more gt- classes with tw- (#29945) 11 months ago