@model AuctionViewModel
@using Nop.Core.Infrastructure
@using Nop.Web.Framework

@{
    var defaultGridPageSize = EngineContext.Current.Resolve<Nop.Core.Domain.Common.AdminAreaSettings>().DefaultGridPageSize;
    var gridPageSizes = EngineContext.Current.Resolve<Nop.Core.Domain.Common.AdminAreaSettings>().GridPageSizes;
    Layout = "_AdminLayout";
    //page title
    Model.PageTitle = "Auctions page";
    Model.StartDateUtc = DateTime.UtcNow;
    Model.EndDateUtc = DateTime.UtcNow.AddDays(3);
    ViewBag.Title = Model.PageTitle;
}

@using (Html.BeginForm())
{
    <div class="content-header clearfix">
        <h1 class="pull-left">
            Create Auction
        </h1>

        <div class="pull-right">
            <button type="submit" class="btn bg-purple">
                <i class="fa fa-file-pdf-o"></i>
                Create Auction
            </button>

            <a href="/Admin/AuctionList" class="btn bg-olive">Auctions</a>
        </div>
    </div>

    <div class="content">
        <div class="form-horizontal">
            <div class="panel-group">
                <div class="panel panel-default panel-search">
                    <div class="panel-body">
                        <div class="row">
                            <div class="form-group">
                                <div class="col-xs-12" style="text-align:center;">

                                    @Html.LabelFor(model => model.AuctionName)

                                </div>
                                <div class="col-xs-12">

                                    @Html.EditorFor(model => model.AuctionName, new { HtmlAttributes = new { @class = "form-control text-box single-line" } })

                                </div>
                                
                            </div>
                            <div class="form-group">
                                <div class="col-xs-12" style="text-align:center;">

                                    @Html.LabelFor(model => model.AuctionType)

                                </div>
                                <div class="col-xs-12">

                                    @Html.EditorFor(model => model.AuctionType, new { HtmlAttributes = new { @class = "form-control text-box single-line" } })

                                </div>
                                
                            </div>
                            <div class="form-group">
                                <div class="col-xs-12" style="text-align:center;">

                                    @Html.LabelFor(model => model.StartDateUtc)

                                </div>
                                <div class="col-xs-12">
                                    @* <nop-editor asp-for="@Model.StartDateUtc" asp-template="DateTimePicker" /> *@
                                    @Html.EditorFor(model => model.StartDateUtc, new { HtmlAttributes = new { @class = "form-control text-box single-line" } })
                                </div>
                                
                            </div>
                            <div class="form-group">
                                <div class="col-xs-12" style="text-align:center;">

                                    @Html.LabelFor(model => model.EndDateUtc)

                                </div>
                                <div class="col-xs-12">
                                    @* <nop-editor asp-for="@Model.StartDateUtc" asp-template="DateTimePicker" /> *@
                                    @Html.EditorFor(model => model.EndDateUtc, new { HtmlAttributes = new { @class = "form-control text-box single-line" } })
                                </div>
                                
                            </div>
                            <div class="form-group">
                                <div class="col-xs-12" style="text-align:center;">

                                    @Html.LabelFor(model => model.CategoryId)

                                </div>
                                <div class="col-xs-12">
                                    @* <nop-editor asp-for="@Model.StartDateUtc" asp-template="DateTimePicker" /> *@
                                    @Html.EditorFor(model => model.CategoryId, new { HtmlAttributes = new { @class = "form-control text-box single-line" } })
                                </div>
                                
                            </div>

                            <div class="form-group">
                                <div class="col-xs-12" style="text-align:center;">

                                    @Html.LabelFor(model => model.Closed)

                                </div>
                                <div class="col-xs-12">

                                    @Html.EditorFor(model => model.Closed, new { HtmlAttributes = new { @class = "" } })

                                </div>
                                
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

}