2022-06-07 06:59:41 +00:00
|
|
|
{{ $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}}"/>
|
|
|
|
{{ if $buildOpts }}
|
2022-06-18 06:17:08 +00:00
|
|
|
<details><summary>Build Options</summary>
|
|
|
|
{{ range $opt := $buildOpts }}
|
|
|
|
{{ if eq ($opt).Type "bool" }}
|
2022-06-19 05:48:39 +00:00
|
|
|
<label class="bool">{{($opt).Name}} <input type="checkbox" name="{{($opt).Name}}:{{($opt).Type}}"/></label><br/>
|
2022-06-18 06:17:08 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ range $opt := $buildOpts }}
|
|
|
|
{{ if eq ($opt).Type "int" }}
|
|
|
|
<label>{{($opt).Name}} <input type="number" step="1" name="{{($opt).Name}}:{{($opt).Type}}"/></label><br/>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ range $opt := $buildOpts }}
|
|
|
|
{{ if eq ($opt).Type "float" }}
|
|
|
|
<label>{{($opt).Name}} <input type="number" step="0.00000001" name="{{($opt).Name}}:{{($opt).Type}}"/></label><br/>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ range $opt := $buildOpts }}
|
|
|
|
{{ if eq ($opt).Type "string" }}
|
|
|
|
<label>{{($opt).Name}} <input type="text" name="{{($opt).Name}}:{{($opt).Type}}"/></label><br/>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ range $opt := $buildOpts }}
|
|
|
|
{{ if eq ($opt).Type "multilinestring" }}
|
|
|
|
<label>{{($opt).Name}} <textarea name="{{($opt).Name}}:{{($opt).Type}}"></textarea></label><br/>
|
|
|
|
{{ end }}
|
2022-06-07 06:59:41 +00:00
|
|
|
{{ end }}
|
|
|
|
</details>
|
2022-06-18 06:17:08 +00:00
|
|
|
{{ end }}
|
2022-06-07 06:59:41 +00:00
|
|
|
<input type="submit" value="Build"/>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
{{ template "footer" . }}
|