Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Server Manager2 create panel for contrib
(view source)
Revision as of 13:16, 24 January 2022
585 bytes added
,
13:16, 24 January 2022
→The Template Files (dhcpd.html.ep and partials)
Line 438:
Line 438:
%= include 'partials/_dhcpd_scan'
%= include 'partials/_dhcpd_scan'
%}
%}
−
</syntaxhighlight>and finally the front panel details is defined:<syntaxhighlight>
+
</syntaxhighlight>and finally the front panel details is defined:
+
===Mojolicious Meta Commands===
+
<syntaxhighlight
lang="perl"
>
else { #PARAMS
else { #PARAMS
−
#Front parameter panel here...
+
%= button_to $c->l('dhcpd_CONNECTED_IP') => '/dhcpd1'
−
+
%= button_to $c->l('dhcpd_SCAN_YOUR_NETWORK') => '/dhcpd3'
+
%= button_to $c->l('dhcpd_GLOBAL_WINPOPUP') => '/dhcpd2'
+
+
<hr />
+
<h2>
+
%= $c->l("dhcpd_DHCPD_SETTINGS_TITLE")
+
</h2>
+
% my $btn = l('dhcpd_SAVE/RESTART');
+
%= form_for '/dhcpd5' => (method => 'POST') => begin
+
<span class=label>
+
%=l 'dhcpd_CHECK_CLIENT_STATUS'
+
</span><span class=data>
+
% param retrievessl=>$dhcp_data->{"params"}->{"checkclientstatus"};
+
%=select_field checkclientstatus=>$dhcp_data->{"check"}
+
</span><br>
+
%= submit_button "$btn", class => 'action'
+
% end
%}
%}
Line 448:
Line 466:
%end
%end
</syntaxhighlight>
</syntaxhighlight>
−
−
===Mojolicious Meta Commands===
===Perl Commands===
===Perl Commands===
Brianr
Administrators (Semantic MediaWiki)
,
Administrators
790
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Koozali SME Server
Main Page
Welcome
Releases
Testimonials
Documentation
SME Server FAQ
Volunteering
Commercial Support
Recent activities
Dashboard
Recent wiki changes
Recent bug changes
Unread Forum posts
Koozali resources
Contribs
How-To's
Forums
Bugzilla
Mailing Lists
Translations
Download
Koozali SME Server wiki
Wiki statistics
Wiki categories
Wiki Help
Koozali Wiki Help
Tools
Special pages
Printable version