internal/web/templates/issuenew.html

9d96712a6988b5d376162e4f31c9ee3525e1ca9a
gitbay/internal/web/templates/issuenew.html history · blame · raw

14 lines · 835 bytes

 1{{define "width"}}bounded{{end}}
 2{{define "title"}}new issue · {{.Repo.OwnerName}}/{{.Repo.Name}}{{end}}
 3{{define "content"}}
 4<h1>New issue</h1>
 5{{if gt (len .Templates) 1}}<p class="meta">template:
 6{{range .Templates}}{{if eq .Name $.Template}}<strong>{{.Name}}</strong>{{else}}<a href="?template={{.Name}}">{{.Name}}</a>{{end}} {{end}}</p>{{end}}
 7<form method="post" action="/{{.Repo.OwnerName}}/{{.Repo.Name}}/issues/new" class="commentform">
 8<p><input type="text" name="title" aria-label="Title" placeholder="title" required></p>
 9<p><textarea name="body" aria-label="Description" rows="12">{{.Body}}</textarea></p>
10{{template "formatpicker" .Format}}
11<p><input type="text" name="labels" aria-label="Labels" placeholder="labels, space-separated (write access)"></p>
12<p><button type="submit">Open issue</button></p>
13</form>
14{{end}}