<commit_before>﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="Signum.Entities.Authorization" %>
<%@ Import Namespace="Signum.Web" %>
<%@ Import Namespace="Signum.Utilities" %>

<%
    using (var user = Html.TypeContext<UserDN>(false))
    {
        if (user.Value !=null && user.Value.IdOrNull != null)
        {
            %>
            <div id="<%=user.Name + "DivOld"%>">
                <%
                    Html.ValueLine(user, u => u.UserName, vl => vl.StyleContext = new StyleContext { ReadOnly = true});
                    Html.ValueLine("", user.Name + "OldPassword", new ValueLine(){LabelText="Contraseña actual"});
                %>
            </div>
            <%
        }
            %>
            <div id="<%=user.Name + "DivNew"%>" style="display:none">
            <%
                if (user.Value != null && user.Value.IdOrNull == null)
                {
                    Response.Write("<script type=\"text/javascript\" language=\"javascript\">\n" +
                        "$(document).ready(function() {\n" +
                        "$('#" + user.Name + "DivNew').show();\n" +
                        "});\n" +
                        "</script>\n");
                    //Response.Write("<input type=\"hidden\" id=\"{0}\" name=\"{0}\" value=\"\" />\n".Formato(user.Name + EntityBaseKeys.IsNew));

                    Html.ValueLine(user, u => u.UserName);
                    Html.ValueLine("", user.Name + "NewPassword", new ValueLine() { LabelText = "Contraseña" });
                    Html.ValueLine("", user.Name + "NewPasswordBis", new ValueLine() { LabelText = "Repita la contraseña" });
                }
        %>
        </div>
     <%
    }
 %><commit_msg>(TFS CS 3280)<commit_after>﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="Signum.Entities.Authorization" %>
<%@ Import Namespace="Signum.Web" %>
<%@ Import Namespace="Signum.Utilities" %>

<%
    using (var user = Html.TypeContext<UserDN>(false))
    {
        if (user.Value !=null && user.Value.IdOrNull != null)
        {
            %>
            <div id="<%=user.Name + "DivOld"%>">
                <%
                    Html.ValueLine(user, u => u.UserName, vl => vl.StyleContext = new StyleContext { ReadOnly = true});
                    Html.ValueLine("", user.Name + "OldPassword", new ValueLine(){LabelText="Contraseña actual"});
                %>
            </div>
            <%
        }
            %>
            <div id="<%=user.Name + "DivNew"%>" style="display:none">
            <%
                if (user.Value != null && user.Value.IdOrNull == null)
                {
                    Response.Write("<script type=\"text/javascript\">\n" +
                        "$(document).ready(function() {\n" +
                        "$('#" + user.Name + "DivNew').show();\n" +
                        "});\n" +
                        "</script>\n");
                    //Response.Write("<input type=\"hidden\" id=\"{0}\" name=\"{0}\" value=\"\" />\n".Formato(user.Name + EntityBaseKeys.IsNew));

                    Html.ValueLine(user, u => u.UserName);
                    Html.ValueLine("", user.Name + "NewPassword", new ValueLine() { LabelText = "Contraseña" });
                    Html.ValueLine("", user.Name + "NewPasswordBis", new ValueLine() { LabelText = "Repita la contraseña" });
                }
        %>
        </div>
     <%
    }
 %>
{'fraction_non_alphanumeric': 0.1884349827387802, 'fraction_numerical': 0.0023014959723820483, 'mean_word_length': 1.6501524390243902, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 47, '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': '5448378', 'n_tokens_mistral': 1064, 'n_tokens_neox': 996, 'n_words': 167}