Modify

Opened 4 years ago

Last modified 4 years ago

#15565 new defect

lua bug/defect creating a n html luci page

Reported by: desigabri Owned by:
Priority: normal Milestone: Barrier Breaker 14.07
Component: luci Version: Trunk
Keywords: openvpn recipe luci lua model Cc:

Description

I found one bug on a luci page, but I don't understand neither of lua language.

My problem is that the page is generated at the moment by lua interpreter (this is what I understood about openwrt please don't blame me if I'm wrong), and I don't know where and how I can tell lua to create that line in the way that I tried it works.

I wrote asking about this trouble some time ago, but it is not supported because it is openvpn related, BUT REALLY IT IS AT THE FIRST A LUA TROUBLE CAN ANYONE OF YOU HELP CHECKING IT PLEASE?

If you can't help me/us because it is an openvpn related trouble, PLEASE PLEASE just ask to a lua programmer to suggest to me where and what looking for to try to solve this problem by myself

the openvpn output html page in my language translation is:

<!DOCTYPE html>

<html lang="it">

    <head></head>
    <body class="lang_itOpenVPN">
        <header></header>
        <div id="maincontent" class="container">
            <form onsubmit="return cbi_validate_form(this, 'Alcuni campi non sono validi, non è possibile salvare i valori!')" onreset="return cbi_validate_reset(this)" enctype="multipart/form-data" action="" name="cbi" method="post">
                <div></div>
                <div id="cbi-openvpn" class="cbi-map">
                    <h2></h2>
                    <!--

                     tblsection 

                    -->
                    <fieldset id="cbi-openvpn-openvpn" class="cbi-section">
                        <legend></legend>
                        <div class="cbi-section-descr"></div>
                        <div class="cbi-section-node">
                            <table class="cbi-section-table"></table>
                            <div class="cbi-section-create">
                                <input class="cbi-section-create-name" type="text" name="cbi.cts.openvpn.openvpn">
                                </input>
                                <select class="cbi-section-create-name" name="cbi.cts.openvpn.openvpn.select"></select>
                                <input class="cbi-button cbi-button-add" type="submit" title="Aggiungi" value="Aggiungi"></input>
                            </div>
                        </div>
                    </fieldset>
                    <!--

                     /tblsection 

                    -->
                    <br></br>
                </div>
                <div class="cbi-page-actions"></div>
            </form>
            <footer></footer>
        </div>
        <div id="link64_vdp_tabid" style="display:none;"></div>
    </body>

</html>

changing THIS LINE FROM:

create-name" type="text" name="cbi.cts.openvpn.openvpn">

TO:

create-name" type="text" name="cbi.cts.openvpn.openvpn.input">


MAKES THE TEXT INPUT BOX WORKING TO ADD OPENVPN CONFIGURATIONS WITH CUSTOM NAMES (starting from a selected recipe model)

I believe that the page that needs modification could it be

/usr/lib/lua/luci/model/cbi/openvpn.lua but if it is this, then I don't know how to modify it :( :( :(

thanks in advance for any help


Attachments (0)

Change History (2)

comment:1 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

comment:2 Changed 4 years ago by anonymous

Btw, the line

<div id="link64_vdp_tabid" style="display:none;"></div>

is being added by your "Video download Pro" Firefox Addon. Good to know.

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.