- add responsive attributes to partial cbi templates - unify and fix button style classes - fix styling of sysauth dialog - rework firewall_zoneforwards widget Signed-off-by: Jo-Philipp Wich <jo@mein.io>
10 lines
524 B
HTML
10 lines
524 B
HTML
<%-
|
|
local title = luci.util.trim(striptags(self.title))
|
|
local ftype = 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)
|
|
%>>
|
|
<div id="cbi-<%=self.config.."-"..section.."-"..self.option%>" data-index="<%=self.index%>" data-depends="<%=pcdata(self:deplist2json(section))%>">
|