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
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
..
admin Remove fomantic button module (#30475) 10 months ago
api/packages/pypi Remove incorrect HTML self close tag (#23748) 2 years ago
base Remove fomantic button module (#30475) 10 months ago
custom Add footer extra links template (#9576) 5 years ago
devtest Revert 100% label max-width (#30481) 10 months ago
explore Refactor web routes (#30519) 10 months ago
mail Remove unnecessary SanitizeHTML from code (#29575) 11 months ago
org Remove fomantic button module (#30475) 10 months ago
package Some NuGet package enhancements (#30280) 10 months ago
projects Fix and rewrite contrast color calculation, fix project-related bugs (#30237) 10 months ago
repo Add form field id generation, remove duplicated ids (#30546) 10 months ago
shared Expose fuzzy search for issues/pulls (#29701) 10 months ago
status Migrate margin and padding helpers to tailwind (#30043) 10 months ago
swagger Update API to return 'source_id' for users (#29718) 10 months ago
user Expose fuzzy search for issues/pulls (#29701) 10 months ago
webhook Fix incorrect tailwind migration (#30007) 10 months ago
home.tmpl Migrate margin and padding helpers to tailwind (#30043) 10 months ago
install.tmpl Correct locale string rendering (#30522) 10 months ago
post-install.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago