diff options
author | Steven Barth <steven@midlink.org> | 2008-03-24 21:50:48 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-03-24 21:50:48 +0000 |
commit | 9fa7e0e92ddae9ff68f50ad20bbdfc8a3c09135a (patch) | |
tree | f1d316abaaced25c6d8476e65ad6d50f57013768 /src/ffluci/view/cbi/lvalue.htm | |
parent | 8e7ed0e8a752bc3f551aabcf2a20807b64e707ed (diff) |
* CBI: updates
* UCI: fixed argument escaping
Diffstat (limited to 'src/ffluci/view/cbi/lvalue.htm')
-rw-r--r-- | src/ffluci/view/cbi/lvalue.htm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ffluci/view/cbi/lvalue.htm b/src/ffluci/view/cbi/lvalue.htm index 6a99419599..739d675c43 100644 --- a/src/ffluci/view/cbi/lvalue.htm +++ b/src/ffluci/view/cbi/lvalue.htm @@ -1,11 +1,11 @@ <div class="cbi-lvalue"> <div class="cbi-lvalue-title"><%=self.title%></div> <div class="cbi-lvalue-field"> - <select name="cbid.<%=self.config.."."..self.section.."."..self.option%>"> + <select name="cbid.<%=self.config.."."..self.section.."."..self.option%>"<% if self.size then %> size="<%=self.size%>"<% end %>> <%for k, v in pairs(self.list) do%> - <option value="<%=k%>"><%=v%></option> + <option<% if self:ucivalue() == k then %> selected="selected"<% end %> value="<%=k%>"><%=v%></option> <% end %> </select> </div> - <div class="cbi-value-description"><%=self.description%></div> + <div class="cbi-lvalue-description"><%=self.description%></div> </div>
\ No newline at end of file |