cell_valueheader.htm 718 B

123456789101112
  1. <%-
  2. local title = luci.util.trim(striptags(self.title))
  3. local descr = luci.util.trim(striptags(self.description))
  4. local ftype = self.typename or (self.template and self.template:gsub("^.+/", ""))
  5. -%>
  6. <td class="td cbi-value-field<% if self.error and self.error[section] then %> cbi-value-error<% end %><% if self.password then %> nowrap<% end %>"<%=
  7. attr("data-name", self.option) ..
  8. ifattr(ftype and #ftype > 0, "data-widget", ftype) ..
  9. ifattr(title and #title > 0, "data-title", title, true) ..
  10. ifattr(descr and #descr > 0, "data-description", descr, true)
  11. %>>
  12. <div id="cbi-<%=self.config.."-"..section.."-"..self.option%>" data-index="<%=self.index%>" data-depends="<%=pcdata(self:deplist2json(section))%>">