@model ZDataModel.ZOrderLicense
@{
    ViewBag.Title = @Model.ZProduct.Name;
    ViewBag.Description = @Model.ZProduct.Name;
}

@section styles{

}

@section scripts{
    <script src="~/Areas/NewOrder/Scripts/ViewScripts/Order.js"></script>
    <script type="text/javascript">
        License_Create();
    </script>
}


<div class="row">
    @Html.Partial("_Header")

    @using (Html.BeginForm("License", "StepFour", FormMethod.Post, new { @id = "form" }))
    {

        <div class="col-lg-8">



            @Html.Raw(@ZBilling.Helpers.GenericHelper.ValidationSummary(Html, ""))


            <div class="row">
                <div class="col-md-12 form-group">
                    <label class="control-label">@Languages.FrontOffice.Resource.PaymentCycle</label>
                    @Html.DropDownListFor(model => model.ZPriceID, (IEnumerable<SelectListItem>)ViewBag.ZPriceIDDrop, new { @class = "form-control", @onchange = "javascript: SetTotalOrder();" })
                    @Html.ValidationMessageFor(model => model.ZPriceID, "", new { @class = "text-danger" })
                </div>
            </div>


            @Html.Partial("_CustomForm", (List<ZB.ViewModels.ZCustomField>)ViewBag.CustomFields)

            @Html.HiddenFor(model => model.ZClientID)
            @Html.HiddenFor(model => model.ZProductID)

            @Html.Partial("_AddOn", (ZDataModel.ZOrder)Model)

        </div>

        <div class="col-lg-4">
            <table class="table table-striped table-bordered" id="priceTable">
                <tbody>
                    <tr>
                        <th>@Languages.BackOffice.Resource.Items</th>
                        <th class="col-lg-4">@Languages.BackOffice.Resource.Period</th>
                        <th class="col-lg-2">@Languages.BackOffice.Resource.Total</th>
                    </tr>
                </tbody>
            </table>
            <span id="loadPrice"></span> 
        </div>
    }

</div>