@model IEnumerable<TableSyncConfiguration>
@using PantheonApi.Contracts.DataContracts.Pantheon;

@{
    ViewBag.Title = "PartialSync";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Partial Sync</h2>
<input type="text" id="search-partial-sync" placeholder="Type to search">
<div>
    <table class="table table-hover table-bordered table-striped">
        <thead class="bg-primary">
            <tr>
                <th>Table ID</th>
                <th>Table name</th>
                <th></th>
            </tr>
        </thead>
        <tbody id="partial-sync-tbody" >
            @foreach (var item in Model)
            {
                <tr>
                    <td>@item.TableId</td>
                    <td>@item.TableName</td>
                    <td>@Html.ActionLink("Edit", "Edit", new { tableName = item.TableName })</td>
                </tr>
            }
        </tbody>
    </table>
</div>