vole
Clone
Read only, no credentials:
https://rodent.software/vole.git
Write over SSH with a registered key:
git clone ssh://git@rodent.software:2222/vole.git
A free and open-source forge that lives in your Git repo.
Blame · server/web/templates/admin_repo_new.html
Line attribution on main · 34 line(s)
|
455835e7
Keenan Nemetz
15d ago
|
1 | {{define "admin_repo_new"}} |
| 2 | {{template "header" .}} | |
|
9579c1f9
Keenan Nemetz
14d ago
|
3 | <div class="page-head"> |
|
455835e7
Keenan Nemetz
15d ago
|
4 | <div class="page-head-main"> |
| 5 | <h1>New repository</h1> | |
| 6 | <p class="page-sub">The owner becomes the repository's first admin. New repositories are private.</p> | |
| 7 | </div> | |
| 8 | </div> | |
| 9 | ||
| 10 | {{if .Error}}<div class="flash bad">{{.Error}}</div>{{end}} | |
| 11 | ||
|
ed03b3d1
Keenan Nemetz
8h ago
|
12 | <form method="post" action="/-/repos" class="form-block"> |
|
455835e7
Keenan Nemetz
15d ago
|
13 | <input type="hidden" name="csrf" value="{{.CSRF}}"> |
| 14 | <div class="card form-card"> | |
| 15 | <label>Name | |
| 16 | <input type="text" name="name" required maxlength="63" autocomplete="off" value="{{.Name}}" placeholder="lowercase-name"> | |
| 17 | </label> | |
| 18 | <label>Owner | |
| 19 | <select name="owner" required> | |
| 20 | <option value="">Choose an account…</option> | |
|
62576fa8
Keenan Nemetz
15d ago
|
21 | {{range .Accounts}}<option value="{{.Name}}"{{if eq .Name $.Owner}} selected{{end}}>{{.Name}}</option>{{end}} |
|
455835e7
Keenan Nemetz
15d ago
|
22 | </select> |
| 23 | </label> | |
| 24 | <label>Description | |
| 25 | <input type="text" name="description" maxlength="500" value="{{.Description}}" placeholder="What is this repository for?"> | |
| 26 | </label> | |
| 27 | </div> | |
| 28 | <div class="form-actions"> | |
|
9579c1f9
Keenan Nemetz
14d ago
|
29 | <a class="button secondary" href="/">Cancel</a> |
|
455835e7
Keenan Nemetz
15d ago
|
30 | <button type="submit">{{icon "plus"}}Create repository</button> |
| 31 | </div> | |
| 32 | </form> | |
| 33 | {{template "footer" .}} | |
| 34 | {{end}} |