applications: add freifunk widgets app to customize the index page
[project/luci.git] / applications / luci-freifunk-widgets / luasrc / model / cbi / freifunk / widgets / search.lua
1 local map, section = ...
2 local utl = require "luci.util"
3
4 local form, ferr = loadfile(utl.libpath() .. "/model/cbi/freifunk/widgets/heightwidth.lua")
5 if form then
6         setfenv(form, getfenv(1))(m, wdg)
7 end
8
9 local engine = wdg:option(DynamicList, "engine", translate("Search Engine"),
10         translate("Use the form Name|URL, where URL must be a full URL to the search engine "  ..
11                   "including the query GET parameter, e.g. 'Google|http://www.google.de/search?q='")
12         )