[luci] add button conditionally

Igor igor.iptv at gmail.com
Thu Oct 17 12:54:27 CEST 2013


Thank you Jow. It works.
Now the button is displayed on 3g network (in my example). How to make
button to be displayed on all pages when proto is 3g (option proto '3g')?
Thanks,
Igor



2013/10/15 Igor <igor.iptv at gmail.com>

> I use this file (
> https://dev.openwrt.org/attachment/ticket/12434/iface_status.2.htm) for
> displaying signal strength on router with openwrt. In html code, before
> last line "<%+cbi/valuefooter%>" I add line:
> <table><input type="button" class="cbi-button cbi-button-up"
> value="<%:More info%>"
> onclick="location.href='<%=luci.dispatcher.build_url("admin/network/minfo")%>'"
> /></table>
>
> This page is for all interfaces (3g, wan, lan, ...) and button is
> displayed on all pages. How to display button (More info) on 3g interface
> page only? Thanks
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsignal.org/pipermail/luci/attachments/20131017/ab93ea2c/attachment.html>


More information about the luci mailing list