{{ define "kontor/data-upload.html" }}
{{ template "header.html" .}}
{{ template "admin-menu.html" .}}
<ul class="nav nav-tabs">
  <li role="presentation"><a href="/admin/user">User</a></li>
  <li role="presentation" class="active"><a href="/admin/data">Data</a></li>
</ul>

<div class="panel panel-default col-sm-6">
  <div class="panel-body">
    <!--If there's an error, display the error-->
    {{ if .ErrorTitle}}
    <p class="bg-danger">
      {{.ErrorTitle}}: {{.ErrorMessage}}
    </p>
    {{end}}
    <!--Create a form that POSTs to the `/u/register` route-->
    <form class="form" action="/admin/data" method="POST" enctype="multipart/form-data">
      <div class="form-group">
        <label for="datafile">Data File</label>
        <input type="file" class="form-control" id="datafile" name="datafile" placeholder="Data File">
      </div>
      <button type="submit" class="btn btn-primary">Upload</button>
    </form>
  </div>
</div>

{{ template "footer.html" .}}
{{end}}
