<commit_before><template name="updateUserForm">
    {{>UpdateUserComponent}}
</template>

<template name="updateUserComponent">

    <div class="update-user-wrapper-form">

        {{reactiveConstructor}}

        {{# autoForm collection="Meteor.users" doc=this id="updateUserForm" type="update" autosave=true}}

            <div class="row">
                <div class="col-md-5">
                    {{>EditNameComponent collection="Meteor.users" placeholder="First name..." name=profile.firstName pathToUpdate="profile.firstName" _id=_id}}
                </div>

                <div class="col-md-5">
                    {{>EditNameComponent collection="Meteor.users" placeholder="Family name..." name=profile.familyName pathToUpdate="profile.familyName" _id=_id}}
                </div>
                <div class="col-md-2">
                    {{#if isInRole RolesEnum.USERDELETE}}<commit_msg>[RPI] feat (user) : if no username, update form display username on top of the form<commit_after><template name="updateUserForm">
    {{>UpdateUserComponent}}
</template>

<template name="updateUserComponent">

    <div class="update-user-wrapper-form">
        {{reactiveConstructor}}

        {{#unless this.username}}
            <div class="panel panel-primary">
                <div class="panel-heading">You need a username to be identified along the app. It is a mandatory, you can not be validated is you do not have one. Pick a wonderful one...</div>
                <div class="panel-body">
                    <div class="col-md-5">
                        <div>

                            <div class="form-group {{#if userNameError}}has-error{{/if}}">
                                <label for="username" class="control-label">User name</label>
                                <input value="{{username}} " type="text" name="username" id="username" data-schema-key="username_custom_update" class="form-control">
                                <span class="help-block">{{userNameError}}</span>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        {{/unless}}

        {{# autoForm collection="Meteor.users" doc=this id="updateUserForm" type="update" autosave=true}}

            <div class="row">
                <div class="col-md-5">
                    {{>EditNameComponent collection="Meteor.users" placeholder="First name..." name=profile.firstName pathToUpdate="profile.firstName" _id=_id}}
                </div>

                <div class="col-md-5">
                    {{>EditNameComponent collection="Meteor.users" placeholder="Family name..." name=profile.familyName pathToUpdate="profile.familyName" _id=_id}}
                </div>
                <div class="col-md-2">
                    {{#if isInRole RolesEnum.USERDELETE}}
{'fraction_non_alphanumeric': 0.14075114075114076, 'fraction_numerical': 0.002457002457002457, 'mean_word_length': 2.038379530916844, 'pattern_counts': {'":': 0, '<': 40, '<?xml version=': 0, '>': 46, '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': '1364320', 'n_tokens_mistral': 771, 'n_tokens_neox': 724, 'n_words': 160}