From f10966be65365c240b5ff53a1e596bbe5d598af5 Mon Sep 17 00:00:00 2001 From: Jogi Hofmüller Date: Fri, 12 Aug 2011 17:06:33 +0000 Subject: - switched to jquery validated loginForm () - switched to jquery validated registerForm () git-svn-id: https://svn.spreadspace.org/mur.sat@136 7de4ea59-55d0-425e-a1af-a3118ea81d4c --- tools/mmd/MmdWidgets.py | 124 +++++++++++++++++++++++++++++++++++------------- tools/mmd/mmd.css | 13 +++++ 2 files changed, 105 insertions(+), 32 deletions(-) (limited to 'tools/mmd') diff --git a/tools/mmd/MmdWidgets.py b/tools/mmd/MmdWidgets.py index 8361002..6094757 100644 --- a/tools/mmd/MmdWidgets.py +++ b/tools/mmd/MmdWidgets.py @@ -63,20 +63,27 @@ def computeTrajectory (longitude, latitude, elevation): def loginFormWidget (): html = ''' - - Please enter your email and password in the form below. -
- - - - - -
Email:
Password:
- + +
+ + Please enter your email and password in the form below. + +

+ + * +

+

+ + * +

+ + +
Don't have an account yet? Register here! ''' @@ -104,26 +111,77 @@ def logoutWidget (): def registerFormWidget (): html = ''' - Please fill in the form below and click on register. You will receive a confirmation email. -
- - - - - - - - - - - - - - -
Firstname*:
Lastname*:
Email*:
Callsign:
Password*:
Confirm Password*:
You can enter your prefered location if you wish
Name:
Longitude**:
Latitude**:
Altitude:
- + + +
+ + Please fill in the form below and click on register. + +

+ + * +

+

+ + * +

+

+ + * + +

+

+ + +

+

+ + * +

+

+ + * +

+

+ + +

+

+ + +

+

+ + * +

+

+ + * +

+

+ + +

+ + +
- Fields marked with * are mandatory. Fields markde with ** are mandatory iff you enter your preferred location. + Fields marked with * are mandatory. ''' return html @@ -349,6 +407,8 @@ def indexWidget (lcol, rcol, status, debug_info = False): MURSAT1 Dashboard + +
diff --git a/tools/mmd/mmd.css b/tools/mmd/mmd.css index f72ab30..f8d038a 100644 --- a/tools/mmd/mmd.css +++ b/tools/mmd/mmd.css @@ -106,3 +106,16 @@ pre.debug padding: 1px; margin: 1px; } + +label +{ + width: 10em; + float: left; +} + +em +{ + padding-right: 1em; + font-weight: bold; + vertical-align: top; +} -- cgit v1.2.3