summaryrefslogtreecommitdiffhomepage
path: root/src/ffluci/view/cbi/lvalue.htm
diff options
context:
space:
mode:
Diffstat (limited to 'src/ffluci/view/cbi/lvalue.htm')
-rw-r--r--src/ffluci/view/cbi/lvalue.htm6
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