Split out ability to upload flyover data from pool uploads
Tons of changes here, all in the name of quickly getting to where I can create test compliance letters.
This commit is contained in:
parent
9939434cb3
commit
ff2ec0ad14
38 changed files with 4204 additions and 233 deletions
|
|
@ -79,6 +79,8 @@ func displayUploadType(s string) string {
|
|||
switch s {
|
||||
case "PoolList":
|
||||
return "Green Pool List"
|
||||
case "Flyover":
|
||||
return "Flyover"
|
||||
default:
|
||||
return "Unknown upload type"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -204,12 +204,14 @@ document.addEventListener('DOMContentLoaded', onLoad);
|
|||
</div>
|
||||
|
||||
<div class="d-flex justify-content-between mt-4 mb-5">
|
||||
<form action="{{ .C.URL.Discard }}" method="POST">
|
||||
<form action="{{ call .URL.Upload.Discard .C.CSVFileID }}" method="POST">
|
||||
<button type="submit" class="btn btn-outline-danger">Discard</button>
|
||||
</form>
|
||||
<button class="btn btn-primary" id="confirmUploadBtn">
|
||||
<i class="bi bi-check2 me-1"></i> Confirm and Submit Data
|
||||
</button>
|
||||
<form action="{{ call .URL.Upload.Commit .C.CSVFileID }}" method="POST">
|
||||
<button class="btn btn-primary" id="confirmUploadBtn">
|
||||
<i class="bi bi-check2 me-1"></i> Confirm and Submit Data
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@
|
|||
</div>
|
||||
<div class="card-body">
|
||||
<form
|
||||
action="{{ .URL.Upload.PoolBob }}"
|
||||
action="{{ .URL.Upload.PoolFlyover }}"
|
||||
method="POST"
|
||||
enctype="multipart/form-data"
|
||||
>
|
||||
|
|
@ -56,7 +56,7 @@
|
|||
</div>
|
||||
<a
|
||||
class="btn btn-primary btn-lg w-100"
|
||||
href="{{ .URL.Upload.PoolBob }}"
|
||||
href="{{ .URL.Upload.PoolFlyover }}"
|
||||
>
|
||||
<i class="bi bi-upload me-2"></i>Let's do this
|
||||
</a>
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@
|
|||
<td>
|
||||
<a
|
||||
class="btn btn-sm btn-outline-primary"
|
||||
href="/upload/{{ .ID }}"
|
||||
href="/configuration/upload/{{ .ID }}"
|
||||
>View</a
|
||||
>
|
||||
</td>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue