aboutsummaryrefslogtreecommitdiff
path: root/templates/index.tmpl
blob: 14cb420741e73d970f6161b700904b603c339c53 (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
30
31
32
33
34
35
{{ define "index" }}
{{ template "_head" }}
<table>
  <thead>
    <tr>
      <th scope="col">ID</th>
      <th scope="col">Title</th>
      <th scope="col">Link</th>
      <th scope="col">Output</th>
      <th class="fixed" scope="col">Status</th>
      <th scope="col"></th>
    </tr>
  </thead>
  <tbody>
    {{ range . }}
    <tr>
      <td>{{ .ID }}</td>
      <td>{{ .Title }}</td>
      <td>{{ .Link }}</td>
      <td>{{ .OutputFolder }}</td>
      <td class="fixed">
          <span id="status_{{ .ID }}" class="tag is-primary is-light"></span>
      </td>
      <td>
        <a href="entries/{{ .ID }}" >Edit</a>
        </span>
        <a href="#delete/{{ .ID }}" onclick="deleteEntry({{ .ID }})">Delete</a>
      </td>
    </tr>
    {{ end }}
  </tbody>
</table>
<a href="/entries/createEntry" class="button">Create</a>
{{ template "_footer" }}
{{ end }}