Commit 88cc0f69 authored by Jean Michel Rouly's avatar Jean Michel Rouly
Browse files

Formatted application page nicely.

parent 0237cd61
......@@ -16,24 +16,34 @@ def application(environ, start_response):
bottom_part =
if environ["REQUEST_METHOD"] == "POST":
# Grab user data, cut off non-relevant fields.
data = environ['wsgi.input']
data = library.parse_post_data( data )
user = data['user']
name = data['name']
desc = data['desc']
apply_form = """
<form action="" method="post">
<p>This form allows you to apply for registered access to the George
Mason Student-Run Computing and Technology's Go URL shortening
service. Access to this computing resource is governed by the <a
href="">SRCT Usage Policy</a>.
Submitting an application indicates implicit acceptance of these
terms. Misuse of this service will be handled strictly.</p>
<br />
<label for="usr">username</label>
<label for="user">username (NetID)</label>
<br /><br />
<input type="text" id="user" name="user" value="" />
<br /><br />
<input type="text" id="usr" name="usr" value="" />
<label for="name">full name</label>
<br /><br />
<label for="pass">password</label>
<input type="text" id="name" name="name" value="" />
<br /><br />
<input type="password" id="pass" name="pass" value="" />
<label for="desc">user description</label>
<br /><br />
<input type="submit" name="submit" value="LOGIN" />
<textarea id="desc" name="desc"></textarea>
<p>Submitting an application indicates implicit acceptance of the
<a href="">SRCT Usage Policy</a>.</p>
<input type="submit" name="submit" value="APPLY" />
<br /><br />
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment