{% extends "base.html" %}

{% block title %}Edit profile - {{ block.super }}{% endblock title %}

{% block content %}
<h1>Profile</h1>

<ul>
  <li><a href="{% url 'auth_password_change' %}">Password change</a></li>
  <li><a href="{{ request.user.profile.get_absolute_url }}">View my profile</a></li>
</ul>

<form method="post" action="{% url 'user_profile' %}">
  {{ form.as_p }}

  {{ formset.as_p }}

  <p>
    {% csrf_token %}
    <button type="submit">Update</button>
  </p>
</form>
{% endblock content %}

{% extends "base.html" %}

{% block title %}Edit profile - {{ block.super }}{% endblock title %}

{% block content %}
<h1>Profile</h1>

<ul>
  {% if request.user.has_usable_password %}
  <li><a href="{% url 'auth_password_change' %}">Password change</a></li>
  {% endif %}
  <li><a href="{{ request.user.profile.get_absolute_url }}">View my profile</a></li>
</ul>

<form method="post" action="{% url 'user_profile' %}">
  {{ form.as_p }}

  {{ formset.as_p }}

  <p>
    {% csrf_token %}
    <button type="submit">Update</button>
  </p>
</form>
{% endblock content %}

Remove change password functinality to ``Mozilla Persona`` users.
Remove change password functinality to ``Mozilla Persona`` users.

The functionality is not available to them, since
the password of the account is managed in ``Mozilla Persona``
