25 lines
651 B
HTML
25 lines
651 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">
|
||
|
<p>
|
||
|
<form enctype="multipart/form-data" action="/rewards" method="post">
|
||
|
<input type="file" name="csvFile" />
|
||
|
<input type="submit" value="upload" />
|
||
|
</form>
|
||
|
</p>
|
||
|
</div>
|
||
|
{{if .Uploaded}}
|
||
|
<!-- Uploaded but not successful -->
|
||
|
<div class="err">
|
||
|
<p>Please only upload .csv Files!</p>
|
||
|
</div>
|
||
|
{{end}}
|
||
|
{{else}}
|
||
|
<!-- successful -->
|
||
|
{{template "barGraph" .}}
|
||
|
{{end}}
|
||
|
</div>
|
||
|
{{template "footer" .}}
|