<commit_before>{% import 'Core/Layout/Templates/Alerts.html.twig' as alerts %}

<section id="updateEmailForm" class="profiles">
  <h1>{{ 'msg.ChangeEmail'|trans|ucfirst }}</h1>
  {% if updateEmailSuccess %}
    {{ alerts.alert('success', 'msg.UpdateEmailIsSuccess'|trans) }}
  {% endif %}
  {% if updateEmailHasFormError %}
    {{ alerts.alert('danger', 'err.FormError'|trans) }}
  {% endif %}

  {% form updateEmail %}
    <fieldset>
      <div class="form-group{% if txtPasswordError %} has-danger{% endif %}">
        <label class="form-control-label" for="password">{{ 'lbl.Password'|trans|ucfirst }}<abbr title="{{ 'lbl.RequiredField'|trans|ucfirst }}">*</abbr></label>
        <div>
          {% form_field_error password %}
          {% form_field password %}
        </div>
      </div>
      <div class="form-group{% if txtEmailError %} has-danger{% endif %}">
        <label class="form-control-label" for="email">{{ 'lbl.Email'|trans|ucfirst }}<abbr title="{{ 'lbl.RequiredField'|trans|ucfirst }}">*</abbr></label>
        <div>
          {% form_field_error email %}
          {% form_field email %}
        </div>
      </div>
      <div class="form-group">
        <input class="btn btn-primary" type="submit" value="{{ 'lbl.Save'|trans|ucfirst }}" />
      </div>
    </fieldset>
  {% endform %}
</section><commit_msg>Put the error below the field everywhere<commit_after>{% import 'Core/Layout/Templates/Alerts.html.twig' as alerts %}

<section id="updateEmailForm" class="profiles">
  <h1>{{ 'msg.ChangeEmail'|trans|ucfirst }}</h1>
  {% if updateEmailSuccess %}
    {{ alerts.alert('success', 'msg.UpdateEmailIsSuccess'|trans) }}
  {% endif %}
  {% if updateEmailHasFormError %}
    {{ alerts.alert('danger', 'err.FormError'|trans) }}
  {% endif %}

  {% form updateEmail %}
    <fieldset>
      <div class="form-group{% if txtPasswordError %} has-danger{% endif %}">
        <label class="form-control-label" for="password">{{ 'lbl.Password'|trans|ucfirst }}<abbr title="{{ 'lbl.RequiredField'|trans|ucfirst }}">*</abbr></label>
        <div>
          {% form_field password %}
          {% form_field_error password %}
        </div>
      </div>
      <div class="form-group{% if txtEmailError %} has-danger{% endif %}">
        <label class="form-control-label" for="email">{{ 'lbl.Email'|trans|ucfirst }}<abbr title="{{ 'lbl.RequiredField'|trans|ucfirst }}">*</abbr></label>
        <div>
          {% form_field email %}
          {% form_field_error email %}
        </div>
      </div>
      <div class="form-group">
        <input class="btn btn-primary" type="submit" value="{{ 'lbl.Save'|trans|ucfirst }}" />
      </div>
    </fieldset>
  {% endform %}
</section>
{'fraction_non_alphanumeric': 0.19977720014853323, 'fraction_numerical': 0.0014853323431117712, 'mean_word_length': 3.2966507177033493, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 53, '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': '2774112', 'n_tokens_mistral': 936, 'n_tokens_neox': 863, 'n_words': 161}