aboutsummaryrefslogtreecommitdiff
path: root/templates/index.tmpl
blob: 1880b5f70be19992a54660748e3b8d886a711285 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{{ 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 }}" >Edit</a>
        </span>
        <a href="#" onclick="deleteEntry({{ .ID }})">Delete</a>
      </td>
    </tr>
    {{ end }}
  </tbody>
</table>
<a href="/entries" role="button">Create</a>
{{ template "_footer" }}
{{ end }}