Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

3.9 KB
Raw Blame
@model CustomerOutOfStockSubscriptionsModel
@inject IPageHeadBuilder pagebuilder
@{
    Layout = "_TwoColumns";

    pagebuilder.AddTitleParts(Loc["Title.OutOfStockSubscriptions"]);
}

@section left
{
    @await Component.InvokeAsync("CustomerNavigation", new { selectedTabId = AccountNavigationEnum.OutOfStockSubscriptions })
}

<div class="page account-page out-of-stock-subscription-list-page ps-lg-3 pt-lg-0 pt-3">
    <h1 class="h2 generalTitle">@Loc["Account.OutOfStockSubscriptions"]</h1>
    @if (Model.Subscriptions.Count > 0)
    {
        <div class="description">
            @Loc["Account.OutOfStockSubscriptions.Description"]
        </div>
        <script type="application/json" data-grand-vm="checkAll">{"elements":{"checkboxId":"selectall","rowSelector":".subscription-list .rowcheckbox"}}</script>
        <form asp-route="CustomerOutOfStockSubscriptions" method="post">
            <div class="subscription-list">
                <div class="table-responsive">
                    <table class="table table-hover data-table">
                        <colgroup>
                            <col width="1"/>
                            <col/>
                        </colgroup>
                        <thead class="table-inverse">
                        <tr>
                            <th class="select-boxes">
                                <label class="form-check">
                                    <input id="selectall" type="checkbox" class="form-check-input">
                                    <span class="form-check-label"></span>
                                    <span class="custom-control-description">&nbsp;</span>
                                </label>
                            </th>
                            <th class="product">
                                @Loc["Account.OutOfStockSubscriptions.ProductColumn"]
                            </th>
                        </tr>
                        </thead>
                        <tbody>
                        @for (var i = 0; i < Model.Subscriptions.Count; i++)
                        {
                            var item = Model.Subscriptions[i];
                            <tr @(i % 2 == 0 ? Html.Raw(" class=\"odd\"") : Html.Raw(" class=\"even\""))>
                                <td class="select-boxes">
                                    <label class="form-check">
                                        <input id="selectall" type="checkbox" name="subscriptions" value="@(item.Id)" class="rowcheckbox form-check-input">
                                        <span class="form-check-label"></span>
                                        <span class="custom-control-description">&nbsp;</span>
                                    </label>
                                </td>
                                <td class="product">
                                    @Html.RouteLink(item.ProductName, "Product", new { item.SeName })
                                    @if (!string.IsNullOrEmpty(item.AttributeDescription))
                                    {
                                        <br/>
                                        @Html.Raw(item.AttributeDescription)
                                    }
                                </td>
                            </tr>
                        }
                        </tbody>
                    </table>
                </div>
                <page-navigation asp-query-param="pagenumber" asp-pagination="Model.PagerModel"/>

                <div class="buttons mb-2 mt-2">
                    <input type="submit" value="@Loc["Account.OutOfStockSubscriptions.DeleteSelected"]" class="btn btn-secondary delete-selected-biss-button"/>
                </div>
            </div>
        </form>
    }
    else
    {
        <div class="no-data alert alert-info my-3">
            @Loc["Account.OutOfStockSubscriptions.NoSubscriptions"]
        </div>
    }
</div>