internal/web/templates/mrnew.html

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

26 lines · 1367 bytes

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