@model PantheonRA.BackOffice.Models.SubjectCreateViewModel

<div class="wrapper wrapper-content">
    <div class="tabs-container">
        <div class="tab-content">
            @Html.Hidden("SubjectId", Model.SubjectId)
            @Html.Hidden("PageUrl", Url.Action("Edit", "Subjects"))

            <div class="row document-head">
                <div class="col-md-4">
                    <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="document-body full-height">
                <div class="scrollable">
                    <div class="document-list document-list-no-footer">
                        <table id="documentsGrid" class="list-table" data-url="@Url.Action("DocumentList", "Documents")">
                            <thead>
                                <tr>
                                    <th width="4%" data-function="openPdfPreview('@Url.Action("PAASPrintDocument", "Documents")?docKey={0}')"></th>
                                    <th width="10%" data-url="@Url.Action("Edit", "Documents")?qid=">@Loc.Number</th>
                                    <th width="10%">@Loc.SubjectCode</th>
                                    <th width="10%">@Loc.SubjectTitle</th>
                                    <th width="6%">@Loc.Date</th>
                                    <th width="8%">@Loc.DateDueShort</th>
                                    <th width="10%">@Loc.Title</th>
                                    <th width="4%">@Loc.DocTypeShort</th>
                                    <th width="7%">@Loc.Classification</th>
                                    <th width="10%">@Loc.Note</th>
                                    <th width="7%">@Loc.User</th>
                                    <th width="7%">@Loc.Status</th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<input id="paasPrintDocumentUrl" value="openPdfPreview('@Url.Action("PAASPrintDocument", "Documents")?docKey={0}&attachId={1}')" hidden />
<input id="paasPrintDocumentUrlOnly" value="@Url.Action("PAASPrintDocument", "Documents")?docKey={0}&attachId={1}" hidden />
<input id="GetAttachmentsForDocumentUrl" value="@Url.Action("GetAttachmentsForDocument", "Documents")" hidden />

@Html.Partial("~/Views/Shared/Components/_sidePanel.cshtml",
    new PantheonRA.BackOffice.Models.SidePanelViewModel
    {
        Id = "pdfPanel",
    })

@section pageScripts{
    <script src="~/Scripts/global-script.js"></script>
}

<script src="~/Scripts/custom/products/subjectDocuments.js"></script>