You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
865 B
31 lines
865 B
<script>
|
|
let Data = new GetJson("/api/admin/table/{{ .Table }}/{{ .Id }}/");
|
|
</script>
|
|
|
|
<blockstart>
|
|
<h1>Admin Tables</h1>
|
|
|
|
<block x-init="item = await Data.oneThing()" x-data="{item: {}}">
|
|
<form method="POST" action="/api/admin/table/{{ .Table }}/{{ .Id }}/">
|
|
<card>
|
|
<top><h1>{{ .Table }} : {{ .Id }}</h1></top>
|
|
<middle>
|
|
<template x-for="(value, key) in item">
|
|
<div>
|
|
<label x-text="key" x-bind:for="key"></label>
|
|
<input x-text="value" x-bind:value="value" x-bind:id="key" />
|
|
</div>
|
|
</template>
|
|
</middle>
|
|
<bottom>
|
|
<button-group>
|
|
<button type="button">Back</button>
|
|
<button type="submit">Update</button>
|
|
<button type="button">Delete</button>
|
|
</button-group>
|
|
</bottom>
|
|
</card>
|
|
</form>
|
|
</block>
|
|
|
|
</blockstart>
|
|
|