1 {% extends "base_content.html" %}
2 <!-- user_edit.html -->
6 {% block title %}{% spaceless %}{% trans "Edit user profile" %}{% endspaceless %}{% endblock %}
8 <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.4.4/jquery.min.js" integrity="sha512-tcexmm0PBc+jOn9UwbgHVpjZIleEKXif1MCkzgNfVjhXKDxwYumrCOxhZ5tIaXHz2DpEE14hfjFn5J+tpaFSCg==" crossorigin="anonymous"></script>
9 <script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.8.24/jquery-ui.min.js" integrity="sha512-leN1LJ2B5s9cBINeKL5bbT3cQvOebXsezoYGyuMq9oaytpFJgJ1uBOU86lJZObKTFLbMHqP0zFXR/1N6Nnlskw==" crossorigin="anonymous"></script>
10 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.8.24/themes/base/jquery-ui.min.css" integrity="sha512-Lzjd1ELD6YCIwIU5uaJldvbibV5Fi7HThNZjrwJHALBJRT6q2a6ndgi8TNgcKcUqGsH6bpT7xyTEi8qRzN1ASg==" crossorigin="anonymous" />
11 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.8.24/themes/base/jquery.ui.theme.min.css" integrity="sha512-BLVMxLmRDKZgx5GBHNkXJuKBi6D6YOdXN2wUF61yEyF29JIwzU6Z82ZlfpgR+he6XHDh7PspMNNcurw4uk3ZcA==" crossorigin="anonymous" />
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 -->