[Issue #11] - reworked the benchmark profile add page to be more sensible; added links for editing and deleting 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:
@@ -1,17 +1,27 @@
|
||||
{{ template "header" . }}
|
||||
|
||||
<div class="row">
|
||||
<h2>Add profile for {{ .benchmark.Name }}</h2>
|
||||
<h2>Add benchmark settings profile</h2>
|
||||
|
||||
<form class="twelve columns" action="/benchmark/{{ .benchmark.ID }}/profile/add" method="POST">
|
||||
<form class="twelve columns" action="/benchmark/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 }}">
|
||||
{{ if .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 }}">
|
||||
{{ end }}
|
||||
|
||||
{{ if .benchmarks }}
|
||||
<select id="benchmark_profile_benchmark" class="u-full-width" name="benchmark_profile_benchmark">
|
||||
{{ range $benchmark := .benchmarks }}
|
||||
<option value="{{ $benchmark.ID }}">{{ $benchmark.Name }}</option>
|
||||
{{ end }}
|
||||
</select>
|
||||
{{ end }}
|
||||
</label>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -13,11 +13,17 @@
|
||||
|
||||
<h4>Profiles for this Benchmark</h4>
|
||||
|
||||
<p><a href="/benchmark/{{ .benchmark.ID }}/profile/add">Add settings profile</a></p>
|
||||
<p><a href="/benchmark/profile/add?benchmark={{ .benchmark.ID }}">Add settings profile</a></p>
|
||||
|
||||
<ul class="benchmark-profiles">
|
||||
{{ range $profile := .benchmark.BenchmarkProfiles }}
|
||||
<li>{{ $profile.Label }}</li>
|
||||
<li>
|
||||
{{ $profile.Label }}
|
||||
<span>
|
||||
<a href="/benchmark/profile/{{ $profile.ID }}/edit">Edit</a>
|
||||
<a href="/benchmark/profile/{{ $profile.ID }}/delete">Delete</a>
|
||||
</span>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user