app/soc/templates/soc/user/edit.html
changeset 446 0b479d573a4c
child 481 94834a1e6c01
equal deleted inserted replaced
445:31927f21970d 446:0b479d573a4c
       
     1 {% extends "soc/base.html" %}
       
     2 {% comment %}
       
     3 Licensed under the Apache License, Version 2.0 (the "License");
       
     4 you may not use this file except in compliance with the License.
       
     5 You may obtain a copy of the License at
       
     6 
       
     7   http://www.apache.org/licenses/LICENSE-2.0
       
     8 
       
     9 Unless required by applicable law or agreed to in writing, software
       
    10 distributed under the License is distributed on an "AS IS" BASIS,
       
    11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
       
    12 See the License for the specific language governing permissions and
       
    13 limitations under the License.
       
    14 {% endcomment %}
       
    15 {% load forms_helpers %}
       
    16 {% block header_title %}
       
    17  {{ page.short_name }}
       
    18  {% if existing_user %}
       
    19 for {{ existing_user.nick_name }}
       
    20 <a href="mailto:{{ existing_user.id.email }} ">&lt;{{ existing_user.id.email }}&gt;</a>
       
    21  {% endif %}
       
    22 {% endblock %}
       
    23 {% block body %}
       
    24 <p>
       
    25 <p>
       
    26 {% block instructions %}
       
    27 Please use this form to alter basic site-wide settings for a User in Google Open Source Programs.
       
    28 {% endblock %}
       
    29 </p>
       
    30 <form method="POST">
       
    31   {{ form.key_name }}
       
    32  <table>
       
    33   {% if existing_user %}
       
    34   {% readonly_field_as_table_row "Id" existing_user.id %}
       
    35   {% endif %}
       
    36   {% field_as_table_row form.id %}
       
    37 {% if lookup_error %}
       
    38 <tr>
       
    39  <td>&nbsp;</td>
       
    40  <td colspan="3" class="formfielderror">
       
    41   {{ lookup_error }}
       
    42  </td>
       
    43 </tr>
       
    44 {% endif %}
       
    45   {% field_as_table_row form.link_name %}
       
    46   {% field_as_table_row form.nick_name %}
       
    47   {% field_as_table_row form.is_developer %}
       
    48   {% if existing_user.former_ids %}
       
    49   <tr>
       
    50    <td class="formfieldlabel">Former ids</td>
       
    51    <td>
       
    52        {% for former_id in existing_user.former_ids %}
       
    53        {{ former_id }}<br />
       
    54        {% endfor %}
       
    55    </td>
       
    56    <td class="formfieldrequired">&nbsp;</td>
       
    57    <td class="formfieldhelptext">&nbsp;</td>
       
    58   </tr>
       
    59   {% endif %}
       
    60   <tr>
       
    61    <td colspan="4">&nbsp;</td>
       
    62   </tr>
       
    63    <table>
       
    64    <tr>
       
    65      {% block submit_buttons %}
       
    66     <td> 
       
    67      <input style="font-weight: bold" type="submit" value="Save Changes"/></span>
       
    68     </td>
       
    69     <td>
       
    70      <input type="button" onclick="location.href='/'" value="Cancel"/>
       
    71     </td>
       
    72     {% if submit_error %}
       
    73        <td class="formfielderror">
       
    74         {{ submit_error }}
       
    75        </td>
       
    76     {% endif %}
       
    77     {% endblock %}
       
    78    </tr>
       
    79   </table>
       
    80 </form>
       
    81 </p>
       
    82 {% endblock %}