[luci] Adding a page to luci

Manuel Munz freifunk at somakoma.de
Thu Jan 10 17:56:51 CET 2013


On 10.01.2013 17:47, Frank Parker wrote:
> Thanks for pointing me to KikiAuth.  That helped.  I seem to have my page
> working with a text box that writes to /etc/config/myapp.  I created a
> second page that contains a button to run a script.  It works, but I have a
> question.
> 
> 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 --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.subsignal.org/pipermail/luci/attachments/20130110/bd37c338/attachment.pgp>


More information about the luci mailing list