~gitpocket/gitpocket

4
381360f5ede020e5ff71e7fe9111c4a1b0d3cdd6
mainfeed-discovery
gitpocket/templates/create.html -rw-r--r--1.4 KiB ViewLogBlameView rawPermalink 1773b7c386 feat(ui): suggest repository names 16 days ago
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
{{define "content"}}
<h3>Create new repository</h3>
<form method="post" action="/create" class="twocol">
<div>
{{with .Data.Orgs}}<label>Owner <select name="owner"><option value="{{$.User.Name}}">~{{$.User.Name}}</option>{{range .}}<option value="{{.Name}}"{{if eq .Name $.Data.Owner}} selected{{end}}>~{{.Name}}</option>{{end}}</select></label>{{end}}
<label>Repository name <input name="name" required autofocus pattern="[a-z0-9][a-z0-9_.-]{0,38}" placeholder="{{.Data.Suggest}}" value="{{.Data.Name}}"></label>
<label>Description <input name="description" maxlength="200" placeholder="Short description, shown in lists" value="{{.Data.Description}}"></label>
<label>Tags <input name="tags" placeholder="Up to three comma separated topics" value="{{.Data.Tags}}"></label>
<div class="actions"><button class="btn primary">Create repository ▸</button></div>
</div>
<div>
<span class="legend">Visibility</span>
<label class="radio"><input type="radio" name="visibility" value="public" checked> Public<small>Shown on your profile and listed in the public index</small></label>
<label class="radio"><input type="radio" name="visibility" value="unlisted"> Unlisted<small>Visible to anyone who knows the URL, but not shown on your profile</small></label>
<label class="radio"><input type="radio" name="visibility" value="private"> Private<small>Only visible to you</small></label>
</div>
</form>
{{end}}