<commit_before>{% extends 'mkt/base.html' %}
{% from 'developers/includes/macros.html' import some_html_tip %}

{% set title = _('Account Settings') %}
{% block title %}{{ mkt_page_title(title) }}{% endblock %}

{% block content %}
  {{ mkt_breadcrumbs(product, [(None, title)]) }}
  <section id="account-settings" class="account">
    <header class="c">
      <h1>{{ _('Basic Info') }}</h1>
      {% include 'account/includes/nav.html' %}
    </header>
    <form class="form-grid" enctype="multipart/form-data" method="post">
      {{ csrf() }}

      <div id="profile-photo" class="simple-field c">
        <div class="form-label">
          <label for="id_photo">{{ _('Profile Photo') }}</label>
        </div>
        <div class="form-col">
          <div class="invisible-upload">
            <a href="#" class="button">{{ _('Choose Photo&hellip;') }}</a>
            <span class="hint">{{ form.photo.help_text }}</span>
            <input type="file" id="id_photo" name="photo">
          </div>
          <img src="{{ amouser.picture_url }}" class="avatar photo"
              {%- if not amouser.picture_type %}
                alt="{{ _('No Photo') }}"
              {%- endif %}>
          {% if amouser.picture_type %}
            <a href="#" data-posturl="{{ url('account.delete_photo') }}"
               class="delete button">{{ _('Delete current photo') }}</a>
          {% endif %}
          {{ form.photo.errors }}
        </div>
      </div>

      <div class="simple-field c">
        <div class="form-label">
          {{ _('PersonaID Email') }}
        </div>
        <div class="form-col">
          <input type="text" disabled value="{{ amo_user.email }}">
          <a href="https://browserid.org/signin" target="_blank">
            {{ _('Change Email') }}</a>
        </div>
      </div>

      <div class="simple-field c">
        <div class="form-label">
          {{ _('PersonaID Password') }}
        </div>
        <div class="form-col">
          <input type="text" disabled id="fake-password" value="•••••">
          <a href="https://browserid.org/signin" target="_blank">
            {{ _('Change Password') }}</a>
        </div>
      </div>

      {{ grid_field(form.display_name, hint=True) }}

      <div class="simple-field c">
        <div class="form-label">
          <label for="{{ form.username.auto_id }}">
            {{ _('Username') }}
          </label>
        </div>
        <div class="form-col">
          <div class="edit_with_prefix c">
            <span>{{ settings.SITE_URL }}/user/</span>{{ form.username }}
          </div>
          {{ form.username.errors }}<commit_msg>rename "Change Email" to "Manage Account"<commit_after>{% extends 'mkt/base.html' %}
{% from 'developers/includes/macros.html' import some_html_tip %}

{% set title = _('Account Settings') %}
{% block title %}{{ mkt_page_title(title) }}{% endblock %}

{% block content %}
  {{ mkt_breadcrumbs(product, [(None, title)]) }}
  <section id="account-settings" class="account">
    <header class="c">
      <h1>{{ _('Basic Info') }}</h1>
      {% include 'account/includes/nav.html' %}
    </header>
    <form class="form-grid" enctype="multipart/form-data" method="post">
      {{ csrf() }}

      <div id="profile-photo" class="simple-field c">
        <div class="form-label">
          <label for="id_photo">{{ _('Profile Photo') }}</label>
        </div>
        <div class="form-col">
          <div class="invisible-upload">
            <a href="#" class="button">{{ _('Choose Photo&hellip;') }}</a>
            <span class="hint">{{ form.photo.help_text }}</span>
            <input type="file" id="id_photo" name="photo">
          </div>
          <img src="{{ amouser.picture_url }}" class="avatar photo"
              {%- if not amouser.picture_type %}
                alt="{{ _('No Photo') }}"
              {%- endif %}>
          {% if amouser.picture_type %}
            <a href="#" data-posturl="{{ url('account.delete_photo') }}"
               class="delete button">{{ _('Delete current photo') }}</a>
          {% endif %}
          {{ form.photo.errors }}
        </div>
      </div>

      <div class="simple-field c">
        <div class="form-label">
          {{ _('PersonaID Email') }}
        </div>
        <div class="form-col">
          <input type="text" disabled value="{{ amo_user.email }}">
          <a href="https://browserid.org/signin" target="_blank">
            {{ _('Manage Preferences') }}</a>
        </div>
      </div>

      <div class="simple-field c">
        <div class="form-label">
          {{ _('PersonaID Password') }}
        </div>
        <div class="form-col">
          <input type="text" disabled id="fake-password" value="•••••">
          <a href="https://browserid.org/signin" target="_blank">
            {{ _('Change Password') }}</a>
        </div>
      </div>

      {{ grid_field(form.display_name, hint=True) }}

      <div class="simple-field c">
        <div class="form-label">
          <label for="{{ form.username.auto_id }}">
            {{ _('Username') }}
          </label>
        </div>
        <div class="form-col">
          <div class="edit_with_prefix c">
            <span>{{ settings.SITE_URL }}/user/</span>{{ form.username }}
          </div>
          {{ form.username.errors }}
{'fraction_non_alphanumeric': 0.20279456193353473, 'fraction_numerical': 0.0007552870090634441, 'mean_word_length': 2.1680622009569377, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 107, 'https://': 4, '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': '4031799', 'n_tokens_mistral': 1697, 'n_tokens_neox': 1633, 'n_words': 337}