<commit_before>﻿@inherits Umbraco.Web.Mvc.UmbracoTemplatePage

@using System.Web.Mvc.Html
@using ClientDependency.Core.Mvc
@using Umbraco.Web
@using HRI.Models
@using HRI.Controllers

@{  
    var changeEmailViewModel = new ChangeEmailViewModel();
    
    Html.EnableClientValidation();
    Html.EnableUnobtrusiveJavaScript();
    Html.RequiresJs("/umbraco_client/Application/JQuery/jquery.validate.min.js");
    Html.RequiresJs("/umbraco_client/Application/JQuery/jquery.validate.unobtrusive.min.js");    
}

@if (Convert.ToBoolean(TempData["IsSuccessful"]) == false)
{
    <h3>Update Email</h3>
    <p>Your current email address: <span id="currentEmail" class="avenir-heavy purple">@Membership.GetUser().Email</span></p>

    using (Html.BeginUmbracoForm<MembersSurfaceController>("ChangeEmail"))
    {
        <fieldset>
            @Html.ValidationSummary("changeEmailViewModel", true)
            @Html.AntiForgeryToken()

            @Html.Label("Password", changeEmailViewModel.Password)
            @Html.PasswordFor(m => changeEmailViewModel.Password)
            @Html.ValidationMessageFor(m => changeEmailViewModel.Password)

            @Html.Label("New Email", changeEmailViewModel.Email)
            @Html.TextBoxFor(m => changeEmailViewModel.Email)
            @Html.ValidationMessageFor(m => changeEmailViewModel.Email)

            @Html.Label("Confirm New Email", changeEmailViewModel.Email2)
            @Html.TextBoxFor(m => changeEmailViewModel.Email2)
            @Html.ValidationMessageFor(m => changeEmailViewModel.Email2)
            
            <input type="submit" value="Send" class="btn hri-btn" />
        </fieldset>
    }
}
else
{
    <p>Your email has been successfully changed to <span id="currentEmail" class="avenir-heavy purple">@Membership.GetUser().Email</span></p>
}<commit_msg>HR-188 - change email button: "Submit"<commit_after>﻿@inherits Umbraco.Web.Mvc.UmbracoTemplatePage

@using System.Web.Mvc.Html
@using ClientDependency.Core.Mvc
@using Umbraco.Web
@using HRI.Models
@using HRI.Controllers

@{  
    var changeEmailViewModel = new ChangeEmailViewModel();
    
    Html.EnableClientValidation();
    Html.EnableUnobtrusiveJavaScript();
    Html.RequiresJs("/umbraco_client/Application/JQuery/jquery.validate.min.js");
    Html.RequiresJs("/umbraco_client/Application/JQuery/jquery.validate.unobtrusive.min.js");    
}

@if (Convert.ToBoolean(TempData["IsSuccessful"]) == false)
{
    <h3>Update Email</h3>
    <p>Your current email address: <span id="currentEmail" class="avenir-heavy purple">@Membership.GetUser().Email</span></p>

    using (Html.BeginUmbracoForm<MembersSurfaceController>("ChangeEmail"))
    {
        <fieldset>
            @Html.ValidationSummary("changeEmailViewModel", true)
            @Html.AntiForgeryToken()

            @Html.Label("Password", changeEmailViewModel.Password)
            @Html.PasswordFor(m => changeEmailViewModel.Password)
            @Html.ValidationMessageFor(m => changeEmailViewModel.Password)

            @Html.Label("New Email", changeEmailViewModel.Email)
            @Html.TextBoxFor(m => changeEmailViewModel.Email)
            @Html.ValidationMessageFor(m => changeEmailViewModel.Email)

            @Html.Label("Confirm New Email", changeEmailViewModel.Email2)
            @Html.TextBoxFor(m => changeEmailViewModel.Email2)
            @Html.ValidationMessageFor(m => changeEmailViewModel.Email2)
            
            <input type="submit" value="Submit" class="btn hri-btn" />
        </fieldset>
    }
}
else
{
    <p>Your email has been successfully changed to <span id="currentEmail" class="avenir-heavy purple">@Membership.GetUser().Email</span></p>
}
{'fraction_non_alphanumeric': 0.12953367875647667, 'fraction_numerical': 0.0035451322607035723, 'mean_word_length': 3.5964912280701755, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 43, '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': '3387348', 'n_tokens_mistral': 1107, 'n_tokens_neox': 1061, 'n_words': 160}