<commit_before>﻿@model EPiServer.Reference.Commerce.Site.Features.QuickOrder.Blocks.QuickOrderBlock

<div class="spacer-left-l">
    <section>
        <div class="section-title spacer-bottom-l">
            <h2 class="h3">Quick Order Interface</h2>
        </div>

        <div class="row">
            <div class="col-sm-4">
                <label>Product name</label>
            </div>
            <div class="col-sm-2">
                <label>SKU</label>
            </div>
            <div class="col-sm-2">
                <label>Unit Price</label>
            </div>
            <div class="col-sm-2">
                <label>Quantity</label>
            </div>
            <div class="col-sm-2">
                <label>Total Price</label>
            </div>
        </div>
        @using (Html.BeginForm("Import", "QuickOrderBlock", FormMethod.Post, new { @id = "quickOrderForm", @enctype = "multipart/form-data" }))
        {
            if (Model.ProductsList != null && Model.ProductsList.Count > 0)
            {
                for (int i = 0; i < Model.ProductsList.Count; i++)
                {
                    <div class="row order-row">
                        <div class="form-group col-sm-4">
                            @Html.TextBoxFor(x => x.ProductsList[i].ProductName)
                        </div>
                        <div class="form-group col-sm-2">
                            @Html.TextBoxFor(x => x.ProductsList[i].Sku)
                        </div>
                        <div class="form-group col-sm-2">
                            @Html.TextBoxFor(x => x.ProductsList[i].UnitPrice, "{0:0.00}", new { @readonly = "readonly" })
                        </div>
                        <div class="form-group col-sm-2">
                            @Html.TextBoxFor(x => x.ProductsList[i].Quantity)
                        </div>
                        <div class="form-group col-sm-2">
                            @Html.TextBoxFor(x => x.ProductsList[i].TotalPrice, "{0:0.00}", new { @readonly = "readonly" })
                        </div>
                        <a href="#" class="btn btn-danger btn-xs delete-icon">
                            <span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
                        </a>
                    </div>
                }
            }
            else
            {
                <div class="row order-row">
                    <div class="form-group col-sm-4">
                        @Html.TextBoxFor(x => x.ProductsList[0].ProductName)
                    </div>
                    <div class="form-group col-sm-2">
                        @Html.TextBoxFor(x => x.ProductsList[0].Sku)
                    </div>
                    <div class="form-group col-sm-2">
                        @Html.TextBoxFor(x => x.ProductsList[0].UnitPrice, "{0:0.00}", new { @readonly = "readonly" })
                    </div>
                    <div class="form-group col-sm-2">
                        @Html.TextBoxFor(x => x.ProductsList[0].Quantity)
                    </div>
                    <div class="form-group col-sm-2">
                        @Html.TextBoxFor(x => x.ProductsList[0].TotalPrice, "{0:0.00}", new { @readonly = "readonly" })
                    </div>
                    <a href="#" class="btn btn-danger btn-xs delete-icon">
                        <span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
                    </a>
                </div>
            }
            <a class="btn btn-sm btn-primary js-add-row-btn">Add row</a>


            if (Model.ReturnedMessages != null && Model.ReturnedMessages.Count > 0)
            {
                if (Model.ReturnedMessages.Count == 1 && Model.ReturnedMessages.ElementAt(0).Equals("All items were added to cart."))
                {
                    <div class="text-success bg-success padded-m spacer-top-m">
                        <p>@Model.ReturnedMessages.ElementAt(0)</p>
                    </div>
                }
                else
                {
                    <div class="text-danger bg-danger padded-m spacer-top-m">
                        @foreach (var message in Model.ReturnedMessages)
                        {
                            <p>* @message</p>
                        }
                    </div>
                }
            }

            <div class="spacer-top-l">
                <input type="file" class="hidden" data-interface="lattice" data-label="Upload CSV" id="fileUploaded">

                <button type="submit" class="btn btn-primary">Add to cart</button>
            </div>
        }
    </section>
</div><commit_msg>EQB-118 [Quick Order] DEMO2 - Requested Changes<commit_after>﻿@model EPiServer.Reference.Commerce.Site.Features.QuickOrder.Blocks.QuickOrderBlock

