23 lines
No EOL
624 B
HTML
23 lines
No EOL
624 B
HTML
{{ $buildOpts := ((.Context).Value "adapter").BuildOptions }}
|
|
{{ $csrfToken := (.Context).Value "csrfToken" }}
|
|
|
|
{{ template "header" . }}
|
|
|
|
<h2>Build</h2>
|
|
|
|
<form class="build" method="POST" action="/build-run">
|
|
<input hidden type="text" name="csrfToken" value="{{$csrfToken}}"/>
|
|
<details><summary>Build Options</summary>
|
|
{{ if $buildOpts }}
|
|
{{ range $optName := $buildOpts }}
|
|
<label>{{$optName}} <input type="text" name="{{$optName}}"/></label>
|
|
{{ end }}
|
|
{{ else }}
|
|
<span>There are no build options for this adapter.</span>
|
|
{{ end }}
|
|
</details>
|
|
|
|
<input type="submit" value="Build"/>
|
|
</form>
|
|
|
|
{{ template "footer" . }} |