mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Little design change for wizard
This commit is contained in:
parent
105653108a
commit
397f5cfe67
1 changed files with 27 additions and 25 deletions
|
@ -8,8 +8,10 @@
|
||||||
|
|
||||||
<% if stderr and #stderr > 0 then %><pre class="error"><%=pcdata(stderr)%></pre><% end %>
|
<% if stderr and #stderr > 0 then %><pre class="error"><%=pcdata(stderr)%></pre><% end %>
|
||||||
<form class="inline" method="post" action="<%=url('admin/system/openmptcprouter/wizard_add')%>">
|
<form class="inline" method="post" action="<%=url('admin/system/openmptcprouter/wizard_add')%>">
|
||||||
|
<div class="cbi-map">
|
||||||
|
<h2 name="content"><%:Wizard%></h2>
|
||||||
<div id="server" class="server">
|
<div id="server" class="server">
|
||||||
<h1><%:Server settings%></h1>
|
<h2><%:Server settings%></h2>
|
||||||
<div class="cbi-value">
|
<div class="cbi-value">
|
||||||
<label class="cbi-value-title"><%:Server IP%></label>
|
<label class="cbi-value-title"><%:Server IP%></label>
|
||||||
<div class="cbi-value-field">
|
<div class="cbi-value-field">
|
||||||
|
@ -30,14 +32,14 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="interfaces" class="interfaces">
|
<div id="interfaces" class="interfaces">
|
||||||
<h1><%:Interfaces settings%></h1>
|
<h2><%:Interfaces settings%></h2>
|
||||||
<%
|
<%
|
||||||
for _, iface in ipairs(ifaces) do
|
for _, iface in ipairs(ifaces) do
|
||||||
--if not (iface == "lo" or iface:match("^tun.*")) then
|
--if not (iface == "lo" or iface:match("^tun.*")) then
|
||||||
local ifname = iface:name()
|
local ifname = iface:name()
|
||||||
if (ifname:match("^wan.*")) then
|
if (ifname:match("^wan.*")) then
|
||||||
%>
|
%>
|
||||||
<h2><%=ifname%></h2>
|
<h3><%=ifname%></h3>
|
||||||
<input type="hidden" name="intf.<%=ifname%>" value="<%=ifname%>" />
|
<input type="hidden" name="intf.<%=ifname%>" value="<%=ifname%>" />
|
||||||
<div class="cbi-value">
|
<div class="cbi-value">
|
||||||
<label class="cbi-value-title"><%:IPv4 address%></label>
|
<label class="cbi-value-title"><%:IPv4 address%></label>
|
||||||
|
@ -57,12 +59,12 @@
|
||||||
<input type="text" name="cbid.network.<%=ifname%>.gateway" class="cbi-input-text" value="<%=uci:get("network",ifname,"gateway")%>" data-type="ip4addr">
|
<input type="text" name="cbid.network.<%=ifname%>.gateway" class="cbi-input-text" value="<%=uci:get("network",ifname,"gateway")%>" data-type="ip4addr">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%
|
<%
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
%>
|
%>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="cbi-page-actions">
|
<div class="cbi-page-actions">
|
||||||
<input type="hidden" name="token" value="<%=token%>" />
|
<input type="hidden" name="token" value="<%=token%>" />
|
||||||
<button class="btn" type="submit">Submit</button>
|
<button class="btn" type="submit">Submit</button>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue