summaryrefslogtreecommitdiffstats
path: root/templates/org
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-01-29 17:06:14 -0500
committerUnknwon <u@gogs.io>2016-01-29 17:06:14 -0500
commit112a7cab31df083983a664e252efcfca4ecb0d7a (patch)
treef5b450fbc40fb6a2073ba134851aef19c0f1e6aa /templates/org
parentee814bf8d6c70c91bac19059ba37af0d91b2a1e0 (diff)
downloadgitea-112a7cab31df083983a664e252efcfca4ecb0d7a.tar.gz
gitea-112a7cab31df083983a664e252efcfca4ecb0d7a.zip
#2497 incorrect error handle for team name
Diffstat (limited to 'templates/org')
-rw-r--r--templates/org/team/new.tmpl8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/org/team/new.tmpl b/templates/org/team/new.tmpl
index 6293efb62e..020eed384d 100644
--- a/templates/org/team/new.tmpl
+++ b/templates/org/team/new.tmpl
@@ -13,14 +13,14 @@
<div class="required field {{if .Err_TeamName}}error{{end}}">
<label for="team_name">{{.i18n.Tr "org.team_name"}}</label>
{{if eq .Team.LowerName "owners"}}
- <input type="hidden" name="team_name" value="{{.team_name}}">
+ <input type="hidden" name="team_name" value="{{.Team.Name}}">
{{end}}
- <input id="team_name" name="team_name" value="{{.team_name}}" required {{if eq .Team.LowerName "owners"}}disabled{{end}} autofocus>
+ <input id="team_name" name="team_name" value="{{.Team.Name}}" required {{if eq .Team.LowerName "owners"}}disabled{{end}} autofocus>
<span class="help">{{.i18n.Tr "org.team_name_helper"}}</span>
</div>
<div class="field {{if .Err_Description}}error{{end}}">
- <label for="desc">{{.i18n.Tr "org.team_desc"}}</label>
- <input id="desc" name="desc" value="{{.desc}}">
+ <label for="description">{{.i18n.Tr "org.team_desc"}}</label>
+ <input id="description" name="description" value="{{.Team.Description}}">
<span class="help">{{.i18n.Tr "org.team_desc_helper"}}</span>
</div>
{{if not (eq .Team.LowerName "owners")}}