26 lines
680 B
HTML
26 lines
680 B
HTML
{{template "header" .}}
|
|
<div class="mainbody">
|
|
{{if not .Success}}
|
|
<!-- not successful -->
|
|
<p>If you upload your CSV file from Cake here, we will display some graphs here</p>
|
|
<div class="indent">
|
|
<form enctype="multipart/form-data" action="/rewards" method="post">
|
|
<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" .}} |