@model PantheonRA.BackOffice.Models.BaseGridFilterModel

<div class="wrapper wrapper-content">
    <div class="tabs-container">
        @Html.Partial("~/Views/Products/_CodeListTabNavigation.cshtml")
        <div class="tab-content">
            <div class="row buttons-tabbed">
                <a href="@Url.Action("Create", "DeliveryType")" class="btn btn-primary btn-outline">
                    <i class="fa fa-plus" title="@Loc.NewDeliveryType"></i>
                    <span class="bold hidden-xs m-l-xs">@Loc.NewDeliveryType</span>
                </a>
            </div>

            <div class="row document-head">
                <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="texts-list project-list">
                <div class="document-list document-list-no-footer">
                    <table id="mainGrid" data-grid-id="document-text" data-url="@Url.Action("DeliveryTypesList", "DeliveryType")" class="list-table">
                        <thead>
                            <tr>
                                <th width="5%">@Loc.Active</th>
                                <th data-url="@Url.Action("Edit", "DeliveryType")?id=">@Loc.Delivery</th>
                                <th data-url="@Url.Action("Edit", "DeliveryType")?id=">@Loc.Name</th>
                                <th>@Loc.TransportCode</th>
                            </tr>
                        </thead>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>

<input id="maritimeTransportLoc" value="@Loc.MaritimeTransport" hidden />
<input id="railwayTransportLoc" value="@Loc.RailwayTransport" hidden />
<input id="roadTransportLoc" value="@Loc.RoadTransport" hidden />
<input id="airTransportLoc" value="@Loc.AirTransport" hidden />
<input id="postalTrafficLoc" value="@Loc.PostalTraffic" hidden />
<input id="transportInstallationsLoc" value="@Loc.TransportInstallations" hidden />
<input id="trafficOnTheWaterwaysLoc" value="@Loc.TrafficOnTheWaterways" hidden />
<input id="ownDriveLoc" value="@Loc.OwnDrive" hidden />

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