1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{# Summary row: open MR from branch picks. Expects: project, branches [ { short, ref } ], theirs_default_ref, ours_default_ref #}
<form method="post" action="/mr/create" class="d-flex flex-wrap align-items-center gap-2">
<input type="hidden" name="project" value="{{ project }}" />
<label for="summary-mr-theirs" class="form-label mb-0 text-muted small">Theirs</label>
<select name="theirs" id="summary-mr-theirs" class="form-select form-select-sm" style="width: auto; min-width: 10rem;" required>
{% for b in branches %}
<option value="{{ b.ref }}" {% if b.ref == theirs_default_ref %}selected{% endif %}>{{ b.short }}</option>
{% endfor %}
</select>
<span class="text-muted" aria-hidden="true">→</span>
<label for="summary-mr-ours" class="form-label mb-0 text-muted small">Ours</label>
<select name="ours" id="summary-mr-ours" class="form-select form-select-sm" style="width: auto; min-width: 10rem;" required>
{% for b in branches %}
<option value="{{ b.ref }}" {% if b.ref == ours_default_ref %}selected{% endif %}>{{ b.short }}</option>
{% endfor %}
</select>
<button type="submit" class="btn btn-sm btn-primary">Open merge request</button>
</form>