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