<commit_before>﻿@model SFA.DAS.EmployerUsers.Web.Models.UnlockUserViewModel


<h1 class="heading-large">Account locked</h1>

@if (!Model.Valid)
{
    <div class="validation-summary-errors panel-danger" style="margin-bottom: 10px;">
        <div class="panel-body">
            <ul>
                @if (!string.IsNullOrEmpty(Model.EmailError))
                {
                    <li>
                        <a class="fake-link" href="#@(nameof(Model.EmailError))">@Model.EmailError</a>
                    </li>
                }
                @if (!string.IsNullOrEmpty(Model.UnlockCodeError))
                {
                    <li>
                        <a class="fake-link" href="#@(nameof(Model.UnlockCode))">@Model.UnlockCodeError</a>
                    </li>
                }
                @if (!string.IsNullOrEmpty(Model.UnlockCodeExpiryError))
                {
                    <li>
                        <a class="fake-link" href="#@(nameof(Model.UnlockCode))">@Model.UnlockCodeExpiryError</a>
                    </li>
                }
                @if (!string.IsNullOrEmpty(Model.UnlockCodeMatchError))
                {
                    <li>
                        <a class="fake-link" href="#@(nameof(Model.UnlockCode))">@Model.UnlockCodeMatchError</a>
                    </li>
                }
            </ul>
        </div>
    </div>
}
@if (Model.UnlockCodeSent)
{
    <div class="validation-summary-info panel-info">
        <div class="panel-body">
            <p class="text">Unlock code has been resent</p>
        </div>
    </div>   
} 

<p class="text">
    You should receive a 6-character code in your email. Enter the code to unlock your account.
</p>
<form method="POST">
    @Html.AntiForgeryToken()

    <fieldset>
        <legend class="visuallyhidden">email address and unlockcode</legend>
        <div class="form-group @(!string.IsNullOrEmpty(Model.EmailError) ? "input-validation-error" : "") ">
            <a name="@nameof(Model.EmailError)"></a>
            <label class="form-label" for="Email">Email</label>
            <input class="form-control" id="Email" name="Email" value="@Model.Email" aria-required="True" aria-invalid="@(!string.IsNullOrEmpty(Model.EmailError) ? "True" : "False")">
            @if (!string.IsNullOrEmpty(Model.EmailError))
            {
                <span class="field-validation-error" aria-live="polite">
                    @Model.EmailError
                </span>
            }
        </div>
        <div class="form-group @(!string.IsNullOrEmpty(Model.UnlockCodeError) || !string.IsNullOrEmpty(Model.UnlockCodeExpiryError) ? "input-validation-error" : "") ">
            <a name="@nameof(Model.UnlockCode)"></a><commit_msg>Unlock password started cleaning up html<commit_after>﻿@model SFA.DAS.EmployerUsers.Web.Models.UnlockUserViewModel

<h1 class="heading-xlarge">Account locked</h1>

@if (!Model.Valid)
{
    <div class="validation-summary-errors panel-danger">
        <div class="panel-body">
            <ul>
                @if (!string.IsNullOrEmpty(Model.EmailError))
                {
                    <li>
                        <a href="#@(nameof(Model.EmailError))">@Model.EmailError</a>
                    </li>
                }
                @if (!string.IsNullOrEmpty(Model.UnlockCodeError))
                {
                    <li>
                        <a href="#@(nameof(Model.UnlockCode))">@Model.UnlockCodeError</a>
                    </li>
                }
                @if (!string.IsNullOrEmpty(Model.UnlockCodeExpiryError))
                {
                    <li>
                        <a href="#@(nameof(Model.UnlockCode))">@Model.UnlockCodeExpiryError</a>
                    </li>
                }
                @if (!string.IsNullOrEmpty(Model.UnlockCodeMatchError))
                {
                    <li>
                        <a href="#@(nameof(Model.UnlockCode))">@Model.UnlockCodeMatchError</a>
                    </li>
                }
            </ul>
        </div>
    </div>
}
@if (Model.UnlockCodeSent)
{
    <div class="validation-summary-info panel-info">
        <div class="panel-body">
            <p>Unlock code has been resent</p>
        </div>
    </div>   
} 
<p>You should receive a 6 character code in your email. Enter the code to unlock your account.</p>
<form method="POST">
    @Html.AntiForgeryToken()

    <fieldset>
        <legend class="visuallyhidden">Enter your email address and unlock code</legend>
        <div class="form-group @(!string.IsNullOrEmpty(Model.EmailError) ? "error" : "") ">
            
            <label class="form-label" for="Email">Email</label>
            <input class="form-control" id="Email" name="Email" value="@Model.Email" aria-required="true" aria-invalid="@(!string.IsNullOrEmpty(Model.EmailError) ? "True" : "False")">
            @if (!string.IsNullOrEmpty(Model.EmailError))
            {
                <span class="field-validation-error" aria-live="polite">
                    @Model.EmailError
                </span>
            }
        </div>
        <div class="form-group @(!string.IsNullOrEmpty(Model.UnlockCodeError) || !string.IsNullOrEmpty(Model.UnlockCodeExpiryError) ? "input-validation-error" : "") ">
           
{'fraction_non_alphanumeric': 0.14875876444949782, 'fraction_numerical': 0.0015160128861095318, 'mean_word_length': 1.7881669307976757, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 95, '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': '414049', 'n_tokens_mistral': 1551, 'n_tokens_neox': 1483, 'n_words': 238}