* CBI: Generalized templates
[project/luci.git] / src / ffluci / view / cbi / fvalue.htm
index cce116af333dc33dc6f9d8a18830e8a8f8a6456e..b609f1d4f45afdef9b4129632bf6092c47f9e02f 100644 (file)
@@ -1,11 +1,3 @@
-                                               <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%>
                                                                <input onchange="cbi_d_update(this.id)" type="checkbox" id="cbid.<%=self.config.."."..section.."."..self.option%>" name="cbid.<%=self.config.."."..section.."."..self.option%>"<% if self:cfgvalue(section) == self.enabled then %> checked="checked"<% end %> value="1" />
                                                                <input onchange="cbi_d_update(this.id)" type="checkbox" id="cbid.<%=self.config.."."..section.."."..self.option%>" name="cbid.<%=self.config.."."..section.."."..self.option%>"<% if self:cfgvalue(section) == self.enabled then %> checked="checked"<% end %> value="1" />
-                                                               <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