@model PantheonRA.BackOffice.Models.SettingsViewModel
@using PantheonRA.WebApi.Contracts

<div class="row">
    <div class="col-lg-6 col-md-6 col-xs-12">
        <div class="form-horizontal form-md m-t-md">
            <h3>@ViewBag.Title</h3>
            <div class="form-group">
                <div class="col-lg-4 col-md-5 font-bold">
                    @Html.LabelFor(model => model.DocumentDropDownCurrentValue, @Loc.DocType, new { @class = "control-label" })
                </div>
                <div class="col-lg-5 col-md-7">
                    @Html.DropDownListFor(model => model.DocumentDropDownCurrentValue, Model.DocumentTypesList != null ? Model.DocumentTypesList.Select(x => new SelectListItem { Text = x.DocType + " - " + x.Name, Value = x.DocType }) : new List<SelectListItem>(), "", new { @id = "DocumentSelectList", @onchange = "ChangeDocument(this.value)", @class = "form-control custom-select" })
                </div>
                <div class="col-md-1">
                    <i class='fa fa-spinner fa-spin'></i>
                </div>
            </div>
            <div class="form-group">
                <div class="col-lg-4 col-md-5 font-bold">
                    @Html.LabelFor(model => model.ClassificationDropDownCurrentValue, @Loc.Classification, new { @class = "control-label" })
                </div>
                <div class="col-lg-5 col-md-7">
                    @Html.DropDownListFor(model => model.ClassificationDropDownCurrentValue, Model.ClasificationList != null ? Model.ClasificationList.Select(x => new SelectListItem { Text = x.AcType + " - " + x.AcTypeDesc, Value = x.AcType }) : new List<SelectListItem>(), "", new { @id = "ClassificationSelectList", @onchange = "ChangeClassification(this.value)", @class = "form-control custom-select" })
                </div>
            </div>
        </div>
    </div>
</div>

<input id="SaveSettingsUrl" value="@Url.Action("SaveSettings", "Settings")" hidden />
<input id="DocumentSettingsDropDownAjaxSuccessLoc" value="@Loc.DocumentSettingsDropDownAjaxSuccess" hidden />
<input id="DocumentSettingsDropDownAjaxFailLoc" value="@Loc.DocumentSettingsDropDownAjaxFail" hidden />
<input id="DefaultDocumentTypeSetting" value="@DefaultSettingsTypes.DefaultDocumentType" hidden />
<input id="DefaultClassificationSetting" value="@DefaultSettingsTypes.DefaultClassification" hidden />

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