2022-11-25 19:39:51 -05:00
|
|
|
{% extends 'layout.twig' %}
|
|
|
|
|
|
|
|
{% block title %}Add New Test{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="twelve columns">
|
|
|
|
<h1>Add new test</h1>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="twelve columns">
|
|
|
|
<form action="{{ url_for('test.add') }}" method="POST" class="u-full-width">
|
|
|
|
<div class="row">
|
2024-06-03 08:38:28 -04:00
|
|
|
<div class="six columns">
|
2023-10-07 23:45:21 -04:00
|
|
|
<label>
|
2024-04-06 12:08:23 -04:00
|
|
|
Test title:
|
|
|
|
<input class="u-full-width" type="text" name="test_title" placeholder="My new test">
|
2023-10-07 23:45:21 -04:00
|
|
|
</label>
|
2022-11-25 19:39:51 -05:00
|
|
|
</div>
|
|
|
|
|
2024-06-03 08:38:28 -04:00
|
|
|
<div class="six columns">
|
2023-10-07 23:45:21 -04:00
|
|
|
<label>
|
|
|
|
Hardware component:
|
|
|
|
<select class="u-full-width" name="test_component">
|
|
|
|
{% for c in components %}
|
|
|
|
<option value="{{ c.id }}">{{ c.name }}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</label>
|
2022-11-25 19:39:51 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2024-06-03 08:38:28 -04:00
|
|
|
<div class="row">
|
|
|
|
<div class="twelve columns">
|
|
|
|
<label>
|
|
|
|
Benchmarks:
|
2024-06-03 09:43:33 -04:00
|
|
|
<select id="benchmark-selector" class="u-full-width" name="test_benchmarks[]" multiple>
|
2024-06-03 08:38:28 -04:00
|
|
|
{% for b in benchmarks %}
|
|
|
|
<option value="{{ b.id }}">{{ b.name }}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2024-04-06 12:08:23 -04:00
|
|
|
<div class="row">
|
|
|
|
<div class="twelve columns">
|
|
|
|
<label>
|
|
|
|
Test description:
|
|
|
|
<textarea class="u-full-width" name="test_description" rows="8"></textarea>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-11-25 19:39:51 -05:00
|
|
|
<input class="button button-primary u-full-width" type="submit" value="Submit">
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|