|
71 | 71 | </div>
|
72 | 72 | <div class="ui divider"></div>
|
73 | 73 |
|
74 |
| - <div class="team-units required grouped field"{{if eq .Team.Authorize 3}} style="display: none"{{end}}> |
75 |
| - <label>{{.i18n.Tr "org.team_unit_desc"}}</label> |
76 |
| - <table class="ui celled table"> |
77 |
| - <thead> |
78 |
| - <tr><th>{{.i18n.Tr "units.unit"}}</th> |
79 |
| - <th><div data-content="{{.i18n.Tr "org.teams.none_access_helper"}}">{{.i18n.Tr "org.teams.none_access"}}</div></th> |
80 |
| - <th>{{.i18n.Tr "org.teams.read_access"}}</th> |
81 |
| - <th>{{.i18n.Tr "org.teams.write_access"}}</th></tr> |
82 |
| - </thead> |
83 |
| - <tbody> |
84 |
| - {{range $t, $unit := $.Units}} |
85 |
| - <tr> |
86 |
| - <td> |
| 74 | + <div class="team-units required grouped field"{{if eq .Team.Authorize 3}} style="display: none"{{end}}> |
| 75 | + <label>{{.i18n.Tr "org.team_unit_desc"}}</label> |
| 76 | + <table class="ui celled table"> |
| 77 | + <thead> |
| 78 | + <tr><th class="center aligned">{{.i18n.Tr "units.unit"}}</th> |
| 79 | + <th class="center aligned"><div data-content="{{.i18n.Tr "org.teams.none_access_helper"}}">{{.i18n.Tr "org.teams.none_access"}}</div></th> |
| 80 | + <th class="center aligned">{{.i18n.Tr "org.teams.read_access"}}</th> |
| 81 | + <th class="center aligned">{{.i18n.Tr "org.teams.write_access"}}</th></tr> |
| 82 | + </thead> |
| 83 | + <tbody> |
| 84 | + {{range $t, $unit := $.Units}} |
| 85 | + <tr> |
| 86 | + <td> |
87 | 87 | {{if $unit.Type.UnitGlobalDisabled}}
|
88 | 88 | <div class="field tooltip" data-content="{{$.i18n.Tr "repo.unit_disabled"}}">
|
89 | 89 | {{else}}
|
|
94 | 94 | <span class="help">{{$.i18n.Tr $unit.DescKey}}</span>
|
95 | 95 | </div>
|
96 | 96 | </div>
|
97 |
| - </td> |
98 |
| - <td> |
99 |
| - <div class="ui radio checkbox"> |
100 |
| - <input type="radio" class="hidden" name="unit_{{$unit.Type.Value}}" value="0"{{if or (eq $.Team.ID 0) (eq ($.Team.UnitAccessMode $unit.Type) 0)}} checked{{end}}> |
101 |
| - </div> |
102 |
| - </td> |
103 |
| - <td> |
104 |
| - <div class="ui radio checkbox"> |
105 |
| - <input type="radio" class="hidden" name="unit_{{$unit.Type.Value}}" value="1"{{if or (eq $.Team.ID 0) (eq ($.Team.UnitAccessMode $unit.Type) 1)}} checked{{end}}> |
106 |
| - </div> |
107 |
| - </td> |
108 |
| - <td> |
109 |
| - <div class="ui radio checkbox"> |
110 |
| - <input type="radio" class="hidden" name="unit_{{$unit.Type.Value}}" value="2"{{if or (eq $.Team.ID 0) (eq ($.Team.UnitAccessMode $unit.Type) 2)}} checked{{end}}> |
111 |
| - </div> |
112 |
| - </td> |
113 |
| - </tr> |
114 |
| - {{end}} |
115 |
| - </tbody> |
116 |
| - </table> |
117 |
| - </div> |
118 |
| - {{end}} |
| 97 | + </td> |
| 98 | + <td class="center aligned"> |
| 99 | + <div class="ui radio checkbox"> |
| 100 | + <input type="radio" class="hidden" name="unit_{{$unit.Type.Value}}" value="0"{{if or (eq $.Team.ID 0) (eq ($.Team.UnitAccessMode $unit.Type) 0)}} checked{{end}}> |
| 101 | + </div> |
| 102 | + </td> |
| 103 | + <td class="center aligned"> |
| 104 | + <div class="ui radio checkbox"> |
| 105 | + <input type="radio" class="hidden" name="unit_{{$unit.Type.Value}}" value="1"{{if or (eq $.Team.ID 0) (eq ($.Team.UnitAccessMode $unit.Type) 1)}} checked{{end}}> |
| 106 | + </div> |
| 107 | + </td> |
| 108 | + <td class="center aligned"> |
| 109 | + <div class="ui radio checkbox"> |
| 110 | + <input type="radio" class="hidden" name="unit_{{$unit.Type.Value}}" value="2"{{if or (eq $.Team.ID 0) (eq ($.Team.UnitAccessMode $unit.Type) 2)}} checked{{end}}> |
| 111 | + </div> |
| 112 | + </td> |
| 113 | + </tr> |
| 114 | + {{end}} |
| 115 | + </tbody> |
| 116 | + </table> |
| 117 | + </div> |
| 118 | + {{end}} |
119 | 119 |
|
120 | 120 | <div class="field">
|
121 | 121 | {{if .PageIsOrgTeamsNew}}
|
|
0 commit comments