internal/web/templates/mrnew.html
25 lines · 1334 bytes
1{{define "title"}}new merge request · {{.Repo.OwnerName}}/{{.Repo.Name}}{{end}}
2{{define "content"}}
3<h1>New merge request</h1>
4{{if .Notice}}<p class="error" role="alert">{{.Notice}}</p>{{end}}
5<form method="post" action="/{{.Repo.OwnerName}}/{{.Repo.Name}}/mrs/new" class="commentform">
6<p class="branchpick">
7 <label for="source">Merge</label>
8 <select id="source" name="source" required>
9 <option value="">Choose a branch…</option>
10 {{range .Sources}}<option value="{{.}}"{{if eq . $.Source}} selected{{end}}>{{.}}</option>{{end}}
11 </select>
12 <label for="target">into</label>
13 <select id="target" name="target">
14 {{range .Branches}}<option value="{{.Name}}"{{if eq .Name $.Target}} selected{{end}}>{{.Name}}</option>{{end}}
15 </select>
16</p>
17<p><input type="text" name="title" aria-label="Title" placeholder="title" value="{{.Title}}" required></p>
18<p><textarea name="body" aria-label="Description" rows="10" placeholder="what changes, and why">{{.Body}}</textarea></p>
19{{template "formatpicker" .Format}}
20<p><button type="submit">Open merge request</button></p>
21</form>
22<p class="meta">Branches of a fork you can push to are offered as
23<code>owner/name:branch</code>. Fork this repository to propose a change
24without write access here: <code>gitbay repo fork {{.Repo.OwnerName}}/{{.Repo.Name}}</code></p>
25{{end}}