<commit_before>﻿@model SFA.DAS.EmployerUsers.Web.Models.RegisterViewModel
@{
    ViewBag.PageID = "page-register";
    ViewBag.Title = "Add your details";
    ViewBag.HideSigninLink = "true";
}

@if (!Model.Valid)
{
    <div class="error-summary" role="group" tabindex="-1">
        <h1 class="heading-medium error-summary-heading" id="error-summary-heading"> Errors to fix </h1>
        <p>Check the following details:</p>
        <ul class="error-summary-list">
        @if (!string.IsNullOrEmpty(Model.FirstNameError))
        {
            <li>
                <a class="fake-link" href="#@(nameof(Model.FirstName))">@Model.FirstNameError</a>
            </li>
        }
        @if (!string.IsNullOrEmpty(Model.LastNameError))
        {
            <li>
                <a class="fake-link" href="#@(nameof(Model.LastName))">@Model.LastNameError</a>
            </li>
        }
        @if (!string.IsNullOrEmpty(Model.EmailError))
        {
            <li>
                <a class="fake-link" href="#@(nameof(Model.Email))">@Model.EmailError</a>
            </li>
        }
        @if (!string.IsNullOrEmpty(Model.PasswordError))
        {
            <li>
                <a class="fake-link" href="#@(nameof(Model.Password))">@Model.PasswordError</a>
            </li>
        }
        @if (!string.IsNullOrEmpty(Model.ConfirmPasswordError))
        {
            <li>
                <a class="fake-link" href="#@(nameof(Model.ConfirmPassword))">@Model.ConfirmPasswordError</a>
            </li>
        }
        @if (!string.IsNullOrEmpty(Model.HasAcceptedTermsAndConditionsError))
        {
            <li>
                <a class="fake-link" href="#@(nameof(Model.HasAcceptedTermsAndConditions))">@Model.HasAcceptedTermsAndConditionsError</a>
            </li>
        }
        </ul>
    </div>
}

<h1 class="heading-xlarge">Get set up as a user</h1>

<form method="post" action="@Url.Content("~/identity/employer/register")?returnUrl=@Url.Encode(Model.ReturnUrl)" novalidate>
    @Html.AntiForgeryToken()

    <fieldset>
        <legend class="visuallyhidden">email address and password to sign in</legend>
        <div class="form-group @(!string.IsNullOrEmpty(Model.FirstNameError) ? "error" : "") ">
            <label for="FirstName">
                <span class="form-label-bold">First name</span>
                <span class="error-message" aria-live="polite">@Model.FirstNameError</span>
            </label>
            <input class="form-control" id="FirstName" name="FirstName" value="@Model.FirstName" required="required" aria-required="true" aria-invalid="@(!string.IsNullOrEmpty(Model.FirstNameError) ? "true" : "false")">
        </div>
        <div class="form-group @(!string.IsNullOrEmpty(Model.LastNameError) ? "error" : "") ">
            <label for="LastName">
                <span class="form-label-bold">Last name</span>
                <span class="error-message" aria-live="polite">@Model.LastNameError</span>
            </label>
            <input class="form-control" id="LastName" name="LastName" value="@Model.LastName" required="required" aria-required="True" aria-invalid="@(!string.IsNullOrEmpty(Model.LastNameError) ? "true" : "false")">
        </div>
        <div class="form-group @(!string.IsNullOrEmpty(Model.EmailError) ? "error" : "") ">
            <label for="Email">
                <span class="form-label-bold">Email</span>
                <span class="form-hint">We'll send you an email to confirm your identity.</span>
                <span class="error-message" aria-live="polite">@Model.EmailError</span>
            </label>
            <input class="form-control" id="Email" name="Email" type="text" value="@Model.Email" required="required" aria-required="True" aria-invalid="@(!string.IsNullOrEmpty(Model.EmailError) ? "true" : "false")">
        </div>
        <div class="form-group @(!string.IsNullOrEmpty(Model.PasswordError) ? "error" : "") ">
            <label for="Password">
                <span class="form-label-bold">Create new password</span>
                <span class="form-hint">Password requires upper and lowercase letters, a number and at least 8 characters</span>
                <span class="error-message" aria-live="polite" data-valmsg-for="Password">@Model.PasswordError</span>     
            </label> 
            <input class="form-control" id="Password" type="password" name="Password" required="required" aria-required="true" aria-invalid="@(!string.IsNullOrEmpty(Model.PasswordError) ? "true" : "false")">        
        </div>
        <div class="form-group @(!string.IsNullOrEmpty(Model.ConfirmPasswordError) ? "error" : "") ">
            <label for="ConfirmPassword">
                <span class="form-label-bold">Confirm password</span>
                <span class="error-message" aria-live="polite" data-valmsg-for="ConfirmPassword">@Model.ConfirmPasswordError</span>
            </label>
            <input class="form-control" id="ConfirmPassword" type="password" name="ConfirmPassword" required="required" aria-required="true" aria-invalid="@(!string.IsNullOrEmpty(Model.ConfirmPasswordError) ? "true" : "false")">
            
        </div>
        <div class="panel"><commit_msg>HTML clean up on register page, removed unnecessary aria attributes<commit_after>﻿@model SFA.DAS.EmployerUsers.Web.Models.RegisterViewModel
