[mw-devel] MW3 r1243 - in trunk/webclient: . templates

dez at sucs.org dez at sucs.org
Tue Nov 30 21:23:42 GMT 2010


Author: dez
Date: 2010-11-30 21:23:42 +0000 (Tue, 30 Nov 2010)
New Revision: 1243

Modified:
   trunk/webclient/mw.css
   trunk/webclient/templates/login.html
Log:
Tidies login box up


Modified: trunk/webclient/mw.css
===================================================================
--- trunk/webclient/mw.css	2010-11-30 21:05:14 UTC (rev 1242)
+++ trunk/webclient/mw.css	2010-11-30 21:23:42 UTC (rev 1243)
@@ -148,7 +148,46 @@
 	padding: 0;
 }
 
+.login {
+	font-family: Arial, sans-serif;
+}
 
+h1.login {
+	text-align: center;
+	margin: 0;
+	padding: 0;
+	padding-top: 6em;
+}
+
+form.login {
+	margin: auto;
+	width: 18em;
+	padding: 1em;
+}	
+
+form.login label {
+	width: 5em;
+	text-align: right;
+	display: block;
+	float: left;
+	margin-bottom: 10px;
+	margin-top: 7px;
+}
+		
+form.login input {
+	float: left;
+	margin-left: 1em;
+	font-size: 100%;
+}
+
+form.login br {
+	clear: left;
+}
+
+form.login input#submit {
+	margin-left: 6em;;
+}
+
 form#logoutform {
 	position: absolute;
 	bottom: 5px;

Modified: trunk/webclient/templates/login.html
===================================================================
--- trunk/webclient/templates/login.html	2010-11-30 21:05:14 UTC (rev 1242)
+++ trunk/webclient/templates/login.html	2010-11-30 21:23:42 UTC (rev 1243)
@@ -1,22 +1,7 @@
-<form method=post action={$self}>
-<table>
-	<tr>
-		<td align="right">Username:</td>
-		<td>
-			<input type="text" name="username" size="20">
-		</td>
-	</tr>
-	<tr>
-		<td align="right">Password:</td>
-		<td>
-			<input type="password" name="password" size="20">
-		</td>
-	</tr>
-	<tr>
-		<td colspan="2" align="center">
-			<input type="submit" name="submit" value="Login">
-		</td>
-	</tr>
-</table>
-<input type="hidden" name="action" value="login">
+<h1 class="login">Milliways</h1>
+<form method="post" class="login" action="{$self}">
+	<label for="username">Username:</label><input type="text" id="username" name="username" size="20" /><br />
+	<label for="password">Password:</label><input type="password" id="password" name="password" size="20" /><br />
+	<input type="submit" id="submit" name="submit" value="Login" /><br />
+	<input type="hidden" name="action" value="login" />
 </form>




More information about the mw-devel mailing list