]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/users/edit.html
Remove footer link to squatted domain
[osqa.git] / forum / skins / default / templates / users / edit.html
1 {% extends "base_content.html" %}
2 <!-- user_edit.html -->
3 {% load extra_tags %}
4 {% load humanize %}
5 {% load i18n %}
6 {% block title %}{% spaceless %}{% trans "Edit user profile" %}{% endspaceless %}{% endblock %}
7 {% block forejs %}
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" />
12
13         <script type="text/javascript">
14             $().ready(function(){
15                 $("#id_birthday").datepicker({
16                     changeMonth: true,
17                     changeYear: true,
18                     dateFormat: 'yy-mm-dd',
19                     minDate: null,
20                     maxDate: '0M 0D',
21                     yearRange: '1920:2010'
22                 });
23
24                 $("#nav_profile").attr('className',"on");
25                 $("#cancel").bind('click', function(){history.go(-1);})
26             });
27         </script>
28         {% block userjs %}
29         {% endblock %}
30 {% endblock %}
31 {% block content %}
32 <div id="main-bar" class="headNormal">
33     {{ user.username }} - {% trans "edit profile" %}
34 </div>
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">
37         {% csrf_token %}
38         <div id="left" style="float:left;width:180px">
39             {% if user.email %}
40             {% gravatar user 128 %}
41             {% else %}
42             <img src="{% media  "/media/images/nophoto.png" %}">
43             {% endif %}
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>
47             </div>
48         </div>
49
50         <div id="askform" style="float:right;width:750px;text-align:left;">
51             <h2>{% trans "Registered user" %}</h2>
52             <table class="user-details">
53                 <tr>
54                     <th width="100px"></th>
55                     <th></th>
56                 </tr>
57                 <tr style="height:35px">
58                         <td>{% trans "Screen Name" %}:</td>
59                         <td>
60                         {% if form.username %}
61                             {{ form.username }} <span class="form-error"></span> {{ form.username.errors }}
62                         {% else %}
63                             {{ user.username }}
64                         {% endif %}
65                         </td>
66                     </tr>
67                 
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>
71                     </tr>
72                 <tr style="height:35px">
73                         <td></td>
74                         <td class="title-desc">{{ form.email.help_text }}</td>
75                     </tr>
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>
79                     </tr>
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>
83                     </tr>
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>
87                     </tr>
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>
91                     </tr>
92                 <tr>
93                         <td style="vertical-align:top">{{ form.about.label_tag }}:</td>
94                         <td>{{ form.about }} <span class="form-error"></span> {{ form.about.errors }} </td>
95                     </tr>
96         
97             </table>
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" >
101
102             </div>
103         </div>
104     </form>
105
106 </div>
107 {% endblock %}
108 <!-- end user_edit.html -->