summaryrefslogtreecommitdiffstats
path: root/templates/org/team/new.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/org/team/new.tmpl')
-rw-r--r--templates/org/team/new.tmpl6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/org/team/new.tmpl b/templates/org/team/new.tmpl
index c38fa4d940..228f86824a 100644
--- a/templates/org/team/new.tmpl
+++ b/templates/org/team/new.tmpl
@@ -81,10 +81,14 @@
<label>{{.i18n.Tr "org.team_unit_desc"}}</label>
<br>
{{range $t, $unit := $.Units}}
+ {{if $unit.Type.UnitGlobalDisabled}}
+ <div class="field poping up" data-content="{{$.i18n.Tr "repo.unit_disabled"}}">
+ {{else}}
<div class="field">
+ {{end}}
<div class="ui toggle checkbox">
<input type="checkbox" class="hidden" name="units" value="{{$unit.Type.Value}}"{{if or (eq $.Team.ID 0) ($.Team.UnitEnabled $unit.Type)}} checked{{end}}>
- <label>{{$.i18n.Tr $unit.NameKey}}</label>
+ <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>
</div>
</div>