wip: moving non wlxml specific extension support from wlxml.js to smartxml.js
[fnpeditor.git] / src / editor / modules / nodeFamilyTree / template.html
1 <div class="rng-module-nodeFamilyTree">
2     <table class="table table-bordered">
3         <tr>
4             <td>powyżej</td>
5             <td><% if(parent) { %><a href="#" class="rng-module-nodeFamilyTree-parent" rng-module-nodeFamilyTree-item-id="<%= parent.id %>"><%= parent.repr %></a><% } else { %>-<% } %></td>
6         </tr>
7         <tr>
8             <td rowspan="0">poniżej</td>
9             <td>
10                 <ul>
11                 <% if(!contents || contents.length === 0) { %>-<% } else { %>
12                     <% contents.forEach(function(element) { %>
13                         <li><% if(element.bold) { %><strong><% } %><a rng-module-nodeFamilyTree-item-id="<%= element.id %>" href="#"><%= element.repr %></a><% if(element.bold) { %></strong><% } %></li>
14                     <% }); %>
15                 <% } %>
16                 </ul>
17             </td>
18         </tr>
19 </div>