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">
\r
9 $().ready(function(){
\r
10 $("#nav_profile").attr('className',"on");
\r
11 $("#cancel").bind('click', function(){history.go(-1);})
\r
18 <div id="main-bar" class="headNormal">
\r
19 {{ request.user.username }} - {% trans "edit profile" %}
\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
27 <img src="{% media "/media/images/nophoto.png" %}">
\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
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
39 <th width="100px"></th>
\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
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
51 <tr style="height:35px">
\r
53 <td class="title-desc">{{ form.email.help_text }}</td>
\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
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
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
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
71 <tr style="height:35px">
\r
73 <td class="title-desc">{{ form.birthday.help_text }}</td>
\r
75 <tr style="height:10px">
\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
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
95 <!-- end user_edit.html -->
\r