internal/web/templates/mrnew.html

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

23 lines · 1274 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 .Branches}}<option value="{{.Name}}"{{if eq .Name $.Source}} selected{{end}}>{{.Name}}</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<p><button type="submit">Open merge request</button></p>
20</form>
21<p class="meta">A branch in a fork opens from the CLI:
22<code>gitbay mr create {{.Repo.OwnerName}}/{{.Repo.Name}} --source owner/fork:branch --target {{.Repo.DefaultBranch}} --title "…"</code></p>
23{{end}}