Commit ce7dae65 by Corey Koval

Cute HTML forms that don't do anything yet

parent 029185e3
......@@ -32,6 +32,7 @@ class math_settings:
class receiver:
def __init__(self, station_url):
self.station_url = station_url
self.isAuto = True
try:
self.update()
except:
......@@ -419,6 +420,10 @@ def update_cesium():
write_czml(*process_data(database_name, geofile))
return "OK"
@get('/rx_params')
def rx_params():
return template('rx_params.tpl', {'receivers':receivers})
def start_server(ipaddr = "127.0.0.1", port=8080):
run(host=ipaddr, port=port, quiet=True, server="paste", debug=True)
......
......@@ -84,6 +84,7 @@ body {
margin: -75px 0 0 90px;
padding: 25px;
padding-top: 55px;
padding-bottom: 37px;
background-color: rgba(0,0,0,0.5);
color: #fff;
list-style-type: none;
......@@ -124,6 +125,14 @@ body {
right: 5px;
}
.add-icon {
display: block;
position: absolute;
bottom: 7px;
right: 30px;
font-size: 23pt;
}
.edit-checkbox {
cursor: pointer;
opacity: 0; /* hide this */
......
% for x in {{receivers}}:
<RECEIVER>
<STATION_ID>{{x.station_id}}</STATION_ID>
<URL>{{x.station_url}}</URL>
<AUTO>{{x.isAuto}}</AUTO>
<FREQUENCY>{{x.frequency}}</FREQUENCY>
<LATITUDE>{{x.latitude}}</LATITUDE>
<LONGITUDE>{{x.longitude}}</LONGITUDE>
<HEADING>{{x.heading}}</HEADING>
<MOBILE>{{x.isMobile}}</MOBILE>
</RECEIVER>
% end
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