]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/users/edit.html
Load jQuery from cdnjs
[osqa.git] / forum / skins / default / templates / users / edit.html
index ce54c773e6633b551b7f7414a34ff0e97e4a4843..b86e24753a0701975ba12090eab9f514d1810caa 100644 (file)
-{% extends "base_content.html" %}\r
-<!-- user_edit.html -->\r
-{% load extra_tags %}\r
-{% load humanize %}\r
-{% load i18n %}\r
-{% block title %}{% spaceless %}{% trans "Edit user profile" %}{% endspaceless %}{% endblock %}\r
-{% block forejs %}\r
-        <script type="text/javascript">google.load("jquery", "1.4.2");google.load("jqueryui", "1.8.1");</script>\r
-\r
-        <link rel="stylesheet" href="http://jquery-ui.googlecode.com/svn/tags/latest/themes/base/jquery-ui.css" type="text/css" media="all" />\r
-        <link rel="stylesheet" href="http://static.jquery.com/ui/css/demo-docs-theme/ui.theme.css" type="text/css" media="all" />\r
-\r
-        <script type="text/javascript">\r
-            $().ready(function(){\r
-                $("#id_birthday").datepicker({\r
-                    changeMonth: true,\r
-                    changeYear: true,\r
-                    dateFormat: 'yy-mm-dd',\r
-                    minDate: null,\r
-                    maxDate: '0M 0D',\r
-                    yearRange: '1920:2010'\r
-                });\r
-\r
-                $("#nav_profile").attr('className',"on");\r
-                $("#cancel").bind('click', function(){history.go(-1);})\r
-            });     \r
-        </script>\r
-        {% block userjs %}\r
-        {% endblock %}\r
-{% endblock %}\r
-{% block content %}\r
-<div id="main-bar" class="headNormal">\r
-    {{ user.username }} - {% trans "edit profile" %}\r
-</div>\r
-<div id="main-body" style="width:100%;padding-top:10px">\r
-    <form name="" action="{% url edit_user user.id user.username|slugify %}" method="post">\r
-        {% csrf_token %}\r
-        <div id="left" style="float:left;width:180px">\r
-            {% if user.email %}\r
-            {% gravatar user 128 %}\r
-            {% else %}\r
-            <img src="{% media  "/media/images/nophoto.png" %}">\r
-            {% endif %}\r
-            <div style="padding:20px 0 0 20px;font-weight:bold;font-size:150%">\r
-                <a href="http://www.gravatar.com/" target="_blank" \r
-                                       title="gravatar {% trans "image associated with your email address" %}">{% trans "gravatar" %}</a>\r
-            </div>\r
-        </div>\r
-        \r
-        <div id="askform" style="float:right;width:750px;text-align:left;">\r
-            <h2>{% trans "Registered user" %}</h2>\r
-            <table class="user-details">\r
-                <tr>\r
-                    <th width="100px"></th>\r
-                    <th></th>\r
-                </tr>\r
-                <tr style="height:35px">\r
-                       <td>{% trans "Screen Name" %}:</td>\r
-                       <td>\r
-                       {% if form.username %}\r
-                           {{ form.username }} <span class="form-error"></span> {{ form.username.errors }}\r
-                       {% else %}\r
-                           {{ user.username }}\r
-                       {% endif %}\r
-                       </td>\r
-                   </tr>\r
-                \r
-                   <tr style="height:35px">\r
-                       <td>{{ form.email.label_tag }}:</td>\r
-                       <td>{{ form.email }} <span class="form-error"></span> {{ form.email.errors }} </td>\r
-                   </tr>\r
-                <tr style="height:35px">\r
-                       <td></td>\r
-                       <td class="title-desc">{{ form.email.help_text }}</td>\r
-                   </tr>\r
-                <tr style="height:35px">\r
-                       <td>{{ form.realname.label_tag }}:</td>\r
-                       <td>{{ form.realname }} <span class="form-error"></span> {{ form.realname.errors }} </td>\r
-                   </tr>\r
-                <tr style="height:35px">\r
-                       <td>{{ form.website.label_tag }}:</td>\r
-                       <td>{{ form.website }} <span class="form-error"></span> {{ form.website.errors }} </td>\r
-                   </tr>\r
-                <tr style="height:35px">\r
-                       <td>{{ form.city.label_tag }}:</td>\r
-                       <td>{{ form.city }} <span class="form-error"></span> {{ form.city.errors }} </td>\r
-                   </tr>\r
-                <tr style="height:35px">\r
-                       <td>{{ form.birthday.label_tag }}:</td>\r
-                       <td>{{ form.birthday }} <span class="form-error"></span> {{ form.birthday.errors }} </td>\r
-                   </tr>\r
-                <tr>\r
-                       <td style="vertical-align:top">{{ form.about.label_tag }}:</td>\r
-                       <td>{{ form.about }} <span class="form-error"></span> {{ form.about.errors }} </td>\r
-                   </tr>\r
-                   \r
-            </table>\r
-            <div style="margin:30px 0 60px 0">\r
-                <input type="submit" value="{% trans "Update" %}" class="submit" >\r
-                <input id="cancel" type="button" value="{% trans "Cancel" %}" class="submit" >\r
-          \r
-            </div>\r
-        </div>\r
-    </form>\r
-    \r
-</div>\r
-{% endblock %}\r
-<!-- end user_edit.html -->\r
+{% extends "base_content.html" %}
+<!-- user_edit.html -->
+{% load extra_tags %}
+{% load humanize %}
+{% load i18n %}
+{% block title %}{% spaceless %}{% trans "Edit user profile" %}{% endspaceless %}{% endblock %}
+{% block forejs %}
+        <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.4.4/jquery.min.js" integrity="sha512-tcexmm0PBc+jOn9UwbgHVpjZIleEKXif1MCkzgNfVjhXKDxwYumrCOxhZ5tIaXHz2DpEE14hfjFn5J+tpaFSCg==" crossorigin="anonymous"></script>
+        <script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.8.24/jquery-ui.min.js" integrity="sha512-leN1LJ2B5s9cBINeKL5bbT3cQvOebXsezoYGyuMq9oaytpFJgJ1uBOU86lJZObKTFLbMHqP0zFXR/1N6Nnlskw==" crossorigin="anonymous"></script>
+        <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" />
+        <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" />
+
+        <script type="text/javascript">
+            $().ready(function(){
+                $("#id_birthday").datepicker({
+                    changeMonth: true,
+                    changeYear: true,
+                    dateFormat: 'yy-mm-dd',
+                    minDate: null,
+                    maxDate: '0M 0D',
+                    yearRange: '1920:2010'
+                });
+
+                $("#nav_profile").attr('className',"on");
+                $("#cancel").bind('click', function(){history.go(-1);})
+            });
+        </script>
+        {% block userjs %}
+        {% endblock %}
+{% endblock %}
+{% block content %}
+<div id="main-bar" class="headNormal">
+    {{ user.username }} - {% trans "edit profile" %}
+</div>
+<div id="main-body" style="width:100%;padding-top:10px">
+    <form name="" action="{% url "edit_user" user.id user.username|slugify %}" method="post">
+        {% csrf_token %}
+        <div id="left" style="float:left;width:180px">
+            {% if user.email %}
+            {% gravatar user 128 %}
+            {% else %}
+            <img src="{% media  "/media/images/nophoto.png" %}">
+            {% endif %}
+            <div style="padding:20px 0 0 20px;font-weight:bold;font-size:150%">
+                <a href="https://www.gravatar.com/" target="_blank" 
+                    title="gravatar {% trans "image associated with your email address" %}">{% trans "gravatar" %}</a>
+            </div>
+        </div>
+
+        <div id="askform" style="float:right;width:750px;text-align:left;">
+            <h2>{% trans "Registered user" %}</h2>
+            <table class="user-details">
+                <tr>
+                    <th width="100px"></th>
+                    <th></th>
+                </tr>
+                <tr style="height:35px">
+                       <td>{% trans "Screen Name" %}:</td>
+                       <td>
+                       {% if form.username %}
+                           {{ form.username }} <span class="form-error"></span> {{ form.username.errors }}
+                       {% else %}
+                           {{ user.username }}
+                       {% endif %}
+                       </td>
+                   </tr>
+                
+                   <tr style="height:35px">
+                       <td>{{ form.email.label_tag }}:</td>
+                       <td>{{ form.email }} <span class="form-error"></span> {{ form.email.errors }} </td>
+                   </tr>
+                <tr style="height:35px">
+                       <td></td>
+                       <td class="title-desc">{{ form.email.help_text }}</td>
+                   </tr>
+                <tr style="height:35px">
+                       <td>{{ form.realname.label_tag }}:</td>
+                       <td>{{ form.realname }} <span class="form-error"></span> {{ form.realname.errors }} </td>
+                   </tr>
+                <tr style="height:35px">
+                       <td>{{ form.website.label_tag }}:</td>
+                       <td>{{ form.website }} <span class="form-error"></span> {{ form.website.errors }} </td>
+                   </tr>
+                <tr style="height:35px">
+                       <td>{{ form.city.label_tag }}:</td>
+                       <td>{{ form.city }} <span class="form-error"></span> {{ form.city.errors }} </td>
+                   </tr>
+                <tr style="height:35px">
+                       <td>{{ form.birthday.label_tag }}:</td>
+                       <td>{{ form.birthday }} <span class="form-error"></span> {{ form.birthday.errors }} </td>
+                   </tr>
+                <tr>
+                       <td style="vertical-align:top">{{ form.about.label_tag }}:</td>
+                       <td>{{ form.about }} <span class="form-error"></span> {{ form.about.errors }} </td>
+                   </tr>
+       
+            </table>
+            <div style="margin:30px 0 60px 0">
+                <input type="submit" value="{% trans "Update" %}" class="submit" >
+                <input id="cancel" type="button" value="{% trans "Cancel" %}" class="submit" >
+
+            </div>
+        </div>
+    </form>
+
+</div>
+{% endblock %}
+<!-- end user_edit.html -->