<commit_before>﻿@using SFA.DAS.EmployerApprenticeshipsService.Domain
@model SFA.DAS.EmployerApprenticeshipsService.Domain.TeamMember

<div class="grid-row">
    <div class="column-two-thirds">
        <h2 class="heading-medium">Change access</h2>
        @if (!ViewContext.ViewData.ModelState.IsValid)
        {
            foreach (var state in ViewContext.ViewData.ModelState.Values)
            {
                foreach (var error in state.Errors)
                {
                    <div class="error" style="margin-bottom: 10px;" id="invalidMessage">
                        <p class="error-message">@error.ErrorMessage</p>
                    </div>
                }
            }
        }
        <form method="POST" action="@Url.Action("ChangeRole")">
            @Html.AntiForgeryToken()
            <div class="form-group">
                <label class="form-label" for="Email">Email</label>
                <input class="form-control form-control-3-4" id="Email" name="Email" type="text"
                       aria-required="true" value="@Model.Email" />
            </div>
            <div class="form-group">
                <label class="block-label" for="radio1">
                    <input id="radio1" type="radio" name="Role" value="1" @(Model.Role == Role.Owner ? "checked" : "") />
                    Owner
                </label>
            </div>
            <div class="form-group">
                <label class="block-label" for="radio2">
                    <input id="radio2" type="radio" name="Role" value="2" @(Model.Role == Role.Transactor ? "checked" : "") />
                    Transactor
                </label>
            </div>
            <div class="form-group">
                <label class="block-label" for="radio3">
                    <input id="radio3" type="radio" name="Role" value="3" @(Model.Role == Role.Viewer ? "checked" : "") />
                    Viewer
                </label>
            </div>
            <input type="hidden" id="AccountId" name="AccountId" value="@Model.AccountId" />
            <input type="hidden" id="Email" name="Email" value="@Model.Email" />
            <button type="submit" class="button">Continue</button>
            <p></p>
        </form>
    </div>
</div><commit_msg>Added text to change role sections on screen<commit_after>﻿@using SFA.DAS.EmployerApprenticeshipsService.Domain
@model SFA.DAS.EmployerApprenticeshipsService.Domain.TeamMember

<div class="grid-row">
    <div class="column-two-thirds">
        <h2 class="heading-medium">Change access</h2>
        @if (!ViewContext.ViewData.ModelState.IsValid)
        {
            foreach (var state in ViewContext.ViewData.ModelState.Values)
            {
                foreach (var error in state.Errors)
                {
                    <div class="error" style="margin-bottom: 10px;" id="invalidMessage">
                        <p class="error-message">@error.ErrorMessage</p>
                    </div>
                }
            }
        }
        <form method="POST" action="@Url.Action("ChangeRole")">
            @Html.AntiForgeryToken()
            <div class="form-group">
                <label class="form-label" for="Email">Team member access for @Model.Email</label>
            </div>
            <div class="form-group">
                <label class="block-label" for="radio1">
                    <input id="radio1" type="radio" name="Role" value="3" @(Model.Role == Role.Viewer ? "checked" : "") />
                    <b>Viewer</b><br />
                    A "Viewer" is a team member with limited access to the organisation's account.
                    They can view contracts and account information, but not make changes to it.
                </label>
            </div>
            <div class="form-group">
                <label class="block-label" for="radio2">
                    <input id="radio2" type="radio" name="Role" value="2" @(Model.Role == Role.Transactor ? "checked" : "") />
                    <b>Transactor</b><br/>
                    A "Transactor" is a team member who can:<br/>
                    - create new contracts<br/>
                    - approve in-progress contracts<br/>
                    - pause training payments
                    - stop training payments
                </label>
            </div>
            <div class="form-group">
                <label class="block-label" for="radio3">
                    <input id="radio3" type="radio" name="Role" value="1" @(Model.Role == Role.Owner ? "checked" : "") />
                    <b>Owner</b><br/>
                    An "Owner" is a team member with full access to the organisation's account.
                    They can do everything a viewer or doer can and also<br/>
                    - manage team members<br/>
                    - manage PAYE schemes
                </label>
            </div>
            <input type="hidden" id="AccountId" name="AccountId" value="@Model.AccountId" />
            <input type="hidden" id="Email" name="Email" value="@Model.Email" />
            <button type="submit" class="button">Continue</button>
            <p></p>
        </form>
    </div>
</div>
{'fraction_non_alphanumeric': 0.14398612181958365, 'fraction_numerical': 0.005397070161912105, 'mean_word_length': 1.6555783009211873, 'pattern_counts': {'":': 0, '<': 92, '<?xml version=': 0, '>': 92, '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': '4336461', 'n_tokens_mistral': 1444, 'n_tokens_neox': 1361, 'n_words': 306}