* Add routes for each individual options tab
* Add options files for each category
* Use ui-router with ui-view for tab functionality
Previously the options tabs were dynamically generated from the
API, and returned as HTML-formed json. These were then dynamically
inserted into the page.
From there, tab functionality was added with bootstrap + jquery.
ui-router broke that tab functionality.
I wish I knew about this plugin months ago.
By default PDO and CakePHP cast int as string. This prevents me
from using `<input type="number">`, as the modle that the input
is bound to is actually a string, not an int.
Crud by default casts int back to int via ApiTransformationListener
It also has a bunch of other features which makes the life of a
REST / CRUD developer easier.
You should now be able to see a monitor's zones by clicking on the
respective 'Edit' link. From there, you'll see a list view of that
monitor's Zones.
From there, you can click on the Zone name, which will bring up the
details for that zone.
You can not yet save zones, and not all of the values for that zone
are displayed.
Since migrating to ui-router, the monitor's ID was not properly set
when trying to edit an existing monitor. This caused existing
monitors to not load properly when in the edit / detail page.
Now, the monitor id (mid) is set as a state parameter, and is
accessed from $state.params.mid
If you switched to monitor list view, clicked on 'Add New Monitor'
and then clicked on 'Monitors' again, both the grid and list views
(montage and table) would show, instead of one or the other.
* Update some of the classes to reflect newer version of bootstrap.
* Use a collapseable header / nav button on mobile devices.
* Align the on / off button with the rest of the nav items.
The core of the work here involved two things:
* Making the default view / home page 'monitor' instead of 'console'
* Replacing monitor tab functionality with ui-router's nested views
There are now a few bugs which need to be worked out:
* Haven't tested saving a monitor
* Loading an existing monitor's data doesn't work (edit)
* active tab isn't set
* who knows what else?