project/templates/user/username.html
author Parth buch <parth.buch.115@gmail.com>
Sat, 01 Oct 2011 03:59:03 +0530
branch2011
changeset 429 cde70fd3073c
parent 123 d4799b7159e4
permissions -rw-r--r--
changed the handler404 and handler500 to a custom view, passing scope to get proper formed urls when displaying 404 and 500 pages

{% extends "base.html" %}

{% block title %}Change Your Username{% endblock %}

{% block content %}
    <h1>Change your username</h1>

    <form action="{% url scipycon_username params.scope %}"
          method="post">
        <table class="scipycon-default">
            <tr>
                  <td class="label">
                      <label for="id_username">New username:</label>
                  </td>
                  <td>
                      {{ form.username.errors }}                        
                      {{ form.username }}
                  </td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <input class="button left"
                           type="submit"
                           value="Save username" />
                </td>
            </tr>
        </table>
        
    </form>
{% endblock %}