Fixing wrapping part of text element
[fnpeditor.git] / 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" data-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(!children || children.length === 0) { %>-<% } else { %>
12                     <% children.forEach(function(child) { %>
13                         <li><a href="#" data-id="<%= child.id %>"><%= child.repr %></a></li>
14                     <% }); %>
15                 <% } %>
16                 </ul>
17             </td>
18         </tr>
19 </div>