Move soc.views.user.profile.profile() to soc.views.user.profile.edit().
authorTodd Larsen <tlarsen@google.com>
Wed, 20 Aug 2008 00:02:49 +0000
changeset 85 426b4ca2a72a
parent 84 1b31d238ba39
child 86 fd34dd071e5e
Move soc.views.user.profile.profile() to soc.views.user.profile.edit().
app/soc/templates/soc/user/profile/edit.html
app/soc/views/user/profile.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/templates/soc/user/profile/edit.html	Wed Aug 20 00:02:49 2008 +0000
@@ -0,0 +1,36 @@
+{% extends "soc/base.html" %}
+{% comment %}
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+{% endcomment %}
+{% load forms_helpers %}
+{% block page_title %}User Profile{% endblock %}
+{% block header_title %}User Profile{% endblock %}
+{% block body %}
+<p>
+<p>
+{% block instructions %}
+Please use this form to set basic site-wide settings for your participation in Google Open Source Programs.
+{% endblock %}
+</p>
+<form method="POST">
+ <table>
+  {% field_as_table_row form.nick_name %}
+  {% field_as_table_row form.link_name %}
+ </table>
+ <div class="buttons">
+   <input style="font-weight: bold" type="submit" value="Save Changes"/></span>
+   <input type="button" onclick="location.href='/'" value="Cancel"/>
+ </div>
+</form>
+</p>
+{% endblock %}
\ No newline at end of file
--- a/app/soc/views/user/profile.py	Tue Aug 19 23:51:31 2008 +0000
+++ b/app/soc/views/user/profile.py	Wed Aug 20 00:02:49 2008 +0000
@@ -46,7 +46,7 @@
     exclude = ['id']
 
 
-def profile(request, linkname=None, template='soc/user/profile.html'):
+def edit(request, linkname=None, template='soc/user/profile/edit.html'):
   """View for a User to modify the properties of a UserModel.
 
   Args: