* CBI: Generalized templates
[project/luci.git] / src / ffluci / view / cbi / lvalue.htm
index 943a18886a7949df13491793a9bb16572a3034e3..f1ae5a093900db90c816d219646ad805d5d413c0 100644 (file)
@@ -1,6 +1,4 @@
-                                               <div class="cbi-value" id="cbi-<%=self.config.."-"..section.."-"..self.option%>">
-                                                       <div class="cbi-value-title left"><%=self.title%></div>
-                                                       <div class="cbi-value-field">
+<%+cbi/valueheader%>
 <% if self.widget == "select" then %>
                                                                <select onchange="cbi_d_update(this.id)" id="cbid.<%=self.config.."."..section.."."..self.option%>" name="cbid.<%=self.config.."."..section.."."..self.option%>"<% if self.size then %> size="<%=self.size%>"<% end %>>
 <%for i, key in pairs(self.keylist) do%>
 <% if c == self.size then c = 0 %><br />
 <% end end %>
 <% end %>
-                                                               <div class="cbi-value-description inline"><%=self.description%></div>
-                                                       </div>
-                                               </div>
-                                               <% if #self.deps > 0 then %><script type="text/javascript">
-                                                       <% for j, d in ipairs(self.deps) do %>cbi_d_add("cbi-<%=self.config.."-"..section.."-"..self.option%>", "cbid.<%=self.config.."."..section.."."..d.field%>", "<%=d.value%>");
-                                                       <% end %>
-                                               </script><% end %>
\ No newline at end of file
+<%+cbi/valuefooter%>
\ No newline at end of file