mirror of git://git.psyced.org/git/pypsyc
24 lines
789 B
HTML
24 lines
789 B
HTML
{% extends "layout.html" %}
|
|
{% block title %}register{% endblock %}
|
|
{% macro input(name, type='text', label=None) %}
|
|
<tr>
|
|
<td align="right">{{ label or name|capitalize }}:</td>
|
|
<td><input name="{{ name }}" type="{{ type }}" size="30"></td>
|
|
</tr>
|
|
{%- endmacro %}
|
|
{% block content %}
|
|
<h1>register your identity</h1>
|
|
{% if error %}<p class=error><strong>Error:</strong> {{ error }}{% endif %}
|
|
<form action="{{ url_for('register') }}" method="post">
|
|
<table border="0" cellpadding="0" cellspacing="4">
|
|
{{ input('username') }}
|
|
{{ input('password', type='password') }}
|
|
{{ input('password2', label='Confirm password', type='password') }}
|
|
<tr>
|
|
<td> </td>
|
|
<td><input type="submit" value="Register"></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
{% endblock %}
|