Files
wehub-resource-sync e071084ebe
govulncheck / govulncheck (push) Waiting to run
Harness (E2E) / Harnesses (mock LLM) (push) Waiting to run
Harness (E2E) / Provider harnesses (live LLM conformance) (push) Waiting to run
Lint / golangci-lint (push) Waiting to run
Run Tests / Unit Tests (push) Waiting to run
Run Tests / Etcd Integration Tests (push) Waiting to run
chore: import upstream snapshot with attribution
2026-07-13 12:40:33 +08:00

24 lines
841 B
HTML

{{define "content"}}
<h2>{{.ServiceName}}</h2>
<form action="/{{.Action}}" method="POST" data-reactive>
<h3 class="text-lg font-bold mb-2">{{.EndpointName}}</h3>
{{range .Inputs}}
<label class="block font-semibold">{{.Label}}</label>
<input name="{{.Name}}" placeholder="{{.Placeholder}}" class="border rounded px-2 py-1 mb-2 w-full" value="{{.Value}}">
{{end}}
<button class="micro-link mt-2" type="submit">Submit</button>
<div class="js-response"></div>
</form>
{{if .Error}}
<div class="mt-4 text-red-600 font-bold">Error: {{.Error}}</div>
{{end}}
{{if .Response}}
<div class="mt-4">
<h4 class="font-bold mb-2">Response</h4>
{{.ResponseTable}}
<pre class="bg-gray-100 rounded p-2 mt-2">{{.ResponseJSON}}</pre>
</div>
{{end}}
<script src="/main.js"></script>
{{end}}