Please note that the CVS and issue trackers have moved to GitHub. These Trac pages are no longer kept up-to-date.

root/seattle/trunk/seattlegeni/website/html/templates/accounts/register.html@5496

Revision 5496, 2.8 KB (checked in by gpress, 7 years ago)

The red warning message boxes were not proportionally scaled to the green message box (noticeable on the login and register pages with a incorrect login/register). The green message box now scales by a percentage instead of having a max size of 800px

Line 
1{% extends "accounts/accounts_base.html" %}
2
3{% block title %}
4Profile - Clearinghouse
5{% endblock title %}
6
7{% block script %}
8{{ block.super }}
9<script type="text/javascript" src="{{MEDIA_URL}}scripts/register.js" charset="utf-8"></script>
10{% endblock script %}
11
12{% block nav_register %}
13<td class="active">Register</td>
14{% endblock nav_register %}
15
16{% block content %}
17        <div id="main">
18                <div id="middle">
19               
20                  <div id="learn-about-seattle">
21                    New to Seattle? We suggest you first
22                    <a href="https://seattle.cs.washington.edu/">learn about Seattle</a>
23                    before using Seattle Clearinghouse, a resource sharing website.
24                  </div>
25               
26                  <form action="{% url register %}" method="POST" enctype="multipart/form-data">
27
28                  {% if form.username.errors or form.password1.errors or form.password2.errors or form.affiliation.errors or form.email.errors or form.pubkey.errors %}
29                  <p class="warning2">
30                  Please correct the following:</p>
31                  {% endif %}
32                 
33                  {% if page_top_errors %}
34                  <p class="warning">
35                  {% for error in page_top_errors %}
36                    {{ error }}
37                    <br>
38                  {% endfor %}
39                  </p>
40                  {% endif %}
41
42                  <table class="login">
43                    <tr title=' Create a username at least 3 characters long'>
44                      <td class="key">{{ form.username.label_tag }}</td>
45                      <td class="value">{{ form.username }}</td>
46                      <td>{{ form.username.errors }}</td>
47                    </tr>
48                    <tr title=' Create a password at least 6 characters long '>
49                      <td class="key">{{ form.password1.label_tag }}</td>
50                      <td class="value">{{ form.password1 }}</td>
51                      <td>{{ form.password1.errors }}</td>
52                    </tr>
53                    <tr title='Reenter the password '>
54                      <td class="key">{{ form.password2.label_tag }}</td>
55                      <td class="value">{{ form.password2 }}</td>
56                      <td>{{ form.password2.errors }}</td>
57                    </tr>
58                    <tr title='Enter the university or company you are affilated with '>
59                      <td class="key">{{ form.affiliation.label_tag }}</td>
60                      <td class="value">{{ form.affiliation }}</td>
61                      <td>{{ form.affiliation.errors }}</td>
62                    </tr>
63                    <tr title='Enter the email address you would like associated with your username '>
64                      <td class="key">{{ form.email.label_tag }}</td>
65                      <td class="value">{{ form.email }}</td>
66                      <td>{{ form.email.errors }}</td>
67                    </tr>
68                    <tr>
69                      <td class="key">{{ form.pubkey.label_tag }}</td>
70                      <td class="value">{{ form.gen_upload_choice }}</td>
71                      <td>{{ form.pubkey.errors }}</td>
72                    </tr>
73                          <tr id="uploadkey">
74                            <td class="key"></td>
75                                  <td class="value">{{ form.pubkey }}</td>
76                          </tr>
77                    <tr>
78                      <td class="key"></td>
79                      <td class="value"><input type="submit" value="Register" /></td>
80                    </tr>
81                  </table>
82                  </form>
83
84                </div>
85        </div>
86{% endblock content %}
Note: See TracBrowser for help on using the browser.