<commit_before>﻿@model payroll.Models.Employee
@{
    ViewBag.Title = "Employee";
}
<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title">@ViewData["Title"]</h3>
    </div>
    <div class="panel-body">
        <div>
            <dl class="dl-horizontal">
                <dt>@Html.DisplayNameFor(model => model.FirstName)</dt>
                <dd>@Html.DisplayFor(model => model.FirstName)</dd>

                <dt>@Html.DisplayNameFor(model => model.LastName)</dt>
                <dd>@Html.DisplayFor(model => model.LastName)</dd>

                <dt>@Html.DisplayNameFor(model => model.Salary)</dt>
                <dd>@Html.DisplayFor(model => model.Salary)</dd>
            </dl>
        </div>
    </div>
    <div class="panel-footer">
        <a asp-action="EditEmployee" asp-route-id="@Model.EmployeeID">Edit Employee</a> |
        <a asp-action="Index">Back to List</a>
    </div>
</div>

<div class="panel panel-primary">
    <div class="panel-heading">
        <h3 class="panel-title">@Html.DisplayNameFor(model => model.Dependents)</h3>
    </div>
    <div class="panel-body">
        <table class="table">
            <tr>
                <th>Name</th>
                <th>Relationship</th>
                <th>Actions</th>
            </tr>
            @foreach (var item in Model.Dependents)
            {
                <tr>
                    <td>
                        <a asp-action="EditDependent" asp-route-id="@item.DependentID">
                            @Html.DisplayFor(modelItem => item.FirstName)
                            @Html.DisplayFor(modelItem => item.LastName)
                        </a>
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.Relationship)
                    </td>
                    <td>
                        <a asp-action="DeleteDependent" asp-route-id="@item.DependentID">Delete</a>
                    </td>
                </tr>
            }
        </table>
    </div>
    <div class="panel-footer">
        <a asp-action="AddDependent" asp-route-id="@Model.EmployeeID">Add Dependent</a> |
        <a asp-action="Index">Back to Employee List</a>
    </div>
</div>

<commit_msg>reworked employee info view to have employee crumbs + dep. list<commit_after>﻿@model payroll.Models.Employee
@{
    ViewBag.Title = "Employee";
}
<ol class="breadcrumb">
    <li><a asp-action="Index">Employees</a></li>
    <li>
        <a asp-action="EditEmployee" asp-route-id="@Model.EmployeeID">
            @Html.DisplayFor(model => model.FirstName)
            @Html.DisplayFor(model => model.LastName)
        </a>
    </li>
</ol>

<div class="panel panel-primary">
    <div class="panel-heading">
        <h3 class="panel-title">@Html.DisplayNameFor(model => model.Dependents)</h3>
    </div>
    <div class="panel-body">
        <table class="table">
            <tr>
                <th>Name</th>
                <th>Relationship</th>
                <th>Actions</th>
            </tr>
            @foreach (var item in Model.Dependents)
            {
                <tr>
                    <td>
                        <a asp-action="EditDependent" asp-route-id="@item.DependentID">
                            @Html.DisplayFor(modelItem => item.FirstName)
                            @Html.DisplayFor(modelItem => item.LastName)
                        </a>
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.Relationship)
                    </td>
                    <td>
                        <a asp-action="DeleteDependent" asp-route-id="@item.DependentID">Delete</a>
                    </td>
                </tr>
            }
        </table>
    </div>
    <div class="panel-footer">
        <a asp-action="AddDependent" asp-route-id="@Model.EmployeeID">Add Dependent</a>
    </div>
</div>


{'fraction_non_alphanumeric': 0.1557084607543323, 'fraction_numerical': 0.0015290519877675841, 'mean_word_length': 1.5224935732647815, 'pattern_counts': {'":': 0, '<': 113, '<?xml version=': 0, '>': 129, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5387517', 'n_tokens_mistral': 1191, 'n_tokens_neox': 1133, 'n_words': 185}