gitea/services/forms
Guillaume 303af554c9
Improve "generate new access token" form (#33730)
Fix: https://github.com/go-gitea/gitea/issues/33519

As discussed in [PR
#33614](https://github.com/go-gitea/gitea/pull/33614), the
ScopedAccessTokenSelector Vue component is not particularly useful.

This PR removes the component and reverts to using HTML templates. It
also introduces some (hopefully) useful refactoring.

The Vue component was causing the UX bug reported in the linked issue.
Required form fields are now properly working, as expected (see
screenshot).

![Screenshot from 2025-02-25
22-00-28](https://github.com/user-attachments/assets/41167854-0718-48b0-a3ee-75ca3a7b8b20)

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-02-27 19:40:12 +00:00
..
admin.go Add option to set language in admin user view (#28449) 2024-03-02 22:55:02 +01:00
auth_form.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
org.go Fix: Allow org team names of length 255 in create team form (#31564) 2024-07-10 02:15:17 +00:00
package_form.go Add Arch package registry (#32692) 2024-12-04 23:09:07 +00:00
repo_branch_form.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
repo_form.go Fix commit status events (#33320) 2025-02-04 03:25:59 +00:00
repo_form_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
repo_tag_form.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
runner.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
user_form.go Improve "generate new access token" form (#33730) 2025-02-27 19:40:12 +00:00
user_form_auth_openid.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
user_form_hidden_comments.go Issue time estimate, meaningful time tracking (#23113) 2024-12-05 13:07:53 +00:00
user_form_test.go Improve "generate new access token" form (#33730) 2025-02-27 19:40:12 +00:00