search.lua 578 B

123456789101112131415
  1. -- Copyright 2012 Manuel Munz <freifunk at somakoma dot de>
  2. -- Licensed to the public under the Apache License 2.0.
  3. local map, section = ...
  4. local utl = require "luci.util"
  5. local form, ferr = loadfile(utl.libpath() .. "/model/cbi/freifunk/widgets/heightwidth.lua")
  6. if form then
  7. setfenv(form, getfenv(1))(m, wdg)
  8. end
  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. )