web-model: info desc and title

This commit is contained in:
Maciej Krüger 2022-05-28 11:45:07 +02:00 committed by Alexander List
parent 31b6e10f69
commit 4bc0839443

View File

@ -1,7 +1,19 @@
<div class="gluon-value">
<% if self.title then %>
<%- if self.title then -%>
<div class="gluon-value"<%=
attr("id", id) ..
attr("data-index", self.index) ..
attr("data-depends", self:deplist(self.deps))
%>>
<label class="gluon-value-title"><%=self.title%></label>
<% end %>
<span class="gluon-value-field"><%=self.content%></span>
<span class="gluon-value-field"><%=self.description%></span>
</div>
<%- elseif self.content then -%>
<div class="gluon-value"<%=
attr("id", id) ..
attr("data-index", self.index) ..
attr("data-depends", self:deplist(self.deps))
%>>
<%=self.content%>
</div>
<%- end -%>