LocalGovIMS_localgov-ims/src/Admin/Views/FileImport/Import.cshtml
@{
    ViewBag.Title = "Import File";
}

@section Messages {
    @if (TempData.ContainsKey("Message") && TempData["Message"] != null) { Html.RenderPartial("_Message", TempData["Message"]); }
}

@section Header { Import File }

@section Subheader { File details }

@using (Html.BeginForm("Import", "FileImport", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
<div>

    <div class="row mb-3">
        <div class="col col-sm-6 col-md-5 col-lg-4">
            <label class="form-label" for="postedFile">Choose import file</label>
            <input class="form-control" type="file" name="postedFile" id="postedFile" />
        </div>
    </div>

    <div>
        <input type="submit" value="Upload" class="btn btn-primary" />
        @Html.ActionLink("Back", "Back", "FileImport", null, new { @class = "btn btn-secondary" })
    </div>

</div>
}
