51 lines
1.3 KiB
Plaintext
51 lines
1.3 KiB
Plaintext
<div class="grid-x grid-margin-x">
|
|
<div class="cell small-12">
|
|
<h1>Add new test</h1>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="grid-x grid-margin-x">
|
|
|
|
<form class="cell small-12" action="/test/add" method="post">
|
|
<div class="grid-x grid-padding-x">
|
|
<div class="cell medium-6">
|
|
<label>
|
|
Test name
|
|
<input type="text" name="test_name" placeholder="My hardware test (01/99)">
|
|
</label>
|
|
</div>
|
|
|
|
<div class="cell medium-6">
|
|
<label>
|
|
Type
|
|
<select name="test_hardware">
|
|
<% for h in hardware %>
|
|
<option value="<%= h.id %>"><%= h.name %></option>
|
|
<% end %>
|
|
</select>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="cell medium-4">
|
|
<label>
|
|
Benchmarks
|
|
<select name="test_benchmarks[]" multiple>
|
|
<% for b in benchmarks %>
|
|
<option value="<%= b.id %>"><%= b.name %></option>
|
|
<% end %>
|
|
</select>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="cell medium-8">
|
|
<label>
|
|
Test description
|
|
<textarea name="test_description" placeholder="This is my test for a hardware..."></textarea>
|
|
</label>
|
|
</div>
|
|
|
|
<input type="submit" class="button" value="Submit">
|
|
</form>
|
|
|
|
</div>
|