Download this file
| 1 | {{define "newaccount"}}{{template "top" .}} |
| 2 | <h1>New account</h1> |
| 3 | <p class="lede">An account is a project or a team: it owns apps, has members, |
| 4 | and deploys independently of your other accounts.</p> |
| 5 | {{if .FlashErr}}<p class="banner error">{{.FlashErr}}</p>{{end}} |
| 6 | {{if .Flash}}<p class="banner">{{.Flash}}</p>{{end}} |
| 7 | <form class="signin" method="post" action="/accounts/new"> |
| 8 | <input type="hidden" name="csrf" value="{{.CSRF}}"> |
| 9 | <label class="visually-hidden" for="account-name">Account name</label> |
| 10 | <input id="account-name" type="text" name="name" placeholder="kass" autofocus |
| 11 | pattern="[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?"> |
| 12 | <p class="small">a-z, 0-9 and hyphens — it appears in your URLs</p> |
| 13 | <button type="submit">Create account</button> |
| 14 | </form> |
| 15 | <p class="small">Names are deliberately not unique — two accounts may both be |
| 16 | called “blog”. Identity is the short id in the URL, so there is nothing to |
| 17 | squat. You will be its first owner, and you can invite teammates from the |
| 18 | account's page.</p> |
| 19 | {{if .Account}}<p class="small"><a href="{{.Nav}}/">Back to {{.Account.Name}}</a></p>{{end}} |
| 20 | {{template "bottom" .}}{{end}} |
| 21 | |