source: branches/whiterussian/openwrt/package/webif/files/usr/lib/webif/common.awk @ 2090

Last change on this file since 2090 was 2090, checked in by nbd, 11 years ago

add some partially crazy, but effective optimizations to webif

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 546 bytes
Line 
1function start_form(title, field_opts) {
2        print "<div class=\"settings\"" field_opts ">"
3        if (title != "") print "<div class=\"settings-title\"><h3><strong>" title "</strong></h3></div>"
4        print "<div class=\"settings-content\">"
5}
6
7function end_form(form_help, form_help_link) {
8        print "</div>"
9        if (form_help != "") form_help = "<dl>" form_help "</dl>"
10        print "<div class=\"settings-help\"><blockquote><h3><strong>Short help:</strong></h3>" form_help form_help_link "</blockquote></div>"
11        print "<div style=\"clear: both\">&nbsp;</div></div>"
12}
Note: See TracBrowser for help on using the repository browser.