<div class="spacer-left-l">
    <section>
        <div class="section-title spacer-bottom-l">
            <h2 class="h3">Quick Order Interface</h2>
        </div>

        <div class="row">
            <div class="col-sm-4">
                <label>Product name</label>
            </div>
            <div class="col-sm-2">
                <label>SKU</label>
            </div>
            <div class="col-sm-2">
                <label>Unit Price</label>
            </div>
            <div class="col-sm-2">
                <label>Quantity</label>
            </div>
            <div class="col-sm-2">
                <label>Total Price</label>
            </div>
        </div>
        @using (Html.BeginForm("Import", "QuickOrderBlock", FormMethod.Post, new { @id = "quickOrderForm", @enctype = "multipart/form-data" }))
        {
            if (Model.ProductsList != null && Model.ProductsList.Count > 0)
            {
                for (int i = 0; i < Model.ProductsList.Count; i++)
                {
                    <div class="row order-row">
                        <div class="form-group col-sm-4">
                            @Html.TextBoxFor(x => x.ProductsList[i].ProductName, new { required = "required" })
                        </div>
                        <div class="form-group col-sm-2">
                            @Html.TextBoxFor(x => x.ProductsList[i].Sku, new { required = "required" })
                        </div>
                        <div class="form-group col-sm-2">
                            @Html.TextBoxFor(x => x.ProductsList[i].UnitPrice, "{0:0.00}", new { @readonly = "readonly" })
                        </div>
                        <div class="form-group col-sm-2">
                            @Html.TextBoxFor(x => x.ProductsList[i].Quantity, new { required = "required" })
                        </div>
                        <div class="form-group col-sm-2">
                            @Html.TextBoxFor(x => x.ProductsList[i].TotalPrice, "{0:0.00}", new { @readonly = "readonly" })
                        </div>
                        <a href="#" class="btn btn-danger btn-xs delete-icon">
                            <span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
                        </a>
                    </div>
                }
            }
            else
            {
                <div class="row order-row">
                    <div class="form-group col-sm-4">
                        @Html.TextBoxFor(x => x.ProductsList[0].ProductName, new { required = "required" })
                    </div>
                    <div class="form-group col-sm-2">
                        @Html.TextBoxFor(x => x.ProductsList[0].Sku, new { required = "required" })
                    </div>
                    <div class="form-group col-sm-2">
                        @Html.TextBoxFor(x => x.ProductsList[0].UnitPrice, "{0:0.00}", new { @readonly = "readonly" })
                    </div>
                    <div class="form-group col-sm-2">
                        @Html.TextBoxFor(x => x.ProductsList[0].Quantity, new { required = "required" })
                    </div>
                    <div class="form-group col-sm-2">
                        @Html.TextBoxFor(x => x.ProductsList[0].TotalPrice, "{0:0.00}", new { @readonly = "readonly" })
                    </div>
                    <a href="#" class="btn btn-danger btn-xs delete-icon">
                        <span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
                    </a>
                </div>
            }
            <a class="btn btn-sm btn-primary js-add-row-btn">Add row</a>


            if (Model.ReturnedMessages != null && Model.ReturnedMessages.Count > 0)
            {
                if (Model.ReturnedMessages.Count == 1 && Model.ReturnedMessages.ElementAt(0).Equals("All items were added to cart."))
                {
                    <div class="text-success bg-success padded-m spacer-top-m">
                        <p>@Model.ReturnedMessages.ElementAt(0)</p>
                    </div>
                }
                else
                {
                    <div class="text-danger bg-danger padded-m spacer-top-m">
                        @foreach (var message in Model.ReturnedMessages)
                        {
                            <p>* @message</p>
                        }
                    </div>
                }
            }

            <div class="spacer-top-l">
                <input type="file" class="hidden" data-interface="lattice" data-label="Upload CSV" id="fileUploaded">

                <button type="submit" class="btn btn-primary">Add to cart</button>
            </div>
        }
    </section>
</div>
{'fraction_non_alphanumeric': 0.14220087700981415, 'fraction_numerical': 0.009814157444142827, 'mean_word_length': 1.1825017088174983, 'pattern_counts': {'":': 0, '<': 159, '<?xml version=': 0, '>': 181, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2372975', 'n_tokens_mistral': 2740, 'n_tokens_neox': 2521, 'n_words': 474}