@model PantheonRA.BackOffice.Models.SettingsViewModel
@using PantheonRA.BackOffice.Enums
@using PantheonRA.BackOffice.Models
@{
    ViewBag.Title = Loc.DefaultSettings;
}

<div class="tabs-container product-content">
    @Html.Partial("~/Views/Company/_CompanySettingsTabNavigation.cshtml")
    <div class="tab-content">
        <div class="row buttons-tabbed">
            @if (Model.Type == SettingsMenuType.Mailboxes)
            {
                <button type="button" onclick="openImportMailboxModal()"
                        title="@Loc.ImportMailboxes" class="btn btn-danger btn-outline pull-right">
                    <i class="far fa-paper-plane m-r-xs"></i>
                    <span class="visible-lg-inline visible-md-inline">@Loc.ImportMailboxes</span>
                </button>
            }
            @if (Model.Type == SettingsMenuType.Classifications)
            {
                <button type="button" onclick="openImportClassificationModal()"
                        title="@Loc.ImportClassifications" class="btn btn-danger btn-outline pull-right">
                    <i class="far fa-paper-plane m-r-xs"></i>
                    <span class="visible-lg-inline visible-md-inline">@Loc.ImportClassifications</span>
                </button>
            }
        </div>

        <div class="divided-content">
            <div class="divided-content-main">
                @if (Model.Type == SettingsMenuType.BasicInfo)
                {
                    Html.RenderPartial("~/Views/Settings/_Settings.cshtml", Model);
                }
                else if (Model.Type == SettingsMenuType.Mailboxes)
                {
                    Html.RenderPartial("~/Views/Settings/_Mailboxes.cshtml");
                }
                else if (Model.Type == SettingsMenuType.Classifications)
                {
                    Html.RenderPartial("~/Views/Settings/_Classifications.cshtml", new GridColumnFilterModel());
                }
            </div>
            <div class="divided-content-side" style="min-height: 88vh">
                @{Html.RenderAction("SideMenu", "Settings", new { activeTitle = Model.Title, id = "Settings", description = string.Empty });}
            </div>
        </div>
    </div>
</div>

@section pageScripts{
    @Scripts.Render("~/bundles/settings")

    <script>
        $(document).ready(function () {
        });
    </script>
}
