diff --git a/dbase.sqlite b/dbase.sqlite index fd65675..2561a62 100644 Binary files a/dbase.sqlite and b/dbase.sqlite differ diff --git a/lib/controllers/conference-control.php b/lib/controllers/conference-control.php index 31f003c..3731c67 100644 --- a/lib/controllers/conference-control.php +++ b/lib/controllers/conference-control.php @@ -11,10 +11,6 @@ $timeframe = 'false'; } -if(isset($_POST['at_location'])) { - $_SESSION['user']['at_loc'] = $_POST['at_location']; -} - // Handle check-in if($_POST['checkin'] == 'in') { if (isset($checkin->in)) { @@ -70,8 +66,8 @@ } $data = array( - 'error' => $error, 'conf' => $conf_array, 'checkin' => $checkin, 'timeframe' => $timeframe, + 'at_loc' => $_POST['at_location'] ); \ No newline at end of file diff --git a/migrations/init.php b/migrations/init.php index 21f68b9..5c272d4 100644 --- a/migrations/init.php +++ b/migrations/init.php @@ -45,25 +45,29 @@ $loc = R::dispense('location'); $loc->name = "University of Colorado"; $loc->address = "12605 East 16th Ave, Aurora CO 80045"; -$loc->coords = "39.740805,-104.843302,39.743659,-104.843366,39.743643,-104.838989,39.740986,-104.839246"; +$loc->lat = "39.7423359"; +$loc->lng = "-104.8415582"; $loc_id = R::store($loc); $loc2 = R::dispense('location'); $loc2->name = "Rita Bass, at Denver Health"; $loc2->address = "660 Bannock Street, Denver CO 80204"; -$loc2->coords = "39.725582,-104.990845,39.724221,-104.990866,39.724188,-104.989321,39.725599,-104.989235"; +$loc2->lat = "39.7268934"; +$loc2->lng = "-104.9899788"; $loc2_id = R::store($loc2); $loc3 = R::dispense('location'); $loc3->name = "Voros House"; $loc3->address = "677 South Grape Street, Denver CO 80246"; -$loc3->coords = "39.703910,-104.923371,39.703910,-104.924605,39.704488,-104.924573,39.704471,-104.923296"; +$loc3->lat = "39.704216"; +$loc3->lng = "-104.924045"; $loc3_id = R::store($loc3); $loc5 = R::dispense('location'); $loc5->name = "Denver Health, Main"; $loc5->address = "777 Bannock St, Denver CO 80204"; -$loc5->coords = "39.727323,-104.990330,39.727241,-104.992862,39.729056,-104.992948,39.728908,-104.990201"; +$loc5->lat = "39.72811919999999"; +$loc5->lng = "-104.9910209"; $loc5_id = R::store($loc5); // CONFERENCES @@ -107,7 +111,7 @@ $conf5->start = date("Y-m-d H:i:s", time()+28800); $conf5->finish = date("Y-m-d H:i:s", time()+36000); $conf5->primary_loc = $loc5; -$conf5->sharedLocationList = [$loc2, $loc3]; +$conf5->sharedLocationList = [$loc2, $loc]; $conf5->name = "Test Elective"; $conf5->elective = TRUE; $conf5_id = R::store($conf5); diff --git a/templates/_base.html b/templates/_base.html index 4c3b36b..b27c0e7 100644 --- a/templates/_base.html +++ b/templates/_base.html @@ -22,6 +22,27 @@ .ui-listview > li:first-of-type { border-top: 0 } .ui-listview > li { border-top: 5px solid white; } .ui-listview > li p { font-size: 1em; padding: 0.5em; } + .ui-listview > li a { text-decoration: none; } + + .success { + color: white; + background-color: #2ecc71; + } + + .warning { + color: white; + background-color: #f1c40f; + } + + .error { + color: white; + background-color: #c1392b; + } + + .info { + color: white; + background-color: #3498db; + } diff --git a/templates/_conference-control.html b/templates/_conference-control.html index fe0bc59..c5e3874 100644 --- a/templates/_conference-control.html +++ b/templates/_conference-control.html @@ -35,7 +35,7 @@ {% endif %} -{% if session.user.at_loc == 'true' and data.timeframe == 'true' %} +{% if data.at_loc == 'true' and data.timeframe == 'true' %} {% if data.checkin.in is empty %} @@ -47,6 +47,12 @@ {% endif %} + +