Inform the user that the link_id cannot be changed
authorSverre Rabbelier <srabbelier@gmail.com>
Fri, 27 Feb 2009 11:48:12 +0000
changeset 1543 60e0a164a867
parent 1542 9de71e8890e7
child 1544 5d23f0160fcd
Inform the user that the link_id cannot be changed Hide the extended help text once the user has created a profile, since the link_id can no longer be changed. Also moved the link_id to the top of the screen, to make it look better when the extended help text is not shown. Patch by: Sverre Rabbelier
app/soc/templates/soc/user/edit_profile.html
--- a/app/soc/templates/soc/user/edit_profile.html	Fri Feb 27 11:38:24 2009 +0000
+++ b/app/soc/templates/soc/user/edit_profile.html	Fri Feb 27 11:48:12 2009 +0000
@@ -30,6 +30,25 @@
 </p>
 <form method="POST">
  <table>
+  {% field_as_table_row form.link_id %}
+{% if not user %}
+  <tr>
+   <td class="fieldhelptext" colspan="4">
+This <i>Link ID</i> is used throughout the site when creating various URL
+links related to you and content you create.  As a result, it may only
+consist of lower ASCII characters, digits, and underscores.  Also, it must
+be unique and not in use by any other user of the site.<br>
+<br>
+<div style="text-align: center; font-size: 14pt;"><b>The Link ID can NOT be changed.</b></div>
+<br>
+   </td>
+  </tr>
+  <tr><td colspan="4">&nbsp;</td></tr>
+  {% else %}
+    </td>
+  </tr>
+  {% endif %}
+
   {% field_as_table_row form.name %}
   <tr>
    <td class="fieldhelptext" colspan="4">
@@ -45,17 +64,6 @@
   </tr>
   <tr><td colspan="4">&nbsp;</td></tr>
 
-  {% field_as_table_row form.link_id %}
-  <tr>
-   <td class="fieldhelptext" colspan="4">
-This <i>Link ID</i> is used throughout the site when creating various URL
-links related to you and content you create.  As a result, it may only
-consist of lower ASCII characters, digits, and underscores.  Also, it must
-be unique and not in use by any other user of the site.
-   </td>
-  </tr>
-  <tr><td colspan="4">&nbsp;</td></tr>
-
 {% if tos_link %}
 {% if not user.agreed_to_tos %}
 <tr>