diff options
Diffstat (limited to 'templates/index.tmpl')
-rw-r--r-- | templates/index.tmpl | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/templates/index.tmpl b/templates/index.tmpl new file mode 100644 index 0000000..a392761 --- /dev/null +++ b/templates/index.tmpl @@ -0,0 +1,28 @@ +{{ define "index" }} +{{ template "_head" }} +<table role="grid"> + <thead> + <tr> + <th scope="col">ID</th> + <th scope="col">Title</th> + <th scope="col">Output</th> + <th scope="col"></th> + </tr> + </thead> + <tbody> + {{ range . }} + <tr> + <td>{{ .ID }}</td> + <td>{{ .Link }}</td> + <td>{{ .Output_folder }}</td> + <td> + <a href="entries/{{ .ID }}" role="button">Edit</a> + <a href="#" onclick="deleteEntry({{ .ID }})" role="button" class="secondary">Delete</a> + </td> + </tr> + {{ end }} + </tbody> +</table> +<a href="/entries" role="button">Create</a> +{{ template "_footer" }} +{{ end }} |