summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/search.lua
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/search.lua')
-rw-r--r--applications/luci-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/search.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/applications/luci-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/search.lua b/applications/luci-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/search.lua
new file mode 100644
index 000000000..4d861c5a0
--- /dev/null
+++ b/applications/luci-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/search.lua
@@ -0,0 +1,12 @@
+local map, section = ...
+local utl = require "luci.util"
+
+local form, ferr = loadfile(utl.libpath() .. "/model/cbi/freifunk/widgets/heightwidth.lua")
+if form then
+ setfenv(form, getfenv(1))(m, wdg)
+end
+
+local engine = wdg:option(DynamicList, "engine", translate("Search Engine"),
+ translate("Use the form Name|URL, where URL must be a full URL to the search engine " ..
+ "including the query GET parameter, e.g. 'Google|http://www.google.de/search?q='")
+ )