@model PantheonApi.Data.DbModels.Pantheon.tPA_SyncSegmentTable

@{
    Layout = null;
}

<div id="SegmentTableDelete">

    @using (Ajax.BeginForm("DeleteSegmentTable", "SyncSchedules", new { id = Model.anQId, scheduleId = Model.anScheduleId },
        new AjaxOptions { UpdateTargetId = "SegmentTableDelete", OnBegin = "startLoading('SegmentTableDelete')" }))
            {
        @Html.AntiForgeryToken()
        <div class="panel panel-flat">
            <div class="panel-body text-center">
                <h5> Table ID: @Model.anTableId</h5>
                <h5> Table name: @Model.acTableName</h5>
                <h5> Schedule ID: @Model.anScheduleId</h5>
                <h4 class="text-center">Are you sure you want to delete this record?</h4>

                <div class="text-center">
                    <button type="submit" class="btn btn-warning">Delete</button>
                    @Ajax.ActionLink("Cancel", "SegmentTablesChild", "SyncSchedules", new { scheduleId = Model.anScheduleId },
                   new AjaxOptions { UpdateTargetId = "SegmentTableDelete", InsertionMode = InsertionMode.Replace }, new { @class = "btn btn-info" })
                </div>
            </div>
        </div>
    }

</div>