internal/web/templates/mrnew.html

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

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