parent
7bbf644dd5
commit
dabf5b057c
@ -1 +1 @@ |
|||||||
0.4.7.0731 Alpha |
0.4.7.0801 Alpha |
@ -1,127 +1,82 @@ |
|||||||
{{template "base/head" .}} |
{{template "ng/base/head" .}} |
||||||
{{template "base/navbar" .}} |
{{template "ng/base/header" .}} |
||||||
<div class="container" id="body"> |
<div id="repo-wrapper"> |
||||||
<form action="/repo/migrate" method="post" class="form-horizontal card" id="repo-create"> |
<form id="repo-migrate-form" class="form form-align panel panel-radius" action="/repo/migrate" method="post"> |
||||||
{{.CsrfTokenHtml}} |
{{.CsrfTokenHtml}} |
||||||
<h3>Repository Migration</h3> |
<div class="panel-header"><h2>{{.i18n.Tr "new_migrate"}}</h2></div> |
||||||
{{template "base/alert" .}} |
<div class="panel-content"> |
||||||
<!-- <div class="form-group"> |
{{template "ng/base/alert" .}} |
||||||
<label class="col-md-2 control-label">From<strong class="text-danger">*</strong></label> |
<div class="field"> |
||||||
<div class="col-md-8"> |
<label class="req" for="url">HTTPS URL</label> |
||||||
<select class="form-control" name="from"> |
<input class="ipt ipt-radius {{if .Err_HttpsUrl}}ipt-error{{end}}" id="url" name="url" type="text" value="{{.url}}" required /> |
||||||
<option value="github">GitHub</option> |
|
||||||
</select> |
|
||||||
</div> |
</div> |
||||||
</div> --> |
<div class="field"> |
||||||
|
<span class="form-label"></span> |
||||||
<div class="form-group"> |
<button class="btn btn-large btn-gray btn-radius" id="auth-button" data-toggle="collapse" data-target="#repo-import-auth">{{.i18n.Tr "repo.need_auth"}}</button> |
||||||
<label class="col-md-2 control-label">HTTPS URL<strong class="text-danger">*</strong></label> |
<div id="repo-migrate-auth" {{if not .Err_Auth}}class="hide"{{end}}> |
||||||
<div class="col-md-8"> |
<div class="field"> |
||||||
<input name="url" type="text" class="form-control" placeholder="Type your migration repository HTTPS URL" value="{{.url}}" required="required" > |
<label for="auth_username">{{.i18n.Tr "username"}}</label> |
||||||
</div> |
<input class="ipt ipt-radius {{if .Err_Auth}}ipt-error{{end}}" id="auth_username" name="auth_username" type="text" value="{{.auth_username}}" /> |
||||||
</div> |
|
||||||
|
|
||||||
<div class="form-group"> |
|
||||||
<div class="col-md-offset-2 col-md-8"> |
|
||||||
<a class="btn btn-default" data-toggle="collapse" data-target="#repo-import-auth">Need Authorization</a> |
|
||||||
</div> |
|
||||||
<div id="repo-import-auth" class="collapse"> |
|
||||||
<div class="form-group"> |
|
||||||
<label class="col-md-2 control-label">Username</label> |
|
||||||
<div class="col-md-8"> |
|
||||||
<input name="auth_username" type="text" class="form-control" placeholder="Type your user name" value="{{.auth_username}}" > |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
<div class="form-group"> |
|
||||||
<label class="col-md-2 control-label">Password</label> |
|
||||||
<div class="col-md-8"> |
|
||||||
<input name="auth_password" type="password" class="form-control" placeholder="Type your password" value="{{.auth_password}}" > |
|
||||||
</div> |
</div> |
||||||
</div> |
<div class="field"> |
||||||
</div> |
<label for="auth_password">{{.i18n.Tr "password"}}</label> |
||||||
</div> |
<input class="ipt ipt-radius {{if .Err_Auth}}ipt-error{{end}}" id="auth_password" name="auth_password" type="text" value="{{.auth_password}}" /> |
||||||
<hr/> |
|
||||||
<div class="form-group"> |
|
||||||
<label class="col-md-2 control-label">Owner<strong class="text-danger">*</strong></label> |
|
||||||
<div class="col-md-8"> |
|
||||||
<div class="btn-group" id="repo-owner-switch"> |
|
||||||
<button type="button" class="btn btn-default" id="repo-owner-current"> |
|
||||||
<img src="{{.SignedUser.AvatarLink}}?s=28" alt="user-avatar" title="username" id="repo-owner-avatar"> |
|
||||||
<span id="repo-owner-name">{{.SignedUser.Name}}</span> |
|
||||||
</button> |
|
||||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> |
|
||||||
<span class="caret"></span> |
|
||||||
</button> |
|
||||||
<div class="dropdown-menu clone-group-btn no-propagation"> |
|
||||||
<ul id="dashboard-switch-menu" class="list-unstyled"> |
|
||||||
<li data-uid="{{.SignedUser.Id}}" class="checked"> |
|
||||||
<a> |
|
||||||
<i class="fa fa-check"></i> |
|
||||||
<img src="{{.SignedUser.AvatarLink}}?s=28" alt="user-avatar" title="username"> |
|
||||||
{{.SignedUser.Name}} |
|
||||||
</a> |
|
||||||
</li> |
|
||||||
{{range .Orgs}} |
|
||||||
<li data-uid="{{.Id}}"> |
|
||||||
<a> |
|
||||||
<i class="fa fa-check"></i> |
|
||||||
<img src="{{.AvatarLink}}?s=28" alt="user-avatar" title="username"> |
|
||||||
{{.Name}} |
|
||||||
</a> |
|
||||||
</li> |
|
||||||
{{end}} |
|
||||||
</ul> |
|
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
<input type="hidden" value="{{.SignedUserId}}" name="uid" id="repo-owner-id"/> |
<hr/> |
||||||
</div> |
<div class="field"> |
||||||
|
<label for="owner" class="req">{{.i18n.Tr "repo.owner"}}</label> |
||||||
<div class="form-group {{if .Err_RepoName}}has-error has-feedback{{end}}"> |
<input id="repo-owner-id" type="hidden" name="uid" value="{{.ContextUser.Id}}" /> |
||||||
<label class="col-md-2 control-label">Repository<strong class="text-danger">*</strong></label> |
<div class="inline-block drop"> |
||||||
<div class="col-md-8"> |
<a href="#" class="drop-bottom"> |
||||||
<input name="repo" type="text" class="form-control" placeholder="Type your repository name" value="{{.repo}}" required="required"> |
<img class="avatar" src="{{.ContextUser.AvatarLink}}" id="repo-owner-avatar" alt="user-avatar"> |
||||||
<span class="help-block">Great repository names are short and memorable. </span> |
<strong id="repo-owner-name">{{.ContextUser.Name}}</strong> |
||||||
</div> |
</a> |
||||||
</div> |
<ul class="drop-down menu menu-vertical menu-radius switching-list" id="repo-create-owner-list"> |
||||||
|
<li {{if eq $.ContextUser.Id .SignedUser.Id}}class="checked"{{end}} data-uid="{{.SignedUser.Id}}"> |
||||||
<div class="form-group"> |
<a> |
||||||
<label class="col-md-2 control-label">Migration Type</label> |
<i class="octicon octicon-check"></i> |
||||||
<div class="col-md-8"> |
<img class="avatar" src="{{.SignedUser.AvatarLink}}" alt="user-avatar"> |
||||||
<div class="checkbox"> |
<strong>{{.SignedUser.Name}}</strong> |
||||||
<label> |
</a> |
||||||
<input type="checkbox" name="mirror" {{if .mirror}}checked{{end}}> |
</li> |
||||||
<strong>This repository is a mirror</strong> |
{{range .Orgs}} |
||||||
</label> |
<li {{if eq $.ContextUser.Id .Id}}class="checked"{{end}} data-uid="{{.Id}}"> |
||||||
</div> |
<a> |
||||||
</div> |
<i class="octicon octicon-check"></i> |
||||||
</div> |
<img class="avatar" src="{{.AvatarLink}}" alt="user-avatar"> |
||||||
|
<strong>{{.Name}}</strong> |
||||||
<div class="form-group"> |
</a> |
||||||
<label class="col-md-2 control-label">Visibility</label> |
</li> |
||||||
<div class="col-md-8"> |
{{end}} |
||||||
<div class="checkbox"> |
</ul> |
||||||
<label> |
|
||||||
<input type="checkbox" name="private" {{if .private}}checked{{end}}> |
|
||||||
<strong>This repository is private</strong> |
|
||||||
</label> |
|
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
</div> |
<div class="field"> |
||||||
|
<label class="req" for="repo-name">{{.i18n.Tr "repo.repo_name"}}</label> |
||||||
<div class="form-group {{if .Err_Description}}has-error has-feedback{{end}}"> |
<input class="ipt ipt-radius {{if .Err_RepoName}}ipt-error{{end}}" id="repo-name" name="repo_name" type="text" value="{{.repo_name}}" required /> |
||||||
<label class="col-md-2 control-label">Description</label> |
|
||||||
<div class="col-md-8"> |
|
||||||
<textarea name="desc" class="form-control" placeholder="Type your repository description">{{.desc}}</textarea> |
|
||||||
</div> |
</div> |
||||||
</div> |
<p class="field"> |
||||||
|
<label for="visibility">{{.i18n.Tr "repo.visibility"}}</label> |
||||||
<div class="form-group"> |
<input class="ipt-chk" id="visibility" name="private" type="checkbox" {{if .private}}checked{{end}} /> |
||||||
<div class="col-md-offset-2 col-md-8"> |
<span>{{.i18n.Tr "repo.visiblity_helper" | Str2html}}</span> |
||||||
<button type="submit" class="btn btn-lg btn-primary">Migrate repository</button> |
</p> |
||||||
<a href="/" class="text-danger">Cancel</a> |
<p class="field"> |
||||||
|
<label for="visibility">{{.i18n.Tr "repo.migrate_type"}}</label> |
||||||
|
<input class="ipt-chk" id="visibility" name="mirror" type="checkbox" {{if .mirror}}checked{{end}} /> |
||||||
|
<span>{{.i18n.Tr "repo.migrate_type_helper" | Str2html}}</span> |
||||||
|
</p> |
||||||
|
<div class="field clear"> |
||||||
|
<label class="left" for="desc">{{.i18n.Tr "repo.repo_desc"}}</label> |
||||||
|
<textarea class="ipt ipt-radius {{if .Err_Description}}ipt-error{{end}}" id="desc" name="desc">{{.desc}}</textarea> |
||||||
</div> |
</div> |
||||||
|
<p class="field"> |
||||||
|
<label for="repo-create-submit"></label> |
||||||
|
<button class="btn btn-large btn-blue btn-radius" id="repo-create-submit">{{.i18n.Tr "repo.migrate_repo"}}</button> |
||||||
|
<a class="btn btn-small btn-gray btn-radius" id="repo-create-cancel" href="/"><strong>{{.i18n.Tr "cancel"}}</strong></a> |
||||||
|
</p> |
||||||
</div> |
</div> |
||||||
</form> |
</form> |
||||||
</div> |
</div> |
||||||
{{template "base/footer" .}} |
{{template "ng/base/footer" .}} |
Loading…
Reference in new issue