smartxml: refactor inserting methods
[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"><%= parent.repr %></a><% } else { %>-<% } %></td>
6         </tr>
7         <tr>
8             <td rowspan="0">poniżej</td>
9             <td>
10                 <ul>
11                 <% if(!children || children.length === 0) { %>-<% } else { %>
12                     <% children.forEach(function(child) { %>
13                         <li><% if(child.bold) { %><strong><% } %><a href="#"><%= child.repr %></a><% if(child.bold) { %></strong><% } %></li>
14                     <% }); %>
15                 <% } %>
16                 </ul>
17             </td>
18         </tr>
19 </div>