]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/users/edit.html
Merging the experimental branch back to trunk.
[osqa.git] / forum / skins / default / templates / users / edit.html
index 040ebff4b120c4d02f02488c39fb27e8d64cc7d0..b86c59db24cfb3247257bb6603d144b1bffa81b6 100644 (file)
@@ -5,8 +5,26 @@
 {% load i18n %}\r
 {% block title %}{% spaceless %}{% trans "Edit user profile" %}{% endspaceless %}{% endblock %}\r
 {% block forejs %}\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");</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 src="{% media  "/media/js/effects.core.min.js" %}" type="text/javascript"></script>\r
+        <script src="{% media  "/media/js/ui.core.js" %}" type="text/javascript"></script>\r
+        <script src="{% media  "/media/js/ui.datepicker.js" %}" type="text/javascript"></script>\r
+\r
         <script type="text/javascript">\r
             $().ready(function(){\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
                 $("#nav_profile").attr('className',"on");\r
                 $("#cancel").bind('click', function(){history.go(-1);})\r
             });     \r
                        <td>{{ form.birthday.label_tag }}:</td>\r
                        <td>{{ form.birthday }} <span class="form-error"></span> {{ form.birthday.errors }} </td>\r
                    </tr>\r
                        <td>{{ form.birthday.label_tag }}:</td>\r
                        <td>{{ form.birthday }} <span class="form-error"></span> {{ form.birthday.errors }} </td>\r
                    </tr>\r
-                <tr style="height:35px">\r
-                       <td></td>\r
-                       <td class="title-desc">{{ form.birthday.help_text }}</td>\r
-                   </tr>\r
-                <tr style="height:10px">\r
-                    <td colspan="2">\r
-                    </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
                        <td style="vertical-align:top">{{ form.about.label_tag }}:</td>\r
                        <td>{{ form.about }} <span class="form-error"></span> {{ form.about.errors }} </td>\r