fisch/views/admin/edit.html
2025-03-04 20:18:55 +01:00

16 lines
No EOL
530 B
HTML
Executable file

{{template "partials/base-top" .}}
<form action="/admin/{{ .Table }}/edit" method="post">
{{ range .InputFields }}
<label for="{{ .Id }}">{{ .Label }}</label>
<input type="{{ .Type }}" name="{{ .Name }}" id="{{ .Id }}">
{{ end }}
<input type="hidden" name="doEdit">
<input type="hidden" name="id" value="{{ .RowId }}">
<div class="form-footer">
<button type="submit">💾</button>
<a href="/admin/{{ .Table }}/overview"></a>
</div>
</form>
{{template "partials/base-bottom" .}}