Switched CSS framework to Bootstrap
This commit is contained in:
@ -4,43 +4,39 @@
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="row">
|
||||
<div class="twelve columns">
|
||||
<div class="row mb-4">
|
||||
<div class="col-12">
|
||||
<h1>Add new benchmark</h1>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="twelve columns">
|
||||
<form action="{{ url_for('benchmark.add') }}" method="POST" class="u-full-width">
|
||||
<div class="row">
|
||||
<div class="nine columns">
|
||||
<label for="benchmark_name">Benchmark name:</label>
|
||||
<input type="text" id="benchmark_name" class="u-full-width" name="benchmark_name">
|
||||
</div>
|
||||
|
||||
<div class="three columns">
|
||||
<label>
|
||||
Scoring type
|
||||
<select class="u-full-width" 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>
|
||||
</label>
|
||||
</div>
|
||||
<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="row">
|
||||
<div class="twelve columns">
|
||||
<label for="benchmark_description">Description</label>
|
||||
<textarea class="u-full-width" name="benchmark_description" id="benchmark_description" rows="5" placeholder="Describe this benchmark..."></textarea>
|
||||
</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>
|
||||
|
||||
<input class="button button-primary u-full-width" type="submit" value="Submit">
|
||||
</form>
|
||||
</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 %}
|
||||
|
@ -4,43 +4,39 @@
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="row">
|
||||
<div class="twelve columns">
|
||||
<div class="row mb-4">
|
||||
<div class="col-12">
|
||||
<h1>Editing Benchmark: {{ benchmark.name }}</h1>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="twelve columns">
|
||||
<form action="{{ url_for('benchmark.edit', { benchmark_id: benchmark.id }) }}" method="POST" class="u-full-width">
|
||||
<div class="row">
|
||||
<div class="nine columns">
|
||||
<label for="benchmark_name">Benchmark name:</label>
|
||||
<input type="text" id="benchmark_name" class="u-full-width" name="benchmark_name" value="{{ benchmark.name }}">
|
||||
</div>
|
||||
|
||||
<div class="three columns">
|
||||
<label>
|
||||
Scoring type
|
||||
<select class="u-full-width" name="benchmark_scoring">
|
||||
<option value="fps" {% if benchmark.scoring == 'fps' %}selected{% endif %}>Frames per Second (fps)</option>
|
||||
<option value="ms" {% if benchmark.scoring == 'ms' %}selected{% endif %}>Frame Time (ms)</option>
|
||||
<option value="pts" {% if benchmark.scoring == 'pts' %}selected{% endif %}>Total Points</option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
<form action="{{ url_for('benchmark.edit', { benchmark_id: benchmark.id }) }}" 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" value="{{ benchmark.name }}">
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="twelve columns">
|
||||
<label for="benchmark_description">Description</label>
|
||||
<textarea class="u-full-width" name="benchmark_description" id="benchmark_description" rows="5" placeholder="Describe this benchmark...">{{ benchmark.description }}</textarea>
|
||||
</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" {% if benchmark.scoring == 'fps' %}selected{% endif %}>Frames per Second (fps)</option>
|
||||
<option value="ms" {% if benchmark.scoring == 'ms' %}selected{% endif %}>Frame Time (ms)</option>
|
||||
<option value="pts" {% if benchmark.scoring == 'pts' %}selected{% endif %}>Total Points</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input class="button button-primary u-full-width" type="submit" value="Submit">
|
||||
</form>
|
||||
</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...">{{ benchmark.description }}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input class="btn btn-primary" type="submit" value="Submit Changes">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
@ -6,8 +6,8 @@
|
||||
<p><a href="{{ url_for('benchmark.add') }}">Create new Benchmark</a></p>
|
||||
|
||||
{% if benchmarks | length > 0 %}
|
||||
<table class="u-full-width">
|
||||
<thead>
|
||||
<table class="table table-hover table-responsive">
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
<th>Benchmark name</th>
|
||||
<th>Description</th>
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
{% block content %}
|
||||
<div class="row">
|
||||
<div class="twelve columns">
|
||||
<div class="col-12">
|
||||
<h1>{{ benchmark.name }}</h1>
|
||||
<p><a href="{{ url_for('benchmark.edit', { benchmark_id: benchmark.id }) }}">Edit</a></p>
|
||||
<p>{{ benchmark.description }}</p>
|
||||
@ -14,12 +14,12 @@
|
||||
<hr>
|
||||
|
||||
<div class="row">
|
||||
<div class="twelve columns">
|
||||
<h3>Tests using this benchmark:</h3>
|
||||
<div class="col-12">
|
||||
<h3 class="mb-3">Tests using this benchmark:</h3>
|
||||
|
||||
{% if benchmark.tests | length > 0 %}
|
||||
<table class="u-full-width">
|
||||
<thead>
|
||||
<table class="table table-hover table-responsive">
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
<th>Test title</th>
|
||||
<th>Benchmarks</th>
|
||||
|
Reference in New Issue
Block a user