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
--- 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"> </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"> </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"> </td></tr>
-
{% if tos_link %}
{% if not user.agreed_to_tos %}
<tr>