2013-11-26 14:11:17 +00:00
|
|
|
from iosfu.gui.core import GUIController
|
2014-01-02 21:38:42 +00:00
|
|
|
from iosfu.gui.components.base import Panel, Section
|
|
|
|
from iosfu.plugin.device_info.plugin import DeviceInfoPlugin
|
2013-11-25 09:50:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
controller = GUIController()
|
|
|
|
|
|
|
|
|
2014-01-02 21:38:42 +00:00
|
|
|
class Main(Section):
|
2013-11-26 14:22:27 +00:00
|
|
|
name = 'Main'
|
2014-01-02 21:38:42 +00:00
|
|
|
plugin = DeviceInfoPlugin
|
|
|
|
template = 'main.jinja'
|
2013-11-26 14:11:17 +00:00
|
|
|
|
|
|
|
|
2014-01-02 21:38:42 +00:00
|
|
|
class VersionInfo(Section):
|
2013-11-26 14:11:17 +00:00
|
|
|
name = 'Version Info'
|
2014-01-02 21:38:42 +00:00
|
|
|
plugin = DeviceInfoPlugin
|
|
|
|
template = 'device_info.jinja'
|
2013-11-26 14:11:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
@controller.register_panel
|
2014-01-02 21:38:42 +00:00
|
|
|
class DeviceInfoPanel(Panel):
|
2013-11-25 09:50:00 +00:00
|
|
|
id = 'device-info'
|
|
|
|
|
|
|
|
name = 'Device info'
|
2013-11-26 14:11:17 +00:00
|
|
|
|
2013-11-26 17:11:09 +00:00
|
|
|
category = 'Base'
|
|
|
|
|
2013-11-26 14:11:17 +00:00
|
|
|
sections = [
|
2014-01-02 21:38:42 +00:00
|
|
|
Main, # First one is default
|
2013-11-26 14:11:17 +00:00
|
|
|
VersionInfo
|
|
|
|
]
|