26 lines
832 B
HTML
26 lines
832 B
HTML
<%
|
|
local br = self.orientation == "horizontal" and '   ' or '<br>'
|
|
local entries = self:entries()
|
|
local util = require 'gluon.util'
|
|
%>
|
|
<div>
|
|
<% for i, entry in pairs(entries) do %>
|
|
<label<%=
|
|
attr("data-index", i) ..
|
|
attr("data-depends", self:deplist(entry.deps))
|
|
%>>
|
|
<input data-update="click change" type="checkbox"<%=
|
|
attr("id", id.."."..entry.key) ..
|
|
attr("name", id) ..
|
|
attr("value", entry.key) ..
|
|
attr("checked", (util.contains(self:cfgvalue(), entry.key)) and "checked") ..
|
|
attr("data-exclusive-with", self.exclusions[entry.key]) ..
|
|
attr("data-update", "change")
|
|
%>>
|
|
<label<%= attr("for", id.."."..entry.key)%>></label>
|
|
<span class="gluon-multi-list-option-descr"><%|entry.value%></span>
|
|
</label>
|
|
<% if i ~= #entries then write(br) end %>
|
|
<% end %>
|
|
</div>
|