Changes

Jump to navigation Jump to search
Line 126: Line 126:  
#/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.
 +
 +
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.
 +
 +
For the DHCP manager contrib, these are:
 +
 +
# /etc/e-smith/web/functions/dhcpd
 +
# and sometimes a file in here: /usr/share/perl5/vendor_perl/esmith/FormMagick/Panel
 +
 +
Although in this case there is not. (and I find that directory structure impossible to remember - "esmith" sans "-" throws me).
 +
 +
I have not really understood how formMagick works, but mostly the subroutine names and code shows what is needed.
    
==The Controller File (dhcpman.pm)==
 
==The Controller File (dhcpman.pm)==

Navigation menu