@model Tv7Playlist.Data.PlaylistEntry;
@{
    ViewData["Title"] = $"Delete channel {Model.ChannelNumberExport} - {Model.Name}";
}

<div class="row">
    <div class="col offset-2 col-8">
        <h3>Delete channel @Model.ChannelNumberExport - @Model.Name ?</h3>
    </div>
</div>

<hr/>

<form asp-action="DeleteConfirmed">
    <input type="hidden" asp-for="Id"/>

    <div class="form-group row">
        <div class="offset-sm-2 col-sm-2">
            <label asp-for="ChannelNumberExport" class="control-label">Channel number export:</label>
        </div>
        <div class="col-sm-4">
            <input asp-for="ChannelNumberExport" readonly class="form-control"/>
        </div>
    </div>

    <div class="form-group row">
        <div class="offset-sm-2 col-sm-2">
            <label asp-for="EpgMatchName" class="control-label">EPG Name:</label>
        </div>
        <div class="col-sm-4">
            <input asp-for="EpgMatchName" readonly class="form-control"/>
        </div>
    </div>

    <div class="form-group row">
        <div class="offset-sm-2 col-sm-2">
            <label asp-for="IsAvailable" class="control-label form-check-label">Available</label>
        </div>
        <div class="col-sm-1 form-check">
            <input asp-for="IsAvailable" class="form-control form-control-sm" readonly disabled="true"/>
        </div>
    </div>

    <div class="form-group row">
        <div class="offset-sm-2 col-sm-2">
            <label asp-for="UrlOriginal" class="control-label">Original URL</label>
        </div>
        <div class="col-sm-4">
            <input asp-for="UrlOriginal" readonly class="form-control"/>
        </div>
    </div>

    <hr/>

    <div class="form-group row">
        <div class="col offset-sm-4 col-sm-4">
            <input type="submit" value="Delete" class="btn btn-danger"/>
            <a asp-action="Index" asp-controller="Home" class="btn btn-secondary">Cancel</a>
        </div>
    </div>
</form>

@section Scripts {
    @{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
}