X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=modules%2Fadmin-full%2Fluasrc%2Fmodel%2Fcbi%2Fadmin_system%2Fbuttons.lua;fp=modules%2Fadmin-full%2Fluasrc%2Fmodel%2Fcbi%2Fadmin_system%2Fbuttons.lua;h=d7581830d3839c6cf2eef4c67f8031d30a0ba655;hp=67601b132a08d37a3766087d53b61372c3522202;hb=b50e08149c4e3dff9c5ebc6f3448a56f508d8d1c;hpb=e3ac0fd78d7fe7660954348675094d02d5f42aa0 diff --git a/modules/admin-full/luasrc/model/cbi/admin_system/buttons.lua b/modules/admin-full/luasrc/model/cbi/admin_system/buttons.lua index 67601b132..d7581830d 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_system/buttons.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_system/buttons.lua @@ -11,21 +11,28 @@ You may obtain a copy of the License at $Id$ ]]-- -m = Map("system", translate("buttons"), translate("buttons_desc")) + +m = Map("system", translate("Buttons"), + translate("This page allows the configuration of custom button actions")) s = m:section(TypedSection, "button", "") s.anonymous = true s.addremove = true -s:option(Value, "button") +s:option(Value, "button", translate("Name")) + +act = s:option(ListValue, "action", + translate("Action"), + translate("Specifies the button state to handle")) -act = s:option(ListValue, "action") act:value("released") -s:option(Value, "handler") +s:option(Value, "handler", + translate("Handler"), + translate("Path to executable which handles the button event")) -min = s:option(Value, "min") +min = s:option(Value, "min", translate("Minimum hold time")) min.rmempty = true -max = s:option(Value, "max") +max = s:option(Value, "max", translate("Maximum hold time")) max.rmempty = true