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