Added javascript code to add a result in the background without refreshing the page
This commit is contained in:
@ -17,7 +17,7 @@
|
||||
<form id="result-form" class="u-full-width" action="{{ url_for('result.add') }}" method="POST">
|
||||
<div class="row">
|
||||
<div class="four columns">
|
||||
<select class="u-full-width" name="result_benchmark">
|
||||
<select id="result_benchmark" class="u-full-width" name="result_benchmark">
|
||||
{% for b in test.benchmarks %}
|
||||
<option value="{{ b.id }}">{{ b.name }}</option>
|
||||
{% endfor %}
|
||||
@ -25,13 +25,13 @@
|
||||
</div>
|
||||
|
||||
<div class="two columns">
|
||||
<input type="number" step="0.01" name="result_avg" placeholder="0.0">
|
||||
<input id="result_avg" type="number" step="0.01" name="result_avg" placeholder="0.0">
|
||||
</div>
|
||||
<div class="two columns">
|
||||
<input type="number" step="0.01" name="result_min" placeholder="0.0">
|
||||
<input id="result_min" type="number" step="0.01" name="result_min" placeholder="0.0">
|
||||
</div>
|
||||
<div class="two columns">
|
||||
<input type="number" step="0.01" name="result_max" placeholder="0.0">
|
||||
<input id="result_max" type="number" step="0.01" name="result_max" placeholder="0.0">
|
||||
</div>
|
||||
|
||||
<div class="two columns">
|
||||
@ -39,8 +39,8 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="result_test" value="{{ test.id }}">
|
||||
<input type="hidden" name="result_component" value="{{ test.component().id }}">
|
||||
<input id="result_test" type="hidden" name="result_test" value="{{ test.id }}">
|
||||
<input id="result_component" type="hidden" name="result_component" value="{{ test.component().id }}">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user