Skip to content

Commit 84b1df3

Browse files
committed
Add tooltip
1 parent 9f7d069 commit 84b1df3

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

templates/org/team/new.tmpl

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,17 @@
7575
<label>{{.i18n.Tr "org.team_unit_desc"}}</label>
7676
<table class="ui celled table">
7777
<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>
78+
<tr>
79+
<th class="center aligned">{{.i18n.Tr "units.unit"}}</th>
80+
<th class="center aligned">{{.i18n.Tr "org.teams.none_access"}}
81+
<i class="circle help icon link tooltip" data-content="{{.i18n.Tr "org.teams.none_access_helper"}}"></i></th>
82+
<th class="center aligned">{{.i18n.Tr "org.teams.read_access"}}
83+
<i class="circle help icon link tooltip" data-content="{{.i18n.Tr "org.teams.read_access_helper"}}"></i>
84+
</th>
85+
<th class="center aligned">{{.i18n.Tr "org.teams.write_access"}}
86+
<i class="circle help icon link tooltip" data-content="{{.i18n.Tr "org.teams.write_access_helper"}}"></i>
87+
</th>
88+
</tr>
8289
</thead>
8390
<tbody>
8491
{{range $t, $unit := $.Units}}
@@ -97,7 +104,7 @@
97104
</td>
98105
<td class="center aligned">
99106
<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}}>
107+
<input type="radio" class="hidden" name="unit_{{$unit.Type.Value}}" value="0"{{if (eq ($.Team.UnitAccessMode $unit.Type) 0)}} checked{{end}}>
101108
</div>
102109
</td>
103110
<td class="center aligned">
@@ -107,7 +114,7 @@
107114
</td>
108115
<td class="center aligned">
109116
<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}}>
117+
<input type="radio" class="hidden" name="unit_{{$unit.Type.Value}}" value="2"{{if (eq ($.Team.UnitAccessMode $unit.Type) 2)}} checked{{end}}>
111118
</div>
112119
</td>
113120
</tr>

0 commit comments

Comments
 (0)