43 lines
1.3 KiB
Twig
43 lines
1.3 KiB
Twig
{% extends 'layout.twig' %}
|
|
|
|
{% block title %}Add New Benchmark{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<div class="row mb-4">
|
|
<div class="col-12">
|
|
<h1>Add new benchmark</h1>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<form action="{{ url_for('benchmark.add') }}" method="POST">
|
|
<div class="row">
|
|
<div class="col-9 mb-3">
|
|
<label class="form-label" for="benchmark_name">Benchmark name:</label>
|
|
<input id="benchmark_name" class="form-control" type="text" name="benchmark_name">
|
|
</div>
|
|
|
|
<div class="col-3 mb-3">
|
|
<label class="form-label" for="benchmark_scoring">Scoring type:</label>
|
|
<select id="benchmark_scoring" class="form-select" name="benchmark_scoring">
|
|
<option value="fps">Frames per Second (fps)</option>
|
|
<option value="ms">Frame Time (ms)</option>
|
|
<option value="pts">Total Points</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row mb-3">
|
|
<div class="col-12">
|
|
<label for="benchmark_description">Description</label>
|
|
<textarea id="benchmark_description" class="form-control" name="benchmark_description" rows="5" placeholder="Describe this benchmark..."></textarea>
|
|
</div>
|
|
</div>
|
|
|
|
<input class="btn btn-primary" type="submit" value="Create Benchmark">
|
|
</form>
|
|
</div>
|
|
|
|
{% endblock %}
|