summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/luasrc/view/cbi/dropdown.htm
diff options
context:
space:
mode:
Diffstat (limited to 'modules/luci-base/luasrc/view/cbi/dropdown.htm')
-rw-r--r--modules/luci-base/luasrc/view/cbi/dropdown.htm12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/luci-base/luasrc/view/cbi/dropdown.htm b/modules/luci-base/luasrc/view/cbi/dropdown.htm
index bdf724837..cf8c03d22 100644
--- a/modules/luci-base/luasrc/view/cbi/dropdown.htm
+++ b/modules/luci-base/luasrc/view/cbi/dropdown.htm
@@ -36,6 +36,18 @@
<%=pcdata(self.vallist[i])%>
</li>
<% end %>
+ <% if self.custom then %>
+ <li>
+ <input type="password" style="display:none" />
+ <input class="create-item-input" type="text"<%=
+ attr("placeholder", self.custom ~= true and
+ self.custom or
+ (self.multiple and
+ translate("Enter custom values") or
+ translate("Enter custom value")))
+ %> />
+ </li>
+ <% end %>
</ul>
</div>