LocalGovIMS_localgov-ims/src/Admin/Views/FundGroup/List.cshtml
@model IList<Admin.Models.FundGroup.DetailsViewModel>
@{
    ViewBag.Title = "Fund groups";
}

@section Header { Fund groups }

@section Subheader { Fund group management }

@section Actions {
    @Html.ActionLink("Create fund group", "Create", new { }, new { @class = "btn btn-secondary" })
}

@if (Model != null)
{
    <div class="table-responsive">
        <table class="table table-striped table-bordered table-hover mt-2">
            <thead>
                <tr>
                    <th scope="col">
                        Name
                    </th>
                    <th scope="col">
                        <span class="visually-hidden">Actions</span>
                    </th>
                </tr>
            </thead>
            @foreach (var item in Model)
            {
                <tr>
                    <td>
                        @Html.DisplayFor(m => item.FundGroupName)
                    </td>
                    <td class ="text-end">
                        @Html.ActionLink("View", "Details", new { id = item.Id }, new { @class = "btn btn-secondary" })
                        @Html.ActionLink("Edit", "Edit", new { id = item.Id }, new { @class = "btn btn-secondary" })
                    </td>
                </tr>
            }
        </table>
    </div>
}
else
{
    Html.RenderPartial("_NothingSpecified", "fund groups");
}
