diff options
author | JakobDev <jakobdev@gmx.de> | 2023-05-26 11:42:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-26 09:42:54 +0000 |
commit | 85fa954a3810b233cb299f455546c4b2314400b3 (patch) | |
tree | 9cf4b3955c59b6c38aba1b1df07d14843aaef375 /templates/repo/migrate/gitea.tmpl | |
parent | 18f26cfbf7f9b36b838c0e8762bfba98c89b9797 (diff) | |
download | gitea-85fa954a3810b233cb299f455546c4b2314400b3.tar.gz gitea-85fa954a3810b233cb299f455546c4b2314400b3.zip |
Improve some Forms (#24878)
Don't really know a better name for this. I've gone through some Forms
and added missing HTML attributes (mostly `maxlength`). I tried to fill
the Forms with dummy Data and see if Gitea throws a Error (e.g. maximum
length). If yes, I added the missing HTML attribute.
While working on this, I discovered that the Form to add OAuth2 Apps
just silently fails when filled with invalid data, so I fixed that too.
Diffstat (limited to 'templates/repo/migrate/gitea.tmpl')
-rw-r--r-- | templates/repo/migrate/gitea.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/migrate/gitea.tmpl b/templates/repo/migrate/gitea.tmpl index f1d4e4f06b..daa1205557 100644 --- a/templates/repo/migrate/gitea.tmpl +++ b/templates/repo/migrate/gitea.tmpl @@ -95,7 +95,7 @@ <div class="inline required field {{if .Err_RepoName}}error{{end}}"> <label for="repo_name">{{.locale.Tr "repo.repo_name"}}</label> - <input id="repo_name" name="repo_name" value="{{.repo_name}}" required> + <input id="repo_name" name="repo_name" value="{{.repo_name}}" required maxlength="100"> </div> <div class="inline field"> <label>{{.locale.Tr "repo.visibility"}}</label> @@ -111,7 +111,7 @@ </div> <div class="inline field {{if .Err_Description}}error{{end}}"> <label for="description">{{.locale.Tr "repo.repo_desc"}}</label> - <textarea id="description" name="description">{{.description}}</textarea> + <textarea id="description" name="description" maxlength="2048">{{.description}}</textarea> </div> <div class="inline field"> |