{% extends "sphene/community/base.html" %}
{% load i18n %}
{% load sph_extras %}

{% block content %}
{% trans "Modifying user profile for" %} {% sph_html_user profile_user %}<br/><br/>
<form method="POST" action="." class="sphform" enctype="multipart/form-data">{% csrf_token %}
  <table border="0">
    <tr>
      <th>{% trans "Username:" %}</th>
      <td>{{ profile_user.username }}</td>
    </tr>
    {% for field in form %}
      {% if field.field.is_separator %}
        <tr class="separator">
          <th colspan="2">{{ field.label }}</th>
        </tr>
        {% if field.help_text %}
          <tr>
            <td colspan="2">{{ field.help_text }}</td>
          </tr>
        {% endif %}
      {% else %}
        <tr>
          <th><label for="{{ field.auto_id }}">{{ field.label }}</label></th>
          <td>{% if field.errors %}{{ field.errors }}{% endif %}{{ field }}{% if field.help_text %}<br/>{{ field.help_text }}{% endif %}</td>
        </tr>
      {% endif %}
    {% endfor %}
    <tr>
      <td colspan="2"><input type="submit" value="{% trans "Save" %}" /></td>
    </tr>
  </table>
  {% if is_sphboard %}
    <br />{% load sphboard_extras %}
    {% show_active_monitors profile_user %}
  {% endif %}
</form>
{% endblock %}
