app/soc/templates/soc/person/edit.html
changeset 529 7c5ec72cdcf1
parent 528 5e6ae12cc495
child 530 8d5adb2b8d48
equal deleted inserted replaced
528:5e6ae12cc495 529:7c5ec72cdcf1
     1 {% comment %}
       
     2 Licensed under the Apache License, Version 2.0 (the "License");
       
     3 you may not use this file except in compliance with the License.
       
     4 You may obtain a copy of the License at
       
     5 
       
     6   http://www.apache.org/licenses/LICENSE-2.0
       
     7 
       
     8 Unless required by applicable law or agreed to in writing, software
       
     9 distributed under the License is distributed on an "AS IS" BASIS,
       
    10 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
       
    11 See the License for the specific language governing permissions and
       
    12 limitations under the License.
       
    13 {% endcomment %}
       
    14 {% load forms_helpers %}
       
    15 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
       
    16 <html lang="en">
       
    17  <head>
       
    18   <title>Profile</title>
       
    19   {% block 'stylesheet' %}{% endblock %}
       
    20  </head>
       
    21  <body>
       
    22   <p>
       
    23    {% block 'logo' %}
       
    24    <img src="/soc/content/images/dune.jpg" alt="Melange" />
       
    25    {% endblock %}
       
    26    <p>
       
    27    {% block 'greeting' %}
       
    28    Welcome, {{user.nickname}}.
       
    29    {% endblock %}
       
    30    </p>
       
    31    <p>
       
    32    {% block 'instructions' %}
       
    33    Please update your profile:
       
    34    {% endblock %}
       
    35    </p>
       
    36    <form method="POST">
       
    37     <table>
       
    38      <tr>
       
    39       <td class="formfieldheading" colspan="4">
       
    40        Name <i>(publicly displayed)</i>
       
    41       </td>
       
    42      </tr>
       
    43      {% field_as_table_row form.given_name %}
       
    44      {% field_as_table_row form.surname %}
       
    45      {% field_as_table_row form.display_name %}
       
    46      <tr><td colspan="4">&nbsp;</td></tr>
       
    47 
       
    48      <tr>
       
    49       <td class="formfieldheading" colspan="4">
       
    50        Online Profile <i>(publicly displayed)</i>
       
    51       </td>
       
    52      </tr>
       
    53      {% field_as_table_row form.email %}
       
    54      {% field_as_table_row form.im_network %}
       
    55      {% field_as_table_row form.im_handle %}
       
    56      {% field_as_table_row form.home_page %}
       
    57      {% field_as_table_row form.blog %}
       
    58      {% field_as_table_row form.photo_url %}
       
    59      <tr><td colspan="4">&nbsp;</td></tr>
       
    60 
       
    61      <tr>
       
    62       <td class="formfieldheading" colspan="4">
       
    63        Location <i>(publicly displayed, these will be replaced with a
       
    64                     Google Maps control)</i>
       
    65       </td>
       
    66      </tr>
       
    67      {% field_as_table_row form.latitude %}
       
    68      {% field_as_table_row form.longitude %}
       
    69      <tr><td colspan="4">&nbsp;</td></tr>
       
    70 
       
    71      <tr>
       
    72       <td class="formfieldheading" colspan="4">
       
    73        Residence Address <i>(kept private)</i>
       
    74       </td>
       
    75      </tr>
       
    76      {% field_as_table_row form.res_street %}
       
    77      {% field_as_table_row form.res_city %}
       
    78      {% field_as_table_row form.res_state %}
       
    79      {% field_as_table_row form.res_postalcode %}
       
    80      {% field_as_table_row form.res_country %}
       
    81      <tr><td colspan="4">&nbsp;</td></tr>
       
    82 
       
    83      <tr>
       
    84       <td class="formfieldheading" colspan="4">
       
    85        Shipping Address <i>(kept private; optional, if omitted, Residence
       
    86                             Address will be used)</i>
       
    87       </td>
       
    88      </tr>
       
    89      {% field_as_table_row form.ship_street %}
       
    90      {% field_as_table_row form.ship_city %}
       
    91      {% field_as_table_row form.ship_state %}
       
    92      {% field_as_table_row form.ship_postalcode %}
       
    93      {% field_as_table_row form.ship_country %}
       
    94 
       
    95      <tr><td colspan="4">&nbsp;</td></tr>
       
    96 
       
    97      <tr>
       
    98       <td class="formfieldheading" colspan="4">
       
    99        Personal Information <i>(kept private)</i>
       
   100       </td>
       
   101      </tr>
       
   102      {% field_as_table_row form.phone %}
       
   103      {% field_as_table_row form.birth_date %}
       
   104      {% field_as_table_row form.tshirt_size %}
       
   105      {% field_as_table_row form.tshirt_style %}
       
   106     </table>
       
   107     <input type="submit" />
       
   108    </form>
       
   109   </p>
       
   110  </body>
       
   111 </html>
       
   112