libs/web: support placeholder attribute for comboboxes, fix validation quirks with...
[project/luci.git] / libs / web / luasrc / view / cbi / value.htm
index 19715a5..d1a7bea 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-%>