@using PantheonRA.BackOffice.Enums
@model PantheonRA.BackOffice.Models.GridColumnFilterModel
@{
    ViewBag.Title = Loc.CustomsTariffs;
}

<div class="wrapper wrapper-content">
    <div class="tabs-container">
        @Html.Partial("~/Views/Products/_CodeListTabNavigation.cshtml")
        <div class="tab-content">
            <div class="row buttons-tabbed">
            </div>

            <div class="row document-head">
                <div class="col-md-2">
                    @Html.Partial("~/Views/Products/_ProductsTabNavigation.cshtml", ProductCodelistType.DutyCodeList)
                </div>
                <div class="col-md-3">
                    <div class="form-group">
                        <label class="control-label">@Loc.SearchFilter</label>
                        @Html.TextBoxFor(model => model.Keywords, new { @id = "Keywords", @class = "form-control search-input", @placeholder = Loc.Search, autocomplete = "off" })
                    </div>
                </div>
            </div>

            <div class="project-list">
                <table id="mainGrid" data-grid-id="duty" data-url="@Url.Action("DutyList", "Duty")" class="list-table">
                    <thead>
                        <tr>
                            <th width="5%" class="dt-head-center">@Loc.Code</th>
                            <th width="20%">@Loc.Name</th>
                            <th width="15%">@Loc.TypeShort</th>
                            <th width="8%">@Loc.IncreasesVATBase</th>
                            <th width="8%">@Loc.IncreasesStockValue</th>
                            <th width="8%">@Loc.IncludedInRVCCalculation</th>
                            <th width="8%">@Loc.ConsumptionTax</th>
                            <th width="12%">@Loc.Subtype</th>
                            <th width="8%">@Loc.IncreaseSupplierForPay</th>
                            <th width="8%">@Loc.Deposit</th>
                        </tr>
                    </thead>
                </table>
            </div>
        </div>
    </div>
</div>

<input type="hidden" id="searchPlaceholder" value="@Loc.PartnerSearch" />
<input type="hidden" id="updateDutyUrl" value="@Url.Action("Edit", "Duty")" />
<input type="hidden" id="generalErrorLoc" value="@Loc.GeneralError" />
<input type="hidden" id="okLoc" value="@Loc.OK" />
<input type="hidden" id="dutyLoc" value="@Loc.Duty" />
<input type="hidden" id="vatLoc" value="@Loc.VAT" />
<input type="hidden" id="exciseDutyLoc" value="@Loc.ExciseDuty" />
<input type="hidden" id="otherLoc" value="@Loc.Other" />
<input type="hidden" id="wineLoc" value="@Loc.Wine" />
<input type="hidden" id="spiritDrinkLoc" value="@Loc.SpiritDrink" />
<input type="hidden" id="beerLoc" value="@Loc.Beer" />
<input type="hidden" id="nonAlcoholicDrinkLoc" value="@Loc.NonAlcoholicDrink" />

@section pageScripts{
    @Scripts.Render("~/bundles/product")
    <script>
        $(document).ready(function () {
            initializeDuty();
        });
    </script>
}