added default values for uploaded file. added validation so that filename is not null in bulk imports.

This commit is contained in:
ivancheahhh
2024-01-04 17:07:36 -07:00
parent e856e9d6ba
commit 9ad5039823
7 changed files with 21 additions and 5 deletions

View File

@@ -16,9 +16,15 @@
<div class="alert alert-danger" role="alert">
Failure to format the data correctly can cause data corruption. Please make sure you make a copy of the local database before proceeding.
</div>
@if (Model == "gas")
@if (Model == "gasrecord")
{
<a class="btn btn-link" href="/defaults/gassample.csv" target="_blank">Download Sample</a>
} else if (Model == "servicerecord" || Model == "repairrecord")
{
<a class="btn btn-link" href="/defaults/servicerecordsample.csv" target="_blank">Download Sample</a>
} else if (Model == "taxrecord")
{
<a class="btn btn-link" href="/defaults/taxrecordsample.csv" target="_blank">Download Sample</a>
}
</div>
</div>