diff --git a/views/webpage_add_spot.tpl b/views/webpage_add_spot.tpl index 3e4b39f..090ece9 100644 --- a/views/webpage_add_spot.tpl +++ b/views/webpage_add_spot.tpl @@ -17,29 +17,31 @@
-
+
- +
- +
- +
- +
- +
- +
@@ -49,6 +51,8 @@
+ +

* Required field

diff --git a/webassets/js/add-spot.js b/webassets/js/add-spot.js index 24c9840..9b1a0e6 100644 --- a/webassets/js/add-spot.js +++ b/webassets/js/add-spot.js @@ -1,3 +1,23 @@ +// Load server options. Once a successful callback is made from this, we can populate the choice boxes in the form and load +// any saved values from local storage. +function loadOptions() { + $.getJSON('/api/v1/options', function(jsonData) { + // Store options + options = jsonData; + + // Populate modes drop-down + $.each(options["modes"], function (i, m) { + $('#mode').append($('