summaryrefslogtreecommitdiffstats
path: root/templates/org/team/new.tmpl
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2022-01-08 23:19:36 +0800
committerGitHub <noreply@github.com>2022-01-08 15:19:36 +0000
commit23f5a34c8904bccd23f4009549ac327672443d99 (patch)
treed523206f74a3375409b4830ef15b8ebdde82fa88 /templates/org/team/new.tmpl
parent70d7475356921b2c9f1f7ceb2c3010ce449bcc2c (diff)
downloadgitea-23f5a34c8904bccd23f4009549ac327672443d99.tar.gz
gitea-23f5a34c8904bccd23f4009549ac327672443d99.zip
Fix new team (#18212)
fix regression from #17811
Diffstat (limited to 'templates/org/team/new.tmpl')
-rw-r--r--templates/org/team/new.tmpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/org/team/new.tmpl b/templates/org/team/new.tmpl
index 1cf2dd0236..9877e9a941 100644
--- a/templates/org/team/new.tmpl
+++ b/templates/org/team/new.tmpl
@@ -89,10 +89,10 @@
</thead>
<tbody>
{{range $t, $unit := $.Units}}
- {{if ge $unit.MaxPerms 2}}
+ {{if ge $unit.MaxPerm 2}}
<tr>
<td>
- <div {{if $unit.Type.UnitGlobalDisabled}}class="field tooltip" data-content="{{$.i18n.Tr "repo.unit_disabled"}}">{{- else -}}class="field"{{end}}>
+ <div {{if $unit.Type.UnitGlobalDisabled}}class="field tooltip" data-content="{{$.i18n.Tr "repo.unit_disabled"}}"{{- else -}}class="field"{{end}}>
<div class="ui">
<label>{{$.i18n.Tr $unit.NameKey}}{{if $unit.Type.UnitGlobalDisabled}} {{$.i18n.Tr "org.team_unit_disabled"}}{{end}}</label>
<span class="help">{{$.i18n.Tr $unit.DescKey}}</span>
@@ -120,7 +120,7 @@
</tbody>
</table>
{{range $t, $unit := $.Units}}
- {{if lt $unit.MaxPerms 2}}
+ {{if lt $unit.MaxPerm 2}}
<div {{if $unit.Type.UnitGlobalDisabled}}class="field tooltip" data-content="{{$.i18n.Tr "repo.unit_disabled"}}"{{else}}class="field"{{end}}>
<div class="ui checkbox">
<input type="checkbox" class="hidden" name="unit_{{$unit.Type.Value}}" value="1"{{if or (eq $.Team.ID 0) (eq ($.Team.UnitAccessMode $unit.Type) 1)}} checked{{end}} {{if $unit.Type.UnitGlobalDisabled}}disabled{{end}}>