diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-05-18 22:54:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-18 22:54:24 +0800 |
commit | fd6034aaf23af1ce03bcba0babcbe7675ce093ee (patch) | |
tree | 9720f416facdef02a76bd56ca50669cc1f17eb88 /templates | |
parent | 5db5e16ab61f25f21cb17ee4895679b9830641a5 (diff) | |
download | gitea-fd6034aaf23af1ce03bcba0babcbe7675ce093ee.tar.gz gitea-fd6034aaf23af1ce03bcba0babcbe7675ce093ee.zip |
Add units to team (#947)
* add units to team
* fix lint
* finish team setting backend
* finished permission controll on routes
* fix import blank line
* add unit check on ssh/http pull and push and fix test failed
* fix fixtures data
* remove unused code
Diffstat (limited to 'templates')
-rw-r--r-- | templates/org/team/new.tmpl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/templates/org/team/new.tmpl b/templates/org/team/new.tmpl index 020eed384d..2f7c5b268f 100644 --- a/templates/org/team/new.tmpl +++ b/templates/org/team/new.tmpl @@ -52,6 +52,21 @@ <div class="ui divider"></div> {{end}} + <div class="required grouped field"> + <label>{{.i18n.Tr "org.team_unit_desc"}}</label> + <br> + {{range $t, $unit := $.Units}} + <div class="field"> + <div class="ui toggle checkbox"> + <input type="checkbox" class="hidden" name="units" value="{{$unit.Type}}"{{if $.Team.EnableUnit $unit.Type}} checked{{end}}> + <label>{{$.i18n.Tr $unit.NameKey}}</label> + <span class="help">{{$.i18n.Tr $unit.DescKey}}</span> + </div> + </div> + {{end}} + </div> + <div class="ui divider"></div> + <div class="field"> {{if .PageIsOrgTeamsNew}} <button class="ui green button">{{.i18n.Tr "org.create_new_team"}}</button> |