Globally reduce copyright headers
[project/luci.git] / applications / luci-app-freifunk-widgets / luasrc / model / cbi / freifunk / widgets / search.lua
1 -- Copyright 2012 Manuel Munz <freifunk at somakoma dot de>
2 -- Licensed to the public under the Apache License 2.0.
3
4 local map, section = ...
5 local utl = require "luci.util"
6
7 local form, ferr = loadfile(utl.libpath() .. "/model/cbi/freifunk/widgets/heightwidth.lua")
8 if form then
9         setfenv(form, getfenv(1))(m, wdg)
10 end
11
12 local engine = wdg:option(DynamicList, "engine", translate("Search Engine"),
13         translate("Use the form Name|URL, where URL must be a full URL to the search engine "  ..
14                   "including the query GET parameter, e.g. 'Google|http://www.google.de/search?q='")
15         )