summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJogi Hofmüller <jogi@mur.at>2011-08-12 22:43:55 +0000
committerJogi Hofmüller <jogi@mur.at>2011-08-12 22:43:55 +0000
commite139a1518350baf03f37e723d978434dcb4396f2 (patch)
treeccbdff470236e30a8fe708358b20f8ac42fa9bad /tools
parent- modified style #rcol, label, formfield, form (diff)
- fiddling with styles ...
git-svn-id: https://svn.spreadspace.org/mur.sat@139 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'tools')
-rw-r--r--tools/mmd/MmdWidgets.py40
-rw-r--r--tools/mmd/mmd.css4
2 files changed, 28 insertions, 16 deletions
diff --git a/tools/mmd/MmdWidgets.py b/tools/mmd/MmdWidgets.py
index 6094757..6e55036 100644
--- a/tools/mmd/MmdWidgets.py
+++ b/tools/mmd/MmdWidgets.py
@@ -81,11 +81,15 @@ def loginFormWidget ():
<label for="password">Password</label>
<em>*</em><input class="required password formfield" type="password" name="password" />
</p>
- <input type="submit" value="login" />
- <input type="hidden" name="cmd" value="login" />
+ <p>
+ <input class="formfield" type="submit" value="login" />
+ <input class="formfield" type="hidden" name="cmd" value="login" />
+ </p>
</fieldset>
</form>
- Don't have an account yet? <a href="?cmd=registerForm">Register</a> here!
+ <div class="info">
+ Don't have an account yet? <a href="?cmd=registerForm">Register</a> here!
+ </div>
'''
return html
@@ -116,12 +120,12 @@ def registerFormWidget ():
$("#registerForm").validate({
rules: {
longitude: {
- range: [-180, 180],
- required: "#location:checked"
+ required: "#location:checked",
+ range: [-180, 180]
},
latitude: {
- range: [-90, 90],
- required: "#location:checked"
+ required: "#location:checked",
+ range: [-90, 90]
}
}
});
@@ -147,7 +151,7 @@ def registerFormWidget ():
</p>
<p>
<label for="callsign">Callsign</label>
- <input class="formfield" type="text" name="callsign" />
+ <em>&nbsp;</em><input class="formfield" type="text" name="callsign" />
</p>
<p>
<label for="password">Password</label>
@@ -159,29 +163,33 @@ def registerFormWidget ():
</p>
<p>
<label for="location">Check to enter location</label>
- <input type="checkbox" id="location" />
+ <em>&nbsp;</em><input class="formfield" type="checkbox" id="location" value="" />
</p>
<p>
<label for="location_name">Name</label>
- <input class="formfield" type="text" name="location_name" />
+ <em>&nbsp;</em><input class="formfield" type="text" name="location_name" />
</p>
<p>
<label for="longitude">Longitude</label>
- <em>*</em><input class="formfield" type="text" id="longitude" name="latitude" />
+ <em>*</em><input class="formfield" type="text" id="longitude" name="longitude" />
</p>
<p>
<label for="latitude">Latitude</label>
- <em>*</em><input class="formfield" type="text" id="latitude" name="longitude" />
+ <em>*</em><input class="formfield" type="text" id="latitude" name="latitude" />
</p>
<p>
<label for="altitude">Altitude</label>
- <td><input class="formfield" type="text" id="altitude" name="altitude" />
+ <em>&nbsp;</em><input class="formfield" type="text" id="altitude" name="altitude" />
+ </p>
+ <p>
+ <input class="formfield" type="submit" value="register" />
+ <input class="formfield" type="hidden" name="cmd" value="register" />
</p>
- <input type="submit" value="register" />
- <input type="hidden" name="cmd" value="register" />
</fieldset>
</form>
- Fields marked with * are mandatory.
+ <div class="info">
+ Fields marked with * are mandatory.
+ </div>
'''
return html
diff --git a/tools/mmd/mmd.css b/tools/mmd/mmd.css
index e8e0f52..43c17c6 100644
--- a/tools/mmd/mmd.css
+++ b/tools/mmd/mmd.css
@@ -93,6 +93,8 @@ input.formfield
label.error
{
color: red;
+ font: 8pt arial, sans-serif;
+ float: left;
}
#dev
@@ -124,4 +126,6 @@ em
padding-right: 1em;
font-weight: bold;
vertical-align: top;
+ float: left;
+ width: 1em;
}