Reser repo owner to organization when error occurs in repo create page, dashboard news feed page, create organization page
parent
5e81383413
commit
9813161411
File diff suppressed because one or more lines are too long
@ -0,0 +1,31 @@ |
|||||||
|
{{template "ng/base/head" .}} |
||||||
|
{{template "ng/base/header" .}} |
||||||
|
<div id="sign-wrapper"> |
||||||
|
<form class="form-align form panel sign-panel sign-form container panel-radius" id="sign-up-form" action="/org/create" method="post"> |
||||||
|
{{.CsrfTokenHtml}} |
||||||
|
<div class="panel-header"> |
||||||
|
<h2>{{.i18n.Tr "new_org"}}</h2> |
||||||
|
</div> |
||||||
|
<div class="panel-content"> |
||||||
|
{{template "ng/base/alert" .}} |
||||||
|
<p class="field"> |
||||||
|
<label class="req" for="org_name">{{.i18n.Tr "org.org_name_holder"}}</label> |
||||||
|
<input class="ipt ipt-large ipt-radius {{if .Err_OrgName}}ipt-error{{end}}" id="org_name" name="org_name" type="text" value="{{.org_name}}" required/> |
||||||
|
<label></label> |
||||||
|
<span class="help">{{.i18n.Tr "org.org_name_helper"}}</span> |
||||||
|
</p> |
||||||
|
<p class="field"> |
||||||
|
<label class="req" for="email">{{.i18n.Tr "email"}}</label> |
||||||
|
<input class="ipt ipt-large ipt-radius {{if .Err_Email}}ipt-error{{end}}" id="email" name="email" type="email" value="{{.email}}" required/> |
||||||
|
<label></label> |
||||||
|
<span class="help">{{.i18n.Tr "org.org_email_helper"}}</span> |
||||||
|
</p> |
||||||
|
<p class="field"> |
||||||
|
<span class="form-label"></span> |
||||||
|
<button class="btn btn-large btn-blue btn-radius">{{.i18n.Tr "org.create_org"}}</button> |
||||||
|
<a class="btn btn-small btn-gray btn-radius" id="repo-create-cancel" href="/"><strong>{{.i18n.Tr "cancel"}}</strong></a> |
||||||
|
</p> |
||||||
|
</div> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
{{template "ng/base/footer" .}} |
@ -0,0 +1,5 @@ |
|||||||
|
{{template "ng/base/head" .}} |
||||||
|
{{template "ng/base/header" .}} |
||||||
|
{{template "user/dashboard/nav" .}} |
||||||
|
|
||||||
|
{{template "ng/base/footer" .}} |
@ -1,17 +0,0 @@ |
|||||||
{{template "base/head" .}} |
|
||||||
{{template "base/navbar" .}} |
|
||||||
<div id="body-nav"> |
|
||||||
<div class="container"> |
|
||||||
<ul class="nav nav-pills pull-right"> |
|
||||||
<li><a href="/">Feed</a></li> |
|
||||||
<li><a href="/issues">Issues</a></li> |
|
||||||
<li class="active"><a href="/pulls">Pull Requests</a></li> |
|
||||||
<li><a href="/stars">Stars</a></li> |
|
||||||
</ul> |
|
||||||
<h3>Pull Requests</h3> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
<div id="body" class="container" data-page="user"> |
|
||||||
{{if .HasInfo}}<div class="alert alert-info">{{.InfoMsg}}</div>{{end}} |
|
||||||
</div> |
|
||||||
{{template "base/footer" .}} |
|
Loading…
Reference in new issue