Commit 401822a0 authored by Jean Michel Rouly's avatar Jean Michel Rouly
Browse files

Updated URL page to include expandables!

parent dabe2e97
......@@ -61,6 +61,7 @@ label {
cursor: pointer;
font-weight: bold;
text-transform: uppercase;
display: block;
}
p {
......@@ -88,4 +89,4 @@ input[type="submit"] {
a {
text-decoration: none;
}
\ No newline at end of file
}
......@@ -31,35 +31,49 @@ def application(environ, start_response):
login_form = """
<form action="/exec/lg" method="post">
<br />
<label for="usr">username</label>
<p>Your administrator username (MasonID).</p>
<br />
<input type="text" id="usr" name="usr" value="" />
<br /><br />
<label for="pass">password</label>
<p>Your administrator password.</p>
<br />
<input type="password" id="pass" name="pass" value="" />
<br /><br />
<input type="submit" name="submit" value="LOGIN" />
<br />
<br /><br />
</form>
"""
#body.append( login_form )
url_form = """
<form action="/exec/rg" method="post" target="_self">
<br />
<label for="long-url">long URL</label>
<p>Make sure to include http:// in front.</p>
<br />
<input type="text" id="long-url" name="long-url" value="http://" />
<br /><br />
<label for="short-url">identifier (optional)</label>
<p>What your want your URL to look like. This is optional.</p>
<p>Identifier must be at least 5 characters, and only
contain letters and numbers.</p>
<input type="text" id="short-url" name="short-url" value="" />
<br /><br />
<input type="submit" name="submit" value="SHORTEN" />
<label for="short-url" onClick="expand('identifier-div');">
identifier (optional)
</label>
<br />
<div style="display:none;" id="identifier-div" class="expands">
<input type="text" id="short-url" name="short-url" value="" />
</div>
<br />
<label onClick="expand('expiration-div');">expiration (optional)</label>
<br />
<p><a href="/exec/out">(logout)</a></p>
<div style="display:none;" id="expiration-div">
<input type="radio" name="expiration" value="day" id="day"> 1
Day</input>
<input type="radio" name="expiration" value="week" /> 1 Week
<input type="radio" name="expiration" value="month" /> 1 Month
<input type="radio" name="expiration" value="never"
checked="checked" /> Never
</div>
<br />
<input type="submit" name="submit" value="SHORTEN" />
<br /><br />
</form>
"""
#body.append( url_form )
......
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