<commit_before>﻿@model IEnumerable<TestRailMVC.Models.ApplicationUser>

@{
    ViewBag.Title = "Add a User";
}

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()

    <table class="table">
        <tr>
            <th>
                @Html.DisplayNameFor(model => model.Forename)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Surname)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Email)
            </th>
            <th></th>
        </tr>

        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.Forename)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Surname)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Email)
                </td>
                <td>
                    <input type="submit" value="Add to Project" class="btn btn-default" />
                </td>
                <td>
                    @Html.Hidden("UserIdentifier", item.Id)
                </td>
            </tr>
        }
    </table>
        
    <table>
        <!-- Hidden row stores the projectId -->
        <tr>
            <td>
                @Html.Hidden("ProjectIdentifier", ViewData["ProjectId"])
            </td>
        </tr>
    </table>
    
}<commit_msg>fixed issue where only the first user was being added<commit_after>﻿@model IEnumerable<TestRailMVC.Models.ApplicationUser>

@{
    ViewBag.Title = "Add a User";
}
    <table class="table">
        <tr>
            <th>
                @Html.DisplayNameFor(model => model.Forename)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Surname)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Email)
            </th>
            <th></th>
        </tr>

        @foreach (var item in Model)
        {
            using (Html.BeginForm())
            {

                @Html.AntiForgeryToken()

                <tr>
                    <td>
                        @Html.DisplayFor(modelItem => item.Forename)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.Surname)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.Email)
                    </td>
                    <td>
                        <input type="submit" value="Add to Project" class="btn btn-default" />
                    </td>
                    <td>
                        @Html.Hidden("UserIdentifier", item.Id)
                    </td>
                    <td>
                        @Html.Hidden("ProjectIdentifier", ViewData["ProjectId"])
                    </td>
                </tr>
            }
        }
</table>
{'fraction_non_alphanumeric': 0.12594113620807665, 'fraction_numerical': 0.0, 'mean_word_length': 0.9979494190020506, 'pattern_counts': {'":': 0, '<': 64, '<?xml version=': 0, '>': 76, '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': '3623409', 'n_tokens_mistral': 815, 'n_tokens_neox': 756, 'n_words': 144}