| @@ -9,7 +9,7 @@ | |||
| </h3> | |||
| <div class="ui attached segment"> | |||
| {{template "base/alert" .}} | |||
| <div class="inline required field {{if .Err_Owner}}error{{end}}"> | |||
| <!-- <div class="inline required field {{if .Err_Owner}}error{{end}}"> | |||
| <label>{{.i18n.Tr "repo.owner"}}</label> | |||
| <div class="ui selection owner dropdown"> | |||
| <input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required> | |||
| @@ -38,7 +38,52 @@ | |||
| <label for="repo_name">{{.i18n.Tr "repo.repo_name"}}</label> | |||
| <input id="repo_name" name="repo_name" value="{{.repo_name}}" autofocus required> | |||
| <span class="help"></span> | |||
| </div> --> | |||
| <div class="inline required field"> | |||
| <label for="Alias">项目名称</label> | |||
| <input id="Alias" name="Alias" value="" autofocus required> | |||
| <!-- <span class="help"></span> --> | |||
| </div> | |||
| <div class="inline required fields"> | |||
| <label style="text-align: right;width: 250px!important;word-wrap: break-word;">项目路径</label> | |||
| <div class="required field {{if .Err_Owner}}error{{end}}" style="padding: 0;"> | |||
| <!-- <label>{{.i18n.Tr "repo.owner"}}</label> --> | |||
| <div class="ui selection owner dropdown"> | |||
| <input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required> | |||
| <span class="text" title="{{.ContextUser.Name}}"> | |||
| <img class="ui mini image" src="{{.ContextUser.RelAvatarLink}}"> | |||
| {{.ContextUser.ShortName 20}} | |||
| </span> | |||
| <i class="dropdown icon"></i> | |||
| <div class="menu"> | |||
| <div class="item" data-value="{{.SignedUser.ID}}" title="{{.SignedUser.Name}}"> | |||
| <img class="ui mini image" src="{{.SignedUser.RelAvatarLink}}"> | |||
| {{.SignedUser.ShortName 20}} | |||
| </div> | |||
| {{range .Orgs}} | |||
| <div class="item" data-value="{{.ID}}" title="{{.Name}}"> | |||
| <img class="ui mini image" src="{{.RelAvatarLink}}"> | |||
| {{.ShortName 20}} | |||
| </div> | |||
| {{end}} | |||
| </div> | |||
| </div> | |||
| <!-- <span class="help">{{.i18n.Tr "repo.repo_owner_helper"}}</span> --> | |||
| </div> | |||
| <!-- <div class="required field {{if .Err_RepoName}}error{{end}}"> | |||
| <input id="repo_name" name="repo_name" value="{{.repo_name}}" autofocus required> | |||
| </div> --> | |||
| <div class="ui interval" style="width: 0.6em;font-size: 2rem;line-height: 0px;text-align: center;">/</div> | |||
| <div class="required field {{if .Err_RepoName}}error{{end}}"> | |||
| <!-- <label for="repo_name">{{.i18n.Tr "repo.repo_name"}}</label> --> | |||
| <input style="width: 100% !important;" id="repo_name" name="repo_name" value="{{.repo_name}}" autofocus required> | |||
| <!-- <span class="help"></span> --> | |||
| </div> | |||
| </div> | |||
| <div class="inline field"> | |||
| <label>{{.i18n.Tr "repo.visibility"}}</label> | |||
| <div class="ui checkbox"> | |||