]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/users/edit.html
416891c293ae979f1a0cd166c772c4b32a6e924f
[osqa.git] / forum / skins / default / templates / users / edit.html
1 {% extends "base_content.html" %}\r
2 <!-- user_edit.html -->\r
3 {% load extra_tags %}\r
4 {% load humanize %}\r
5 {% load i18n %}\r
6 {% block title %}{% spaceless %}{% trans "Edit user profile" %}{% endspaceless %}{% endblock %}\r
7 {% block forejs %}\r
8         <script type="text/javascript">google.load("jquery", "1.4.2");</script>\r
9 \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
12         \r
13         <script src="{% media  "/media/js/effects.core.min.js" %}" type="text/javascript"></script>\r
14         <script src="{% media  "/media/js/ui.core.js" %}" type="text/javascript"></script>\r
15         <script src="{% media  "/media/js/ui.datepicker.js" %}" type="text/javascript"></script>\r
16 \r
17         <script type="text/javascript">\r
18             $().ready(function(){\r
19                 $("#id_birthday").datepicker({\r
20                     changeMonth: true,\r
21                     changeYear: true,\r
22                     dateFormat: 'yy-mm-dd',\r
23                     minDate: null,\r
24                     maxDate: '0M 0D',\r
25                     yearRange: '1900:2000'\r
26                 });\r
27 \r
28                 $("#nav_profile").attr('className',"on");\r
29                 $("#cancel").bind('click', function(){history.go(-1);})\r
30             });     \r
31         </script>\r
32         {% block userjs %}\r
33         {% endblock %}\r
34 {% endblock %}\r
35 {% block content %}\r
36 <div id="main-bar" class="headNormal">\r
37     {{ request.user.username }} - {% trans "edit profile" %}\r
38 </div>\r
39 <div id="main-body" style="width:100%;padding-top:10px">\r
40     <form name="" action="{% url edit_user request.user.id %}" method="post">\r
41         <div id="left" style="float:left;width:180px">\r
42             {% if request.user.email %}\r
43             {% gravatar request.user 128 %}\r
44             {% else %}\r
45             <img src="{% media  "/media/images/nophoto.png" %}">\r
46             {% endif %}\r
47             <div style="padding:20px 0 0 20px;font-weight:bold;font-size:150%">\r
48                 <a href="http://www.gravatar.com/" target="_blank" \r
49                                         title="gravatar {% trans "image associated with your email address" %}">{% blocktrans %}avatar, see {{gravatar_faq_url}}{% endblocktrans %}</a>\r
50             </div>\r
51         </div>\r
52 \r
53         <div id="askform" style="float:right;width:750px;text-align:left;">\r
54             <h2>{% trans "Registered user" %}</h2>\r
55             <table class="user-details">\r
56                 <tr>\r
57                     <th width="100px"></th>\r
58                     <th></th>\r
59                 </tr>\r
60                 <tr style="height:35px">\r
61                         <td>{% trans "Screen Name" %}:</td>\r
62                         <td>{{ request.user.username }} <span class="form-error"></span> {{ form.username.errors }} </td>\r
63                     </tr>\r
64                 \r
65                     <tr style="height:35px">\r
66                         <td>{{ form.email.label_tag }}:</td>\r
67                         <td>{{ form.email }} <span class="form-error"></span> {{ form.email.errors }} </td>\r
68                     </tr>\r
69                 <tr style="height:35px">\r
70                         <td></td>\r
71                         <td class="title-desc">{{ form.email.help_text }}</td>\r
72                     </tr>\r
73                 <tr style="height:35px">\r
74                         <td>{{ form.realname.label_tag }}:</td>\r
75                         <td>{{ form.realname }} <span class="form-error"></span> {{ form.realname.errors }} </td>\r
76                     </tr>\r
77                 <tr style="height:35px">\r
78                         <td>{{ form.website.label_tag }}:</td>\r
79                         <td>{{ form.website }} <span class="form-error"></span> {{ form.website.errors }} </td>\r
80                     </tr>\r
81                 <tr style="height:35px">\r
82                         <td>{{ form.city.label_tag }}:</td>\r
83                         <td>{{ form.city }} <span class="form-error"></span> {{ form.city.errors }} </td>\r
84                     </tr>\r
85                 <tr style="height:35px">\r
86                         <td>{{ form.birthday.label_tag }}:</td>\r
87                         <td>{{ form.birthday }} <span class="form-error"></span> {{ form.birthday.errors }} </td>\r
88                     </tr>\r
89                 <tr>\r
90                         <td style="vertical-align:top">{{ form.about.label_tag }}:</td>\r
91                         <td>{{ form.about }} <span class="form-error"></span> {{ form.about.errors }} </td>\r
92                     </tr>\r
93                     \r
94             </table>\r
95             <div style="margin:30px 0 60px 0">\r
96                 <input type="submit" value="{% trans "Update" %}" class="submit" >\r
97                 <input id="cancel" type="button" value="{% trans "Cancel" %}" class="submit" >\r
98           \r
99             </div>\r
100         </div>\r
101     </form>\r
102     \r
103 </div>\r
104 {% endblock %}\r
105 <!-- end user_edit.html -->\r