2023-12-02 22:16:16 -05:00
|
|
|
{{ template "header" . }}
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<h2>Create a test</h2>
|
|
|
|
|
|
|
|
<form class="twelve columns" action="/test/create" method="POST">
|
|
|
|
<div class="row">
|
2024-05-29 09:03:14 -04:00
|
|
|
<div class="columns four">
|
2024-05-29 08:57:52 -04:00
|
|
|
<label for="test_hardware">
|
|
|
|
Hardware Component:
|
|
|
|
<select id="test_hardware" class="u-full-width" name="test_hardware">
|
2024-05-29 09:00:14 -04:00
|
|
|
{{ range $hw := .hardware }}
|
2024-05-29 08:57:52 -04:00
|
|
|
<option value="{{ $hw.ID }}">{{ $hw.Name }}</option>
|
|
|
|
{{ end }}
|
|
|
|
</select>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
2024-05-29 09:03:14 -04:00
|
|
|
<div class="columns eight">
|
2024-05-29 08:57:52 -04:00
|
|
|
<label for="test_name">
|
|
|
|
Test name:
|
|
|
|
<input id="test_name" class="u-full-width" type="text" name="test_name" placeholder="My hardware benchmarking test">
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="columns twelve">
|
|
|
|
<label for="test_benchmarks">
|
|
|
|
Benchmarks to Test:
|
|
|
|
<select id="test_benchmarks" class="u-full-width" name="test_benchmarks" multiple>
|
2024-05-29 09:00:14 -04:00
|
|
|
{{ range $bm := .benchmarks }}
|
2024-05-29 08:57:52 -04:00
|
|
|
<option value="{{ $bm.ID }}">{{ $bm.Name }}</option>
|
|
|
|
{{ end }}
|
|
|
|
</select>
|
|
|
|
</label>
|
|
|
|
</div>
|
2023-12-02 22:16:16 -05:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<label for="test_description">
|
|
|
|
Test description:
|
|
|
|
<textarea id="test_description" class="twelve columns" cols="30" rows="10" name="test_description"></textarea>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<input class="button-primary u-full-width" type="submit" value="Submit">
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ template "footer" . }}
|