@using CaseAccountingContracts.ViewModels

@{
    ViewData["Title"] = "Специализация";
}

@{
    <h4 class="fw-bold" id="vb-id">Назначение специализации юристу</h4>

    if (ViewBag.SpecializationId == null)
    {
        <h3 class="display-4">Войдите в аккаунт</h3>
        return;
    }

    <div class="row">
        <div class="col-md-6">
            <label id="specializationLabel" data-id="@ViewBag.SpecializationId" for="specializationInput">Специализация:</label>
            <input type="text" id="specializationInput" readonly value="" />
        </div>
    </div>

    <div class="row">
        <div class="col-md-6">
            <label for="lawyersSelect">Юристы:</label>
            <select id="lawyersSelect">
            </select>
        </div>
    </div>

    <button id="update-button" type="button" class="button-primary text-button">
        Сохранить изменения
    </button>

    <div class="row">
        <div class="col-md-12">
            <h3>Итог:</h3>
            <table>
                <thead>
                    <tr>
                        <th></th>
                        <th></th>
                        <th></th>
                        <th></th>
                    </tr>
                </thead>
                <tbody id="lawyerTable">
                    <tr id="emptyRow">
                        <td colspan="3">Выберите юриста!</td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
}

<script src="~/js/Specializations/specialization-add-student.js" asp-append-version="true"></script>