[luci] Adding a page to luci
Frank Parker
mr.frank.parker at gmail.com
Thu Jan 10 18:20:07 CET 2013
Manuel,
Thanks for the tip. Where can I find this documented?
I did this but the buttons are still visible. I must be putting these
"hide" options in the wrong place.
module("luci.controller.myapp.index", package.seeall)
function index()
entry({"admin", "myapp", "subscription"}, cbi("myapp/config"),
_("Subscription Info"), 1)
entry({"admin", "myapp", "register"}, cbi("myapp/register",{hideapplybtn
= true, hidesavebtn = true, hideresetbtn = true}), _("Register"), 2)
end
On Thu, Jan 10, 2013 at 8:56 AM, Manuel Munz <freifunk at somakoma.de> wrote:
> On 10.01.2013 17:47, Frank Parker wrote:
> > How do I eliminate the Save & Apply buttons on the bottom? There is
> > nothing to save on this page. It's just a button.
>
> If you use a recent luci trunk you can do something like this in your
> controller:
>
> page.target = cbi("wizard/finished", {hideapplybtn = true, hidesavebtn
> = true, hideresetbtn = true})
>
> Regards, soma
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsignal.org/pipermail/luci/attachments/20130110/a435861f/attachment.html>
More information about the luci
mailing list