LocalGovIMS_localgov-ims/src/Admin/Views/Import/Details.cshtml
@model Admin.Models.Import.DetailsViewModel
@{
    ViewBag.Title = "Import";
}


@section Header { @Model.ImportTypeName - @Model.CreatedDate }

@section Subheader { Transaction import details }

@section Actions {
    @if (Model.DataType == ImportDataTypeEnum.Transaction)
    {
        @Html.ActionLink("Transactions", "ListForTransactionImport", "Transaction", new { ImportId = Model.Id }, new { @class = "btn btn-secondary" })
    }
}

<div>

    <div class="row">
        <div class="col-12 col-sm-6 col-md-4 col-lg-3 col-xxl-2">
            @Html.LabelFor(m => m.DataType, new { @class = "form-label fw-bold" })
            <div class="form-label">
                @Html.DisplayFor(m => m.DataType)
            </div>
        </div>
        <div class="col-12 col-sm-6 col-md-4 col-lg-3 col-xxl-2">
            @Html.LabelFor(m => m.ImportTypeName, new { @class = "form-label fw-bold" })
            <div class="form-label">
                @Html.DisplayFor(m => m.ImportTypeName)
            </div>
        </div>
        <div class="col-12 col-sm-6 col-md-4 col-lg-3 col-xxl-2">
            @Html.LabelFor(m => m.CreatedDate, new { @class = "form-label fw-bold" })
            <div class="form-label">
                @Html.DisplayFor(m => m.CreatedDate)
            </div>
        </div>
        <div class="col-12 col-sm-6 col-md-4 col-lg-3 col-xxl-2">
            @Html.LabelFor(m => m.CreatedByUserName, new { @class = "form-label fw-bold" })
            <div class="form-label">
                @Html.DisplayFor(m => m.CreatedByUserName)
            </div>
        </div>
        <div class="col-12 col-sm-6 col-md-4 col-lg-3 col-xxl-2">
            @Html.LabelFor(m => m.NumberOfRows, new { @class = "form-label fw-bold" })
            <div class="form-label">
                @Html.DisplayFor(m => m.NumberOfRows)
            </div>
        </div>
        <div class="col-12 col-sm-6 col-md-4 col-lg-3 col-xxl-2">
            @Html.LabelFor(m => m.CurrentStatus, new { @class = "form-label fw-bold" })
            <div class="form-label">
                @Html.DisplayFor(m => m.CurrentStatus)
            </div>
        </div>
        @if (Model.ReversedDate.HasValue)
        {
            <div class="col-12 col-sm-6 col-md-4 col-lg-3 col-xxl-2">
                @Html.LabelFor(m => m.ReversedDate, new { @class = "form-label fw-bold" })
                <div class="form-label">
                    @Html.DisplayFor(m => m.ReversedDate)
                </div>
            </div>
        }
        @if (!string.IsNullOrWhiteSpace(Model.Notes))
        {
            <div class="col-12 col-sm-6 col-md-4 col-lg-3 col-xxl-2">
                @Html.LabelFor(m => m.Notes, new { @class = "form-label fw-bold" })
                <div class="form-label">
                    @Html.DisplayFor(m => m.Notes)
                </div>
            </div>
        }
    </div>

</div>

<div class="d-flex flex-wrap mb-3">
    <div class="me-auto p-0">
        <h3>
            Status history
        </h3>
    </div>
</div>

<div class="mb-3">
    @Html.Partial("_StatusHistoryList", Model.StatusHistories)
</div>

<div class="d-flex flex-wrap mb-3">
    <div class="me-auto p-0">
        <h3>
            Event Log
        </h3>
    </div>
</div>

<div class="mb-3">
    @Html.Partial("_EventLogList", Model.EventLogs)
</div>

<div>
    @Html.ActionLink("Back", "Back", "Import", null, new { @class = "btn btn-secondary" })
</div>


