aboutsummaryrefslogtreecommitdiff
path: root/templates/index.tmpl
blob: ae7f6747e8f506135ea1732727f54b8ab1886e4c (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
36
37
{{ define "index" }}
{{ template "_head" }}
<div class="container">
<table class="table">
  <thead>
    <tr>
      <th scope="col">ID</th>
      <th scope="col">Title</th>
      <th scope="col">Link</th>
      <th scope="col">Output</th>
      <th 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>
          <span id="status_{{ .ID }}" class="tag is-primary is-light"></span>
      </td>
      <td>
        <a href="entries/{{ .ID }}" >Edit</a>
        </span>
        <a  onclick="deleteEntry({{ .ID }})">Delete</a>
      </td>
    </tr>
    {{ end }}
  </tbody>
</table>
</div>
<a href="/entries/createEntry" class="button">Create</a>
{{ template "_footer" }}
{{ end }}