1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-15 03:51:51 +00:00
openmptcprouter-feeds/luci-base/luasrc/view/cbi/mvalue.htm

25 lines
573 B
HTML
Raw Normal View History

2018-01-23 14:36:03 +00:00
<%+cbi/valueheader%>
2019-07-12 16:27:38 +00:00
<%
local util = require "luci.util"
local values = {}
local value
for value in util.imatch(self:cfgvalue(section) or self.default) do
values[#values+1] = value
end
%>
<div<%=attr("data-ui-widget", luci.util.serialize_json({
"Select", values, self:choices(), {
id = cbid,
name = cbid,
size = self.size,
sort = self.keylist,
2019-07-30 09:15:26 +00:00
multiple = true,
2019-07-12 16:27:38 +00:00
widget = self.widget,
datatype = self.datatype,
optional = self.optional or self.rmempty,
readonly = self.readonly,
placeholder = self.placeholder
}
}))%>></div>
2018-01-23 14:36:03 +00:00
<%+cbi/valuefooter%>