Major revamp of Person model, splitting up poorly-validated properties into
StringProperties, etc.
Patch by: Todd Larsen
Review by: Pawel Solyga
Review issue: 261
Review URL: http://codereviews.googleopensourceprograms.com/261
{% comment %}
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
{% endcomment %}
{% load forms_helpers %}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en">
<head>
<title>Profile</title>
{% block 'stylesheet' %}{% endblock %}
</head>
<body>
<p>
{% block 'logo' %}{% endblock %}
Welcome, {{user.nickname}}.
{% block 'instructions' %}Please update your profile:{% endblock %}
<form method="POST">
<table>
<tr>
<td class="formfieldheading" colspan="4">
Name <i>(publicly displayed)</i>
</td>
</tr>
{% field_as_table_row form.given_name %}
{% field_as_table_row form.surname %}
{% field_as_table_row form.nickname %}
{% field_as_table_row form.display_name %}
<tr><td colspan="4"> </td></tr>
<tr>
<td class="formfieldheading" colspan="4">
Online Profile <i>(publicly displayed)</i>
</td>
</tr>
{% field_as_table_row form.email %}
{% field_as_table_row form.im_network %}
{% field_as_table_row form.im_handle %}
{% field_as_table_row form.home_page %}
{% field_as_table_row form.blog %}
{% field_as_table_row form.photo_url %}
<tr><td colspan="4"> </td></tr>
<tr>
<td class="formfieldheading" colspan="4">
Location <i>(publicly displayed, these will be replaced with a
Google Maps control)</i>
</td>
</tr>
{% field_as_table_row form.latitude %}
{% field_as_table_row form.longitude %}
<tr><td colspan="4"> </td></tr>
<tr>
<td class="formfieldheading" colspan="4">
Residence Address <i>(kept private)</i>
</td>
</tr>
{% field_as_table_row form.res_street %}
{% field_as_table_row form.res_city %}
{% field_as_table_row form.res_state %}
{% field_as_table_row form.res_postalcode %}
{% field_as_table_row form.res_country %}
<tr><td colspan="4"> </td></tr>
<tr>
<td class="formfieldheading" colspan="4">
Shipping Address <i>(kept private; optional, if omitted, Residence
Address will be used)</i>
</td>
</tr>
{% field_as_table_row form.ship_street %}
{% field_as_table_row form.ship_city %}
{% field_as_table_row form.ship_state %}
{% field_as_table_row form.ship_postalcode %}
{% field_as_table_row form.ship_country %}
<tr><td colspan="4"> </td></tr>
<tr>
<td class="formfieldheading" colspan="4">
Personal Information <i>(kept private)</i>
</td>
</tr>
{% field_as_table_row form.phone %}
{% field_as_table_row form.birth_date %}
{% field_as_table_row form.tshirt_size %}
{% field_as_table_row form.tshirt_style %}
</table>
<input type="submit" />
</form>
</p>
</body>
</html>