|
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 body %} |
|
17 <p> |
|
18 <p> |
|
19 {% block instructions %} |
|
20 Please use this form to look up an existing User in Google Open Source Programs. |
|
21 {% endblock %} |
|
22 </p> |
|
23 <form method="POST"> |
|
24 <table> |
|
25 {% if found_user %} |
|
26 {% readonly_field_as_table_row "Id" found_user.id %} |
|
27 {% endif %} |
|
28 {% if email_error %} |
|
29 <tr> |
|
30 <td> </td> |
|
31 <td colspan="3" class="formfielderror"> |
|
32 {{ email_error }} |
|
33 </td> |
|
34 </tr> |
|
35 {% endif %} |
|
36 {% field_as_table_row form.id %} |
|
37 {% if link_name_error %} |
|
38 <tr> |
|
39 <td> </td> |
|
40 <td colspan="3" class="formfielderror"> |
|
41 {{ link_name_error }} |
|
42 </td> |
|
43 </tr> |
|
44 {% endif %} |
|
45 {% field_as_table_row form.link_name %} |
|
46 {% if found_user %} |
|
47 <tr> |
|
48 <td class="formfieldlabel">Nick name</td> |
|
49 <td>{{ found_user.nick_name }}</td> |
|
50 <td class="formfieldrequired"> </td> |
|
51 <td class="formfieldhelptext"> </td> |
|
52 </tr> |
|
53 <tr> |
|
54 <td class="formfieldlabel">Is Developer</td> |
|
55 <td>{{ found_user.is_developer }}</td> |
|
56 <td class="formfieldrequired"> </td> |
|
57 <td class="formfieldhelptext"> </td> |
|
58 </tr> |
|
59 |
|
60 {% if found_user.former_ids %} |
|
61 <tr> |
|
62 <td class="formfieldlabel">Former ids</td> |
|
63 <td> |
|
64 {% for former_id in found_user.former_ids %} |
|
65 {{ former_id }}<br /> |
|
66 {% endfor %} |
|
67 </td> |
|
68 <td class="formfieldrequired"> </td> |
|
69 <td class="formfieldhelptext"> </td> |
|
70 </tr> |
|
71 {% endif %} |
|
72 {% endif %} |
|
73 <tr> |
|
74 <td colspan="4"> </td> |
|
75 </tr> |
|
76 <tr> |
|
77 <td> |
|
78 <input type="submit" style="font-weight: bold" name="lookup" value="Look up User"/></span> |
|
79 </td> |
|
80 <td colspan="2"> </td> |
|
81 <td> |
|
82 {% if lookup_message %}<b><i>{{ lookup_message }}</i></b>{% else %} {% endif %} |
|
83 </td> |
|
84 </tr> |
|
85 {% if edit_link %} |
|
86 <tr> |
|
87 <td colspan="4"> </td> |
|
88 </tr> |
|
89 <tr> |
|
90 <td colspan="4"> |
|
91 <a href="{{ edit_link }}">Edit the User profile of {{ found_user.nick_name }}.</a> |
|
92 </td> |
|
93 </tr> |
|
94 {% endif %} |
|
95 {% if lookup_link %} |
|
96 <tr> |
|
97 <td colspan="4"> </td> |
|
98 </tr> |
|
99 <tr> |
|
100 <td colspan="4"> |
|
101 <a href="{{ lookup_link }}">The specified User was not found, but similar |
|
102 Users are listed here.</a> |
|
103 </td> |
|
104 </tr> |
|
105 {% endif %} |
|
106 </table> |
|
107 </form> |
|
108 </p> |
|
109 {% endblock %} |