libs/cbi: Add cross-linking capabilities

This commit is contained in:
Steven Barth 2008-08-14 11:50:13 +00:00
parent 15f4fa76d5
commit fce1109817
2 changed files with 10 additions and 2 deletions

View file

@ -14,5 +14,9 @@ $Id$
-%>
<div class="cbi-value" id="cbi-<%=self.config.."-"..section.."-"..self.option%>">
<label class="cbi-value-title"<%= attr("for", cbid) %>><%=self.title%></label>
<label class="cbi-value-title"<%= attr("for", cbid) %>>
<%- if self.titleref then -%><a class="cbi-title-ref" href="<%=self.titleref%>"><%- end -%>
<%-=self.title-%>
<%- if self.titleref then -%></a><%- end -%>
</label>
<div class="cbi-value-field">

View file

@ -34,7 +34,11 @@ end
<th>&nbsp;</th>
<%- end -%>
<%- for i, k in pairs(self.children) do if not k.optional then -%>
<th class="cbi-section-table-cell"><%=k.title%></th>
<th class="cbi-section-table-cell">
<%- if k.titleref then -%><a class="cbi-title-ref" href="<%=k.titleref%>"><%- end -%>
<%-=k.title-%>
<%- if k.titleref then -%></a><%- end -%>
</th>
<%- count = count + 1; end; end; if self.extedit or self.addremove then -%>
<th class="cbi-section-table-cell">&nbsp;</th>
<%- count = count + 1; end -%>