app/soc/templates/soc/user/edit_profile.html
author Sverre Rabbelier <srabbelier@gmail.com>
Sat, 11 Apr 2009 22:59:30 +0000
changeset 2162 03ed2fa5ccc8
parent 1978 a8810c038500
permissions -rw-r--r--
Lower ASCII fix
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1043
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     1
{% extends "soc/base.html" %}
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     2
{% comment %}
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     3
Licensed under the Apache License, Version 2.0 (the "License");
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     4
you may not use this file except in compliance with the License.
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     5
You may obtain a copy of the License at
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     6
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     7
  http://www.apache.org/licenses/LICENSE-2.0
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     8
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     9
Unless required by applicable law or agreed to in writing, software
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    10
distributed under the License is distributed on an "AS IS" BASIS,
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    11
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    12
See the License for the specific language governing permissions and
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    13
limitations under the License.
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    14
{% endcomment %}
1978
a8810c038500 Use the new as_email tag for user profile
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1543
diff changeset
    15
1043
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    16
{% load forms_helpers %}
1978
a8810c038500 Use the new as_email tag for user profile
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1543
diff changeset
    17
1043
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    18
{% block page_title %}User Profile{% endblock %}
1978
a8810c038500 Use the new as_email tag for user profile
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1543
diff changeset
    19
1043
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    20
{% block header_title %}
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    21
{% if user %}
1978
a8810c038500 Use the new as_email tag for user profile
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1543
diff changeset
    22
Modify Existing User Profile for {{ user.name }} ({% as_email account %})</a>
1043
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    23
{% else %}
1978
a8810c038500 Use the new as_email tag for user profile
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1543
diff changeset
    24
Create a New User Profile for {% as_email account %}</a>
1043
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    25
{% endif %}
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    26
{% endblock %}
1978
a8810c038500 Use the new as_email tag for user profile
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1543
diff changeset
    27
1043
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    28
{% block body %}
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    29
<p>
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    30
<p>
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    31
{% block instructions %}
1457
9fd31955cc49 Make use of site_name where possible
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1249
diff changeset
    32
Please use this form to set basic site-wide settings for your participation in {{ site_name }}.
1043
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    33
{% endblock %}
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    34
</p>
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    35
<form method="POST">
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    36
 <table>
1543
60e0a164a867 Inform the user that the link_id cannot be changed
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1457
diff changeset
    37
  {% field_as_table_row form.link_id %}
60e0a164a867 Inform the user that the link_id cannot be changed
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1457
diff changeset
    38
{% if not user %}
60e0a164a867 Inform the user that the link_id cannot be changed
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1457
diff changeset
    39
  <tr>
60e0a164a867 Inform the user that the link_id cannot be changed
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1457
diff changeset
    40
   <td class="fieldhelptext" colspan="4">
60e0a164a867 Inform the user that the link_id cannot be changed
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1457
diff changeset
    41
This <i>Link ID</i> is used throughout the site when creating various URL
60e0a164a867 Inform the user that the link_id cannot be changed
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1457
diff changeset
    42
links related to you and content you create.  As a result, it may only
2162
03ed2fa5ccc8 Lower ASCII fix
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1978
diff changeset
    43
consist of <a href="http://en.wikipedia.org/wiki/ASCII">ASCII</a>
03ed2fa5ccc8 Lower ASCII fix
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1978
diff changeset
    44
characters, digits, and underscores.  Also, it must
1543
60e0a164a867 Inform the user that the link_id cannot be changed
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1457
diff changeset
    45
be unique and not in use by any other user of the site.<br>
60e0a164a867 Inform the user that the link_id cannot be changed
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1457
diff changeset
    46
<br>
60e0a164a867 Inform the user that the link_id cannot be changed
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1457
diff changeset
    47
<div style="text-align: center; font-size: 14pt;"><b>The Link ID can NOT be changed.</b></div>
60e0a164a867 Inform the user that the link_id cannot be changed
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1457
diff changeset
    48
<br>
60e0a164a867 Inform the user that the link_id cannot be changed
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1457
diff changeset
    49
   </td>
60e0a164a867 Inform the user that the link_id cannot be changed
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1457
diff changeset
    50
  </tr>
60e0a164a867 Inform the user that the link_id cannot be changed
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1457
diff changeset
    51
  <tr><td colspan="4">&nbsp;</td></tr>
60e0a164a867 Inform the user that the link_id cannot be changed
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1457
diff changeset
    52
  {% else %}
60e0a164a867 Inform the user that the link_id cannot be changed
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1457
diff changeset
    53
    </td>
60e0a164a867 Inform the user that the link_id cannot be changed
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1457
diff changeset
    54
  </tr>
60e0a164a867 Inform the user that the link_id cannot be changed
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1457
diff changeset
    55
  {% endif %}
60e0a164a867 Inform the user that the link_id cannot be changed
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1457
diff changeset
    56
1043
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    57
  {% field_as_table_row form.name %}
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    58
  <tr>
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    59
   <td class="fieldhelptext" colspan="4">
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    60
While you can use your real name, like <tt>First Last</tt>, please
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    61
keep in mind that this public name will be used as your alias
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    62
<b><i>throughout the site</i></b>, displayed to all users, for comments,
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    63
document ownership, and the like.  You can change this public name at any
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    64
time.<br>
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    65
<br>
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    66
<b><i>Please</i> do not <i>use your real name if you are a minor (not an
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    67
adult) where you live.</i></b>
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    68
   </td>
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    69
  </tr>
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    70
  <tr><td colspan="4">&nbsp;</td></tr>
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    71
1164
d0e14654431a User profile now shows the time on which you signed the ToS.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1076
diff changeset
    72
{% if tos_link %}
d0e14654431a User profile now shows the time on which you signed the ToS.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1076
diff changeset
    73
{% if not user.agreed_to_tos %}
1076
063194eaf87b Added agreed_to_tos_on field in user and role model.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1043
diff changeset
    74
<tr>
1216
ec4f1dd84b39 Make the ToS text in-line and hook up thick-box in the help-text.
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1169
diff changeset
    75
  <td style="width:450px" colspan="4">
ec4f1dd84b39 Make the ToS text in-line and hook up thick-box in the help-text.
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1169
diff changeset
    76
    <div id="ToS" style="overflow:auto;height:200px">
1076
063194eaf87b Added agreed_to_tos_on field in user and role model.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1043
diff changeset
    77
      {{ tos_contents|safe|linebreaks }}
1216
ec4f1dd84b39 Make the ToS text in-line and hook up thick-box in the help-text.
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1169
diff changeset
    78
    </div>
1076
063194eaf87b Added agreed_to_tos_on field in user and role model.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1043
diff changeset
    79
  </td>
063194eaf87b Added agreed_to_tos_on field in user and role model.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1043
diff changeset
    80
</tr>
063194eaf87b Added agreed_to_tos_on field in user and role model.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1043
diff changeset
    81
  {% field_as_table_row form.agreed_to_tos %}
1043
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    82
  <tr>
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    83
   <td class="fieldhelptext" colspan="4">
1216
ec4f1dd84b39 Make the ToS text in-line and hook up thick-box in the help-text.
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1169
diff changeset
    84
   <div id="ToS_hidden" style="display:none">
ec4f1dd84b39 Make the ToS text in-line and hook up thick-box in the help-text.
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1169
diff changeset
    85
      {{ tos_contents|safe|linebreaks }}
ec4f1dd84b39 Make the ToS text in-line and hook up thick-box in the help-text.
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1169
diff changeset
    86
   </div>
1043
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    87
In order to participate on this site, you must agree to the
1216
ec4f1dd84b39 Make the ToS text in-line and hook up thick-box in the help-text.
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1169
diff changeset
    88
<a href="#TB_inline?height=500&amp;width=500&amp;inlineId=ToS_hidden" title="Terms of Service" class="thickbox">site-wide Terms of Service</a>.<br><br>
1043
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    89
(There may also be additional Terms of Service specific to participation
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    90
in certain Programs or Groups.  Those are agreed to elsewhere on the site,
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    91
when signing up for the specific participation Roles.)
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    92
   </td>
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    93
  </tr>
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    94
  <tr><td colspan="4">&nbsp;</td></tr>
1164
d0e14654431a User profile now shows the time on which you signed the ToS.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1076
diff changeset
    95
{% else %}
d0e14654431a User profile now shows the time on which you signed the ToS.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1076
diff changeset
    96
{% field_as_table_row form.agreed_to_tos_on %}
1168
cb282e6baa1c Adding a hidden agreed_to_tos field when the user has signed the ToS.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1164
diff changeset
    97
{{ form.agreed_to_tos }}
1043
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    98
{% endif %}
1164
d0e14654431a User profile now shows the time on which you signed the ToS.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1076
diff changeset
    99
{% endif %}
1043
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   100
 </table>
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   101
 <table>
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   102
  <tr>
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   103
    {% block submit_buttons %}
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   104
   <td> 
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   105
    <input style="font-weight: bold" type="submit" value="Save Changes"/></span>
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   106
   </td>
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   107
   <td>
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   108
    <input type="button" onclick="location.href='/'" value="Cancel"/>
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   109
   </td>
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   110
    {% endblock %}
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   111
  </tr>
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   112
 </table>
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   113
</form>
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   114
</p>
5e15994b2033 Redone the user's profile page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   115
{% endblock %}