Hello,
I'm trying to go through and figure out LuCI to add a custom page (or rather pages).
What I'd like to accomplish on one page would be to add a few images, make them clickable, and depending which image is clicked, reconfigure some UCI settings.
From what I understand, the developer HAS to choose to either use the CBI approach, or a template approach. Is that correct?
The only way I can see how to do it would be to choose the template approach, add a onclick event to an html element, and have some LuCI code wrapped in Javascript to handle what I'd like done.
Is there an easier approach to this?
Also, this is one section of a page. Further down the page, I'd like more configuration options, similar to what stuff that's on the existing LuCI configuration tab. To add things like dropdown selections and such using the CBI approach is trivial. To accomplish the same thing in html is a little more difficult. Is there a way to embed CBI calls in an html template? Is there a way to have a page that uses both an html template AND the CBI stuff?
Thanks for any help.