join / templates / cadastro_aluno.html

{% extends "super.html" %}

{% block titulo %}{{ block.super }} - Cadastro de aluno{% endblock titulo %}

{% block topo %}
    <div align="center"><h1>Cadastro de usuário</h1></div>
{% endblock topo %}

{% block conteudo %}
    {% if msg %}
        <strong>{{ msg }}</strong>
    {% else %}
        {% if form.errors %}
            <font color="red">Erros de validação:<br /><br /></font>
            {% for campo in form %}
                {% if campo.errors %}
                    <br /><strong>{{ campo.label }}</strong> {{ campo.errors }}
                {% endif %}
            {% endfor %}
        {% endif %}
        <form method="post" action="{% url cursos.views.cadastrar %}">
            <table class="table_form" cellpadding="2" cellspacing="0">
                <tr>
                    <td class="label_table_form">Nome:</td>
                    <td class="wid_table_form">{{ form.first_name }}</td>
                </tr>
                <tr>
                    <td class="label_table_form">Sobrenome:</td>
                    <td class="wid_table_form">{{ form.last_name }}</td>
                </tr>
                <tr>
                    <td class="label_table_form">E-mail:</td>
                    <td class="wid_table_form">{{ form.email }}</td>
                </tr>
                <tr>
                    <td class="label_table_form">Nome de usuário:</td>
                    <td class="wid_table_form">{{ form.username }}</td>
                </tr>
                <tr>
                    <td class="label_table_form">Senha:</td>
                    <td class="wid_table_form">{{ form.password }}</td>
                </tr>
                <tr>
                    <td class="label_table_form">Confirme a senha:</td>
                    <td class="wid_table_form">{{ form.confirmacao_senha }}</td>
                </tr>
                <tr>
                    <td class="label_table_form">CPF:</td>
                    <td class="wid_table_form">{{ form.cpf }}</td>
                </tr>
                <tr>
                    <td class="label_table_form">&nbsp;</td>
                    <td class="submit_table_form"><input type="submit" value="Cadastrar" /></td>
                </tr>
            </table>
        </form>
    {% endif %}
{% endblock conteudo %}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.