internal/web/templates/issuenew.html

v1.42.0
gitbay/internal/web/templates/issuenew.html history · blame · raw

20 lines · 1322 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 .Notice}}<p class="error" role="alert">{{.Notice}}</p>{{end}}
 6{{if gt (len .Templates) 1}}<p class="meta">template:
 7{{range .Templates}}{{if eq .Name $.Template}}<strong>{{.Name}}</strong>{{else}}<a href="?template={{.Name}}">{{.Name}}</a>{{end}} {{end}}</p>{{end}}
 8{{if .Draft.Is "body"}}{{template "previewblock" .Draft.HTML}}{{end}}
 9<form method="post" action="/{{.Repo.OwnerName}}/{{.Repo.Name}}/issues/new" class="commentform">
10<p><input type="text" name="title" aria-label="Title" placeholder="title" value="{{.Title}}" required></p>
11<p><textarea name="body" aria-label="Description" rows="12">{{.Body}}</textarea></p>
12{{template "formatpicker" .Format}}
13{{if .CanWrite}}
14<p><input type="text" name="labels" aria-label="Labels" placeholder="labels, space-separated (optional)" value="{{.Labels}}"></p>
15<p><input type="text" name="milestone" aria-label="Milestone" placeholder="milestone (optional)" value="{{.Milestone}}"></p>
16<p><input type="text" name="assignee" aria-label="Assignee" placeholder="assignees, space-separated (optional)" value="{{.Assignee}}"></p>
17{{end}}
18<p><button type="submit">Open issue</button> {{template "previewbtn"}}</p>
19</form>
20{{end}}