* luci-0.8: merge template changes from trunk
[project/luci.git] / libs / cbi / luasrc / view / cbi / button.htm
index 2d740f45c0978f9c17737b697329a7550261e6eb..c6606622d693ddd586317b1c3525017206a1b846 100644 (file)
@@ -13,5 +13,9 @@ $Id$
 
 -%>
 <%+cbi/valueheader%>
-       <input<% if self.inputstyle then %> class="cbi-input-<%=self.inputstyle%>"<% end %> type="submit"<%= attr("name", cbid) .. attr("id", cbid) .. attr("value", self.title) %> />
+       <% if self:cfgvalue(section) ~= false then %>
+               <input class="cbi-input-<% self.inputstyle or "button" %>" type="submit"<%= attr("name", cbid) .. attr("id", cbid) .. attr("value", self.title)%> />
+       <% else %>
+               -
+       <% end %>
 <%+cbi/valuefooter%>