# HG changeset patch
# User Todd Larsen
# Date 1221801320 0
# Node ID 1fadf6e0348d45cdeb009f70efda6c024c67d8a2
# Parent a9b3d6c9d4f9b8c87c955bfff4d559d2d6c06a69
Add /site/user/profile Developer view for editing arbitrary User entities.
Update /user/profile edit() view to fix TODO about updating the URL when a
POST of the form changes the link_name of the User. Add a Create New User
link to the base.html sidebar mock-up.
diff -r a9b3d6c9d4f9 -r 1fadf6e0348d app/soc/templates/soc/base.html
--- a/app/soc/templates/soc/base.html Fri Sep 19 05:12:35 2008 +0000
+++ b/app/soc/templates/soc/base.html Fri Sep 19 05:15:20 2008 +0000
@@ -89,6 +89,9 @@
Look Up User
+
+ Create New User
+
diff -r a9b3d6c9d4f9 -r 1fadf6e0348d app/soc/templates/soc/site/user/profile/edit.html
--- a/app/soc/templates/soc/site/user/profile/edit.html Fri Sep 19 05:12:35 2008 +0000
+++ b/app/soc/templates/soc/site/user/profile/edit.html Fri Sep 19 05:15:20 2008 +0000
@@ -14,16 +14,16 @@
{% endcomment %}
{% load forms_helpers %}
{% block page_title %}
- {% if linkname_user %}
+ {% if existing_user %}
Developer: Modify Existing User Profile
{% else %}
Developer: Create New User Profile
{% endif %}
{% endblock %}
{% block header_title %}
- {% if linkname_user %}
- Modify Existing User Profile for {{ linkname_user.nick_name }}
- <{{ linkname_user.id }}>
+ {% if existing_user %}
+ Modify Existing User Profile for {{ existing_user.nick_name }}
+ <{{ existing_user.id }}>
{% else %}
Create a New User Profile
{% endif %}
@@ -38,19 +38,20 @@
diff -r a9b3d6c9d4f9 -r 1fadf6e0348d app/soc/templates/soc/site/user/profile/lookup.html
--- a/app/soc/templates/soc/site/user/profile/lookup.html Fri Sep 19 05:12:35 2008 +0000
+++ b/app/soc/templates/soc/site/user/profile/lookup.html Fri Sep 19 05:15:20 2008 +0000
@@ -28,19 +28,35 @@