|
74 | 74 |
|
75 | 75 | <div class="field">
|
76 | 76 | <label for="oauth2_scopes">{{.locale.Tr "admin.auths.oauth2_scopes"}}</label>
|
77 |
| - <input id="oauth2_scopes" name="oauth2_scopes" values="{{.oauth2_scopes}}"> |
| 77 | + <input id="oauth2_scopes" name="oauth2_scopes" value="{{.oauth2_scopes}}"> |
78 | 78 | </div>
|
79 | 79 | <div class="field">
|
80 | 80 | <label for="oauth2_required_claim_name">{{.locale.Tr "admin.auths.oauth2_required_claim_name"}}</label>
|
81 |
| - <input id="oauth2_required_claim_name" name="oauth2_required_claim_name" values="{{.oauth2_required_claim_name}}"> |
| 81 | + <input id="oauth2_required_claim_name" name="oauth2_required_claim_name" value="{{.oauth2_required_claim_name}}"> |
82 | 82 | <p class="help">{{.locale.Tr "admin.auths.oauth2_required_claim_name_helper"}}</p>
|
83 | 83 | </div>
|
84 | 84 | <div class="field">
|
85 | 85 | <label for="oauth2_required_claim_value">{{.locale.Tr "admin.auths.oauth2_required_claim_value"}}</label>
|
86 |
| - <input id="oauth2_required_claim_value" name="oauth2_required_claim_value" values="{{.oauth2_required_claim_value}}"> |
| 86 | + <input id="oauth2_required_claim_value" name="oauth2_required_claim_value" value="{{.oauth2_required_claim_value}}"> |
87 | 87 | <p class="help">{{.locale.Tr "admin.auths.oauth2_required_claim_value_helper"}}</p>
|
88 | 88 | </div>
|
89 | 89 | <div class="field">
|
|
92 | 92 | </div>
|
93 | 93 | <div class="field">
|
94 | 94 | <label for="oauth2_admin_group">{{.locale.Tr "admin.auths.oauth2_admin_group"}}</label>
|
95 |
| - <input id="oauth2_admin_group" name="oauth2_admin_group" value="{{.oauth2_group_claim_name}}"> |
| 95 | + <input id="oauth2_admin_group" name="oauth2_admin_group" value="{{.oauth2_admin_group}}"> |
96 | 96 | </div>
|
97 | 97 | <div class="field">
|
98 | 98 | <label for="oauth2_restricted_group">{{.locale.Tr "admin.auths.oauth2_restricted_group"}}</label>
|
99 |
| - <input id="oauth2_restricted_group" name="oauth2_restricted_group" value="{{.oauth2_group_claim_name}}"> |
| 99 | + <input id="oauth2_restricted_group" name="oauth2_restricted_group" value="{{.oauth2_restricted_group}}"> |
100 | 100 | </div>
|
101 | 101 | <div class="field">
|
102 | 102 | <label>{{.locale.Tr "admin.auths.oauth2_map_group_to_team"}}</label>
|
103 |
| - <input name="oauth2_group_team_map" value="{{.group_team_map}}" placeholder='e.g. {"Developer": {"MyGiteaOrganization": ["MyGiteaTeam1", "MyGiteaTeam2"]}}'> |
| 103 | + <input name="oauth2_group_team_map" value="{{.oauth2_group_team_map}}" placeholder='e.g. {"Developer": {"MyGiteaOrganization": ["MyGiteaTeam1", "MyGiteaTeam2"]}}'> |
104 | 104 | </div>
|
105 | 105 | <div class="ui checkbox">
|
106 | 106 | <label>{{.locale.Tr "admin.auths.oauth2_map_group_to_team_removal"}}</label>
|
107 |
| - <input name="oauth2_group_team_map_removal" type="checkbox" {{if .group_team_map_removal}}checked{{end}}> |
| 107 | + <input name="oauth2_group_team_map_removal" type="checkbox" {{if .oauth2_group_team_map_removal}}checked{{end}}> |
108 | 108 | </div>
|
109 | 109 | </div>
|
0 commit comments