Huuuuuuuuuuuge rewrite of the Wireless Configuration
[project/luci.git] / libs / cbi / luasrc / view / cbi / button.htm
index 2d740f4..c2a0d43 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<% if self.inputstyle then %> class="cbi-input-<%=self.inputstyle%>"<% end %> type="submit"<%= attr("name", cbid) .. attr("id", cbid) .. attr("value", self.title)%> />
+       <% else %>
+               -
+       <% end %>
 <%+cbi/valuefooter%>