@{
    ViewBag.PageID = "page-register";
    ViewBag.Title = "Add your details";
    ViewBag.HideSigninLink = "true";
}

@if (!Model.Valid)
{
    <div class="error-summary" role="group" tabindex="-1">
        <h1 class="heading-medium error-summary-heading" id="error-summary-heading"> Errors to fix </h1>
        <p>Check the following details:</p>
        <ul class="error-summary-list">
        @if (!string.IsNullOrEmpty(Model.FirstNameError))
        {
            <li>
                <a href="#@(nameof(Model.FirstName))">@Model.FirstNameError</a>
            </li>
        }
        @if (!string.IsNullOrEmpty(Model.LastNameError))
        {
            <li>
                <a href="#@(nameof(Model.LastName))">@Model.LastNameError</a>
            </li>
        }
        @if (!string.IsNullOrEmpty(Model.EmailError))
        {
            <li>
                <a href="#@(nameof(Model.Email))">@Model.EmailError</a>
            </li>
        }
        @if (!string.IsNullOrEmpty(Model.PasswordError))
        {
            <li>
                <a href="#@(nameof(Model.Password))">@Model.PasswordError</a>
            </li>
        }
        @if (!string.IsNullOrEmpty(Model.ConfirmPasswordError))
        {
            <li>
                <a href="#@(nameof(Model.ConfirmPassword))">@Model.ConfirmPasswordError</a>
            </li>
        }
        @if (!string.IsNullOrEmpty(Model.HasAcceptedTermsAndConditionsError))
        {
            <li>
                <a href="#@(nameof(Model.HasAcceptedTermsAndConditions))">@Model.HasAcceptedTermsAndConditionsError</a>
            </li>
        }
        </ul>
    </div>
}

<h1 class="heading-xlarge">Get set up as a user</h1>
<form method="post" action="@Url.Content("~/identity/employer/register")?returnUrl=@Url.Encode(Model.ReturnUrl)" novalidate>
    @Html.AntiForgeryToken()

    <fieldset>
        <legend class="visuallyhidden">email address and password to sign in</legend>
        <div class="form-group @(!string.IsNullOrEmpty(Model.FirstNameError) ? "error" : "") ">
            <label for="FirstName">
                <span class="form-label-bold">First name</span>
                <span class="error-message">@Model.FirstNameError</span>
            </label>
            <input class="form-control" id="FirstName" name="FirstName" value="@Model.FirstName" required="required" aria-required="true" aria-invalid="@(!string.IsNullOrEmpty(Model.FirstNameError) ? "true" : "false")">
        </div>
        <div class="form-group @(!string.IsNullOrEmpty(Model.LastNameError) ? "error" : "") ">
            <label for="LastName">
                <span class="form-label-bold">Last name</span>
                <span class="error-message">@Model.LastNameError</span>
            </label>
            <input class="form-control" id="LastName" name="LastName" value="@Model.LastName" required="required" aria-required="True" aria-invalid="@(!string.IsNullOrEmpty(Model.LastNameError) ? "true" : "false")">
        </div>
        <div class="form-group @(!string.IsNullOrEmpty(Model.EmailError) ? "error" : "") ">
            <label for="Email">
                <span class="form-label-bold">Email</span>
                <span class="form-hint">We'll send you an email to confirm your identity.</span>
                <span class="error-message">@Model.EmailError</span>
            </label>
            <input class="form-control" id="Email" name="Email" type="text" value="@Model.Email" required="required" aria-required="True" aria-invalid="@(!string.IsNullOrEmpty(Model.EmailError) ? "true" : "false")">
        </div>
        <div class="form-group @(!string.IsNullOrEmpty(Model.PasswordError) ? "error" : "") ">
            <label for="Password">
                <span class="form-label-bold">Create new password</span>
                <span class="form-hint">Password requires upper and lowercase letters, a number and at least 8 characters</span>
                <span class="error-message">@Model.PasswordError</span>     
            </label> 
            <input class="form-control" id="Password" type="password" name="Password" required="required" aria-required="true" aria-invalid="@(!string.IsNullOrEmpty(Model.PasswordError) ? "true" : "false")">        
        </div>
        <div class="form-group @(!string.IsNullOrEmpty(Model.ConfirmPasswordError) ? "error" : "") ">
            <label for="ConfirmPassword">
                <span class="form-label-bold">Confirm password</span>
                <span class="error-message">@Model.ConfirmPasswordError</span>
            </label>
            <input class="form-control" id="ConfirmPassword" type="password" name="ConfirmPassword" required="required" aria-required="true" aria-invalid="@(!string.IsNullOrEmpty(Model.ConfirmPasswordError) ? "true" : "false")">
            
        </div>
        <div class="panel">
{'fraction_non_alphanumeric': 0.16619220575242957, 'fraction_numerical': 0.001177971925002454, 'mean_word_length': 2.6450805008944545, 'pattern_counts': {'":': 0, '<': 179, '<?xml version=': 0, '>': 179, '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': '978827', 'n_tokens_mistral': 3025, 'n_tokens_neox': 2966, 'n_words': 483}