diff options
author | yp05327 <576951401@qq.com> | 2023-04-02 22:08:34 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-02 21:08:34 +0800 |
commit | 0ed62db213f3859ef757ad1d39d10c71937a87f7 (patch) | |
tree | 2adda788b5a9a2117158f115f3a3ffd2efa072d5 /templates | |
parent | fbd4eaceed801e7400ed04a9dadedaf3a25dccb9 (diff) | |
download | gitea-0ed62db213f3859ef757ad1d39d10c71937a87f7.tar.gz gitea-0ed62db213f3859ef757ad1d39d10c71937a87f7.zip |
Prefill input values in oauth settings as intended (#23829)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin/auth/source/oauth.tmpl | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/templates/admin/auth/source/oauth.tmpl b/templates/admin/auth/source/oauth.tmpl index e4ae736e8f..277ebdb011 100644 --- a/templates/admin/auth/source/oauth.tmpl +++ b/templates/admin/auth/source/oauth.tmpl @@ -74,16 +74,16 @@ <div class="field"> <label for="oauth2_scopes">{{.locale.Tr "admin.auths.oauth2_scopes"}}</label> - <input id="oauth2_scopes" name="oauth2_scopes" values="{{.oauth2_scopes}}"> + <input id="oauth2_scopes" name="oauth2_scopes" value="{{.oauth2_scopes}}"> </div> <div class="field"> <label for="oauth2_required_claim_name">{{.locale.Tr "admin.auths.oauth2_required_claim_name"}}</label> - <input id="oauth2_required_claim_name" name="oauth2_required_claim_name" values="{{.oauth2_required_claim_name}}"> + <input id="oauth2_required_claim_name" name="oauth2_required_claim_name" value="{{.oauth2_required_claim_name}}"> <p class="help">{{.locale.Tr "admin.auths.oauth2_required_claim_name_helper"}}</p> </div> <div class="field"> <label for="oauth2_required_claim_value">{{.locale.Tr "admin.auths.oauth2_required_claim_value"}}</label> - <input id="oauth2_required_claim_value" name="oauth2_required_claim_value" values="{{.oauth2_required_claim_value}}"> + <input id="oauth2_required_claim_value" name="oauth2_required_claim_value" value="{{.oauth2_required_claim_value}}"> <p class="help">{{.locale.Tr "admin.auths.oauth2_required_claim_value_helper"}}</p> </div> <div class="field"> @@ -92,18 +92,18 @@ </div> <div class="field"> <label for="oauth2_admin_group">{{.locale.Tr "admin.auths.oauth2_admin_group"}}</label> - <input id="oauth2_admin_group" name="oauth2_admin_group" value="{{.oauth2_group_claim_name}}"> + <input id="oauth2_admin_group" name="oauth2_admin_group" value="{{.oauth2_admin_group}}"> </div> <div class="field"> <label for="oauth2_restricted_group">{{.locale.Tr "admin.auths.oauth2_restricted_group"}}</label> - <input id="oauth2_restricted_group" name="oauth2_restricted_group" value="{{.oauth2_group_claim_name}}"> + <input id="oauth2_restricted_group" name="oauth2_restricted_group" value="{{.oauth2_restricted_group}}"> </div> <div class="field"> <label>{{.locale.Tr "admin.auths.oauth2_map_group_to_team"}}</label> - <input name="oauth2_group_team_map" value="{{.group_team_map}}" placeholder='e.g. {"Developer": {"MyGiteaOrganization": ["MyGiteaTeam1", "MyGiteaTeam2"]}}'> + <input name="oauth2_group_team_map" value="{{.oauth2_group_team_map}}" placeholder='e.g. {"Developer": {"MyGiteaOrganization": ["MyGiteaTeam1", "MyGiteaTeam2"]}}'> </div> <div class="ui checkbox"> <label>{{.locale.Tr "admin.auths.oauth2_map_group_to_team_removal"}}</label> - <input name="oauth2_group_team_map_removal" type="checkbox" {{if .group_team_map_removal}}checked{{end}}> + <input name="oauth2_group_team_map_removal" type="checkbox" {{if .oauth2_group_team_map_removal}}checked{{end}}> </div> </div> |