41 lines
1.5 KiB
Plaintext
41 lines
1.5 KiB
Plaintext
<div class="row mb-4">
|
|
<div class="col-12">
|
|
<h1>Editing: <%= benchmark.name %></h1>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<form class="cell small-12" action="/benchmark/<%= benchmark.id %>/edit" method="post">
|
|
<div class="row mb-3">
|
|
<div class="col-9">
|
|
<label for="benchmark_name">Benchmark name</label>
|
|
<input id="benchmark_name" class="form-control" type="text" name="benchmark_name" placeholder="Example benchmark" value="<%= benchmark.name %>">
|
|
</div>
|
|
|
|
<div class="col-3">
|
|
<label for="benchmark_scoring">Scoring type</label>
|
|
<select id="benchmark_scoring" class="form-select" name="benchmark_scoring">
|
|
<option value="fps" <% if benchmark.scoring == 'fps' %>selected<% end %>>Frames per Second (fps)</option>
|
|
<option value="ms" <% if benchmark.scoring == 'ms' %>selected<% end %>>Frame Time (ms)</option>
|
|
<option value="pts" <% if benchmark.scoring == 'pts' %>selected<% end %>>Total Points</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row mb-3">
|
|
<div class="col-12">
|
|
<label for="benchmark_description">Benchmark description</label>
|
|
<textarea id="benchmark_description" class="form-control" name="benchmark_description"><%= benchmark.description %></textarea>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<input class="btn btn-primary w-100" type="submit" value="Submit Changes">
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
</div>
|