[Issue #11] - added ability to create new benchmark settings profiles
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
37
templates/benchmark/profile/add.tmpl
Normal file
37
templates/benchmark/profile/add.tmpl
Normal file
@@ -0,0 +1,37 @@
|
||||
{{ template "header" . }}
|
||||
|
||||
<div class="row">
|
||||
<h2>Add profile for {{ .benchmark.Name }}</h2>
|
||||
|
||||
<form class="twelve columns" action="/benchmark/{{ .benchmark.ID }}/profile/add" method="POST">
|
||||
<div class="row">
|
||||
<div class="six columns">
|
||||
<label for="benchmark_profile_benchmark">
|
||||
Benchmark:
|
||||
<select id="benchmark_profile_benchmark" class="u-full-width" disabled>
|
||||
<option value="{{ .benchmark.ID }}">{{ .benchmark.Name }}</option>
|
||||
</select>
|
||||
<input type="hidden" name="benchmark_profile_benchmark" value="{{ .benchmark.ID }}">
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="six columns">
|
||||
<label for="benchmark_profile_label">
|
||||
Profile label:
|
||||
<input id="benchmark_profile_label" class="u-full-width" type="text" name="benchmark_profile_label" placeholder="My benchmark settings profile">
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<label for="benchmark_description">
|
||||
Benchmark description:
|
||||
<textarea id="benchmark_description" class="twelve columns" cols="30" rows="10" name="benchmark_description"></textarea>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<input class="button-primary u-full-width" type="submit" value="Submit">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{{ template "footer" . }}
|
||||
@@ -11,6 +11,18 @@
|
||||
|
||||
<hr>
|
||||
|
||||
<h4>Profiles for this Benchmark</h4>
|
||||
|
||||
<p><a href="/benchmark/{{ .benchmark.ID }}/profile/add">Add settings profile</a></p>
|
||||
|
||||
<ul class="benchmark-profiles">
|
||||
{{ range $profile := .benchmark.BenchmarkProfiles }}
|
||||
<li>{{ $profile.Label }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
<hr>
|
||||
|
||||
<h4>Latest Benchmark Results:</h4>
|
||||
|
||||
<p>There are currently no results recorded using this benchmark.</p>
|
||||
|
||||
Reference in New Issue
Block a user