goCake/templates/rewards.html

30 lines
817 B
HTML

{{template "header" .}}
<div class="mainbody">
{{if not .Success}}
<!-- not successful -->
<p>If you upload your CSV file from {{.Title}} here, we will display some graphs here</p>
<div class="indent">
{{ if eq .Title "Cake" }}
<form enctype="multipart/form-data" action="/rewards" method="post">
{{ else }}
<form enctype="multipart/form-data" action="/kraken" method="post">
{{ end }}
<input type="file" name="csvFile" />
<input type="submit" value="upload" />
</form>
</div>
{{if .Uploaded}}
<!-- Uploaded but not successful -->
{{if ne .ErrorText ""}}
<div class="err">
<p>{{.ErrorText}}</p>
</div>
{{end}}
{{end}}
{{else}}
<!-- successful -->
{{template "barGraph" .}}
<!-- {{template "table" .}} -->
{{end}}
</div>
{{template "footer" .}}