{% extends "base.html" %}

{% block title %}Zarządzanie kontami{% endblock %}

{% block extrahead %}
  <script type="text/javascript" src="{{ STATIC_URL }}js/manage_users.js"></script>
{% endblock %}

{% block content %} 

<div id='new-user-account'>
  <p><strong>Utwórz nowe konto:</strong><p>
  <form class="new-account-form" method="post"> {% csrf_token %}
    {{ new_account_form.non_field_errors }}
    <table>
      <tr class="fieldWrapper">
        {{ new_account_form.username.errors }}
        <td>{{ new_account_form.username.label_tag }}:</td>   <td>{{ new_account_form.username }}</td>
      </tr>
      <tr class="fieldWrapper">
        {{ new_account_form.email.errors }}
        <td>{{ new_account_form.email.label_tag }}:</td>   <td>{{ new_account_form.email }}</td>
      </tr>
      <tr class="fieldWrapper">
        {{ new_account_form.password1.errors }}
        <td>{{ new_account_form.password1.label_tag }}:</td>   <td>{{ new_account_form.password1 }}</td>
      </tr>
      <tr class="fieldWrapper">
        {{ new_account_form.password2.errors }}
        <td>{{ new_account_form.password2.label_tag }}:</td>   <td>{{ new_account_form.password2 }}</td>
      </tr>
      <tr class="fieldWrapper">
        {{ new_account_form.group.errors }}
        <td>{{ new_account_form.group.label_tag }}:</td>   <td>{{ new_account_form.group }}</td>
      </tr>
    </table>
    <p class="lexeme-save">
      <button type="submit" id="new-account-form-submit">
        Utwórz
      </button>
      <button type="reset" id="new-account-form-cancel">
        Wyczyść
      </button>
    </p>
  </form>
</div>

<div id='change-user-function'>
</div>

{% endblock %}

