]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/users/edit.html
Besides making an option to make usernames to be editable, is also good that users...
[osqa.git] / forum / skins / default / templates / users / edit.html
index faede0551fdfccbabdc7b8351a48e4af61e612e0..bdd0921ecc49cc761b8c276d8008e19981fd76f3 100644 (file)
@@ -9,7 +9,7 @@
 \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
+\r
         <script type="text/javascript">\r
             $().ready(function(){\r
                 $("#id_birthday").datepicker({\r
@@ -45,7 +45,7 @@
                                        title="gravatar {% trans "image associated with your email address" %}">{% blocktrans %}avatar, see {{gravatar_faq_url}}{% endblocktrans %}</a>\r
             </div>\r
         </div>\r
-\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
                 <tr style="height:35px">\r
                        <td>{% trans "Screen Name" %}:</td>\r
-                       <td>{{ request.user.username }} <span class="form-error"></span> {{ form.username.errors }} </td>\r
+                       <td>\r
+                       {% if form.username %}\r
+                           {{ form.username }} <span class="form-error"></span> {{ form.username.errors }}\r
+                       {% else %}\r
+                           {{ request.user.username }}\r
+                       {% endif %}\r
+                       </td>\r
                    </tr>\r
                 \r
                    <tr style="height:35px">\r