Skip to content

Commit 565023b

Browse files
Make buttons on patch page single-click-to-submit
1 parent e6bd130 commit 565023b

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

app/templates/v2_patch.html

+3-10
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,10 @@ <h2>Confirmation</h2>
6363

6464
<form action="" method="post" name="project">
6565
{{ form.hidden_tag() }}
66-
67-
{% for x in form.confirmation %}
68-
<div class="form-check">
69-
<label class="form-check-label">
70-
{{ x }} {{ x.data }}
71-
</label>
72-
</div>
66+
{% for choice, label in form.confirmation.choices %}
67+
<button type="submit" class="btn {% if choice == form.confirmation.data %}btn-primary focus active{%else%}btn-outline-secondary{% endif %}" name="confirmation" value="{{ choice }}">{{ label }}</button>
7368
{% endfor %}
74-
75-
<button type="submit" class="btn btn-primary">Submit</button>
76-
</form>
69+
</form>
7770

7871
<h2>Runs</h2>
7972
<table class="table table-sm">

0 commit comments

Comments
 (0)