Now have a simple table list index and a table view, but the templates aren't good enough to easily use the Go reflect data. Will find one tomorrow that's better.
This commit is contained in:
parent
d481c260c5
commit
fa7f886a59
3 changed files with 55 additions and 2 deletions
17
views/admin/table/index.html
Normal file
17
views/admin/table/index.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
<blockstart>
|
||||
|
||||
<h1>{{ .TableName }} </h1>
|
||||
|
||||
<block>
|
||||
<table>
|
||||
<tr><th>ID</th></tr>
|
||||
|
||||
{{ range $index, $row := .Table }}
|
||||
<tr>
|
||||
<td>{{ $row }}</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
</table>
|
||||
</block>
|
||||
|
||||
</blockstart>
|
Loading…
Add table
Add a link
Reference in a new issue