summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-compat/luasrc/view/cbi/dvalue.htm
blob: 78e6f323d7223be7246707ecfc6c1adcf834dd98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<%+cbi/valueheader%>
<% if self.href then %><a href="<%=self.href%>"><% end -%>
	<%
		local val = self:cfgvalue(section) or self.default or ""
		if not self.rawhtml then
			write(pcdata(val))
		else
			write(val)
		end
	%>
<%- if self.href then %></a><%end%>
<input type="hidden" id="<%=cbid%>" value="<%=pcdata(self:cfgvalue(section) or self.default or "")%>" />
<%+cbi/valuefooter%>