summaryrefslogtreecommitdiff
path: root/srv/src/api/tpl/admin-assets.html
blob: 036002e7bf18d1f0a0b9a8fac6c71d9ea34ae4e9 (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
38
39
40
41
42
{{ define "body" }}

<h2>Upload Asset</h2>

<p>
  If the given ID is the same as an existing asset's ID, then that asset will be
  overwritten.
</p>

<form action={{ BlogURL "assets" }} method="POST" enctype="multipart/form-data">
  {{ .CSRFFormInput }}
  <div class="row">
    <div class="four columns">
      <input type="text" placeholder="Unique ID" name="id" />
    </div>
    <div class="four columns">
      <input type="file" name="file" /><br/>
    </div>
    <div class="four columns">
      <input type="submit" value="Upload" />
    </div>
  </div>
</form>

<h2>Existing Assets</h2>

<table>

  {{ range .Payload.IDs }}
    <tr>
      <td><a href="{{ AssetURL . }}" target="_blank">{{ . }}</a></td>
      <td>
        Delete (TODO)
      </td>
    </tr>
  {{ end }}

</table>

{{ end }}

{{ template "base.html" . }}