diff options
author | yp05327 <576951401@qq.com> | 2023-04-14 04:06:10 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-13 21:06:10 +0200 |
commit | b7221bec34fd49495234a18c26e4f5d81483e102 (patch) | |
tree | bbf979149c772464896e1421766dc1368ff15713 /templates/org/team | |
parent | 469dc4459bb7f56cf8a6daa9c234164c0889bdda (diff) | |
download | gitea-b7221bec34fd49495234a18c26e4f5d81483e102.tar.gz gitea-b7221bec34fd49495234a18c26e4f5d81483e102.zip |
Fix admin team access mode value in team_unit table (#24012)
Same as https://github.com/go-gitea/gitea/pull/23675
Feedback:
https://github.com/go-gitea/gitea/pull/23879#issuecomment-1500923636
Diffstat (limited to 'templates/org/team')
-rw-r--r-- | templates/org/team/new.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/org/team/new.tmpl b/templates/org/team/new.tmpl index 195f8bdcd6..2e65d63580 100644 --- a/templates/org/team/new.tmpl +++ b/templates/org/team/new.tmpl @@ -109,7 +109,7 @@ </td> <td class="center aligned"> <div class="ui radio checkbox"> - <input type="radio" name="unit_{{$unit.Type.Value}}" value="2"{{if (eq ($.Team.UnitAccessMode $.Context $unit.Type) 2)}} checked{{end}} {{if $unit.Type.UnitGlobalDisabled}}disabled{{end}} title="{{$.locale.Tr "org.teams.write_access"}}"> + <input type="radio" name="unit_{{$unit.Type.Value}}" value="2"{{if (ge ($.Team.UnitAccessMode $.Context $unit.Type) 2)}} checked{{end}} {{if $unit.Type.UnitGlobalDisabled}}disabled{{end}} title="{{$.locale.Tr "org.teams.write_access"}}"> </div> </td> </tr> @@ -137,7 +137,7 @@ {{else}} <button class="ui green button">{{.locale.Tr "org.teams.update_settings"}}</button> {{if not (eq .Team.LowerName "owners")}} - <button class="ui red button delete-button" data-url="{{.OrgLink}}/teams/{{.team_name | PathEscape}}/delete">{{.locale.Tr "org.teams.delete_team"}}</button> + <button class="ui red button delete-button" data-url="{{.OrgLink}}/teams/{{.Team.Name | PathEscape}}/delete">{{.locale.Tr "org.teams.delete_team"}}</button> {{end}} {{end}} </div> |