Changes

Jump to navigation Jump to search
Line 119: Line 119:  
So, we'll create the following files for the new SM2 panel(s) for the DHCPManager contrib.
 
So, we'll create the following files for the new SM2 panel(s) for the DHCPManager contrib.
   −
#/usr/share/smanager/lib/SrvMngr/Controller/dhcpman.pm
+
#/usr/share/smanager/lib/SrvMngr/Controller/Dhcpman.pm
#/usr/share/smanager/lib/SrvMngr/I18n/Modules/dhcpman/en.lex
+
#/usr/share/smanager/lib/SrvMngr/I18n/Modules/Dhcpman/dhcpman_en.lex
 
#/usr/share/smanager/themes/default/templates/dhcpman.html.ep
 
#/usr/share/smanager/themes/default/templates/dhcpman.html.ep
 
#/usr/share/smanager/themes/default/templates/partials/_dhcpm_scan.html.ep
 
#/usr/share/smanager/themes/default/templates/partials/_dhcpm_scan.html.ep
 
#/usr/share/smanager/themes/default/templates/partials/_dhcpm_winpopup.html.ep
 
#/usr/share/smanager/themes/default/templates/partials/_dhcpm_winpopup.html.ep
 
#/usr/share/smanager/themes/default/templates/partials/_dhcpm_leases.html.ep
 
#/usr/share/smanager/themes/default/templates/partials/_dhcpm_leases.html.ep
Quite why the partials have to start with the "_" I am not sure  - looks like a convention to "underline" that fact that they are only called internally.
+
Quite why the partials have to start with the "_" I am not sure  - looks like a convention to "underline" that fact that they are only called internally.<!-- Note the initial capital letter on the file name for the controller file, and also the Translation directory. -->
    
if you are converting an existing contrib with a formMagick panel, then you will want to use the current files as a basis for the re-write.
 
if you are converting an existing contrib with a formMagick panel, then you will want to use the current files as a basis for the re-write.

Navigation menu