mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51:51 +00:00
12 lines
662 B
HTML
12 lines
662 B
HTML
<%-
|
|
local title = luci.util.trim(striptags(self.title))
|
|
local descr = luci.util.trim(striptags(self.description))
|
|
local ftype = self.typename or (self.template and self.template:gsub("^.+/", ""))
|
|
-%>
|
|
<div class="td cbi-value-field<% if self.error and self.error[section] then %> cbi-value-error<% end %>"<%=
|
|
attr("data-name", self.option) ..
|
|
ifattr(ftype and #ftype > 0, "data-type", ftype) ..
|
|
ifattr(title and #title > 0, "data-title", title) ..
|
|
ifattr(descr and #descr > 0, "data-description", descr)
|
|
%>>
|
|
<div id="cbi-<%=self.config.."-"..section.."-"..self.option%>" data-index="<%=self.index%>" data-depends="<%=pcdata(self:deplist2json(section))%>">
|