valuewrapper.html 646 B

123456789101112131415161718
  1. <div class="gluon-value<% if self.error then %> gluon-value-error<% end %>" id="value-<%=id%>" data-index="<%=self.index%>"<%= attr("data-depends", self:deplist()) %>>
  2. <%- if self.title and #self.title > 0 then -%>
  3. <label class="gluon-value-title"<%= attr("for", id) %>>
  4. <%-|self.title-%>
  5. </label>
  6. <div class="gluon-value-field">
  7. <%- end -%>
  8. <% if self.subtemplate then include(self.subtemplate) end %>
  9. <% if self.description and #self.description > 0 then -%>
  10. <br />
  11. <div class="gluon-value-description">
  12. <%=self.description%>
  13. </div>
  14. <%- end %>
  15. <%- if self.title and #self.title > 0 then -%>
  16. </div>
  17. <%- end -%>
  18. </div>