luci-app-firewall: on forward rule change preselection
Change the preselection for the src zone to wan and the dest zon to lan because this is the normal situation. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
846fb1f8bc
commit
a5b970d5f2
1 changed files with 2 additions and 2 deletions
|
@ -57,14 +57,14 @@
|
|||
<td class="cbi-section-table-cell" style="width:110px">
|
||||
<select class="cbi-input-text" id="_newfwd.src" name="_newfwd.src">
|
||||
<% local k, v; for k, v in ipairs(fw:get_zones()) do -%>
|
||||
<option<%=ifattr(v:name() == "lan", "selected", "selected")%> value="<%=v:name()%>"><%=v:name()%></option>
|
||||
<option<%=ifattr(v:name() == "wan", "selected", "selected")%> value="<%=v:name()%>"><%=v:name()%></option>
|
||||
<%- end %>
|
||||
</select>
|
||||
</td>
|
||||
<td class="cbi-section-table-cell" style="width:110px">
|
||||
<select class="cbi-input-text" id="_newfwd.dest" name="_newfwd.dest">
|
||||
<% local k, v; for k, v in ipairs(fw:get_zones()) do -%>
|
||||
<option<%=ifattr(v:name() == "wan", "selected", "selected")%> value="<%=v:name()%>"><%=v:name()%></option>
|
||||
<option<%=ifattr(v:name() == "lan", "selected", "selected")%> value="<%=v:name()%>"><%=v:name()%></option>
|
||||
<%- end %>
|
||||
</select>
|
||||
</td>
|
||||
|
|
Loading…
Reference in a new issue