Difference between revisions of "Server Manager2 create panel for contrib"

From SME Server
Jump to navigationJump to search
Line 1: Line 1:
 +
  
 
[[Category:Howto]] [[Category:Server Manager 2]] [[Category:SM2]] [[Category:Mojolicious]]
 
[[Category:Howto]] [[Category:Server Manager 2]] [[Category:SM2]] [[Category:Mojolicious]]
Line 12: Line 13:
  
 
<gallery>
 
<gallery>
Example.jpg|Initial panel
+
File:DHCP WinPopup.png
Example.jpg|DHCP clients
+
File:DHCP Scan.png
Example.jpg|Network Scan
+
File:DHCP Clients.png
Example.jpg|WinPopup
+
File:DHCP Man Front.png
 
</gallery>
 
</gallery>

Revision as of 11:00, 8 January 2022

Creating a panel for a Contrib using Server Manager 2

Server Manager 2 is based on the perl library Mojolicious and has as its central tenet that the html structure is kept separate from the content that is displayed, giving a lot of flexibility. It has a structure so that the web pages can have a theme applied independant of the content. Behind the scenes a non blocking web server does the actual work, and comes with lots of additional plugins.

Initially the default theme mimics the current Server Manager pages (which is based on formMagick), however a new theme has also been developed which is based on AdminLTE.

If you follow the rules in this document, then your page should work in both themes without any trouble!

I am using the example of the DHCP Manager contrib which has a simple initial panel and 3 subsidiary panels.