1 {% extends "base_content.html" %}
\r
2 <!-- user_edit.html -->
\r
3 {% load extra_tags %}
\r
6 {% block title %}{% spaceless %}{% trans "Edit user profile" %}{% endspaceless %}{% endblock %}
\r
8 <script type="text/javascript">google.load("jquery", "1.4.2");google.load("jqueryui", "1.8.1");</script>
\r
10 <link rel="stylesheet" href="http://jquery-ui.googlecode.com/svn/tags/latest/themes/base/jquery-ui.css" type="text/css" media="all" />
\r
11 <link rel="stylesheet" href="http://static.jquery.com/ui/css/demo-docs-theme/ui.theme.css" type="text/css" media="all" />
\r
13 <script type="text/javascript">
\r
14 $().ready(function(){
\r
15 $("#id_birthday").datepicker({
\r
18 dateFormat: 'yy-mm-dd',
\r
21 yearRange: '1920:2010'
\r
24 $("#nav_profile").attr('className',"on");
\r
25 $("#cancel").bind('click', function(){history.go(-1);})
\r
32 <div id="main-bar" class="headNormal">
\r
33 {{ user.username }} - {% trans "edit profile" %}
\r
35 <div id="main-body" style="width:100%;padding-top:10px">
\r
36 <form name="" action="{% url edit_user user.id %}" method="post">
\r
37 <div id="left" style="float:left;width:180px">
\r
39 {% gravatar user 128 %}
\r
41 <img src="{% media "/media/images/nophoto.png" %}">
\r
43 <div style="padding:20px 0 0 20px;font-weight:bold;font-size:150%">
\r
44 <a href="http://www.gravatar.com/" target="_blank"
\r
45 title="gravatar {% trans "image associated with your email address" %}">{% trans "gravatar" %}</a>
\r
49 <div id="askform" style="float:right;width:750px;text-align:left;">
\r
50 <h2>{% trans "Registered user" %}</h2>
\r
51 <table class="user-details">
\r
53 <th width="100px"></th>
\r
56 <tr style="height:35px">
\r
57 <td>{% trans "Screen Name" %}:</td>
\r
59 {% if form.username %}
\r
60 {{ form.username }} <span class="form-error"></span> {{ form.username.errors }}
\r
67 <tr style="height:35px">
\r
68 <td>{{ form.email.label_tag }}:</td>
\r
69 <td>{{ form.email }} <span class="form-error"></span> {{ form.email.errors }} </td>
\r
71 <tr style="height:35px">
\r
73 <td class="title-desc">{{ form.email.help_text }}</td>
\r
75 <tr style="height:35px">
\r
76 <td>{{ form.realname.label_tag }}:</td>
\r
77 <td>{{ form.realname }} <span class="form-error"></span> {{ form.realname.errors }} </td>
\r
79 <tr style="height:35px">
\r
80 <td>{{ form.website.label_tag }}:</td>
\r
81 <td>{{ form.website }} <span class="form-error"></span> {{ form.website.errors }} </td>
\r
83 <tr style="height:35px">
\r
84 <td>{{ form.city.label_tag }}:</td>
\r
85 <td>{{ form.city }} <span class="form-error"></span> {{ form.city.errors }} </td>
\r
87 <tr style="height:35px">
\r
88 <td>{{ form.birthday.label_tag }}:</td>
\r
89 <td>{{ form.birthday }} <span class="form-error"></span> {{ form.birthday.errors }} </td>
\r
92 <td style="vertical-align:top">{{ form.about.label_tag }}:</td>
\r
93 <td>{{ form.about }} <span class="form-error"></span> {{ form.about.errors }} </td>
\r
97 <div style="margin:30px 0 60px 0">
\r
98 <input type="submit" value="{% trans "Update" %}" class="submit" >
\r
99 <input id="cancel" type="button" value="{% trans "Cancel" %}" class="submit" >
\r
107 <!-- end user_edit.html -->
\r