libs/web: support placeholder attribute for comboboxes, fix validation quirks with...
[project/luci.git] / libs / web / luasrc / view / cbi / value.htm
index 19715a579d685994c175e9770ce367268b9b92cd..d1a7bea5c6a77b96f87fb7eeb9e4cfc52cc0c8a8 100644 (file)
@@ -18,6 +18,8 @@
                -%>
                }, '<%- if not self.rmempty and not self.optional then -%>
                        <%-: -- Please choose -- -%>
+                       <%- elseif self.placeholder then -%>
+                       <%-= pcdata(self.placeholder) -%>
                <%- end -%>', '
                <%- if self.combobox_manual then -%>
                        <%-=self.combobox_manual-